PostgreSQL: populate(reserve_jobs=True) fails below a native time key
Los mantenedores suelen responder en 5 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 86/100
Línea de trabajo
Start with the reproduction in jobs.py, where primary-key attributes are copied into the jobs table definition, then inspect PostgreSQL type reporting in declare.py around match_type. Run the reproduction to confirm that Done.populate(reserve_jobs=True) fails while plain populate() succeeds. Done means PostgreSQL time and affected timestamp type names can be declared again and reservation succeeds without regressing MySQL.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug
On PostgreSQL, populate(reserve_jobs=True) fails for a table whose primary key includes a native time attribute inherited from a parent:
DataJointError: Unsupported attribute type time without time zone
Reproduction
@schema
class Shift(dj.Manual):
definition = """
start_time : time
"""
@schema
class Done(dj.Computed):
definition = """
-> Shift
"""
def make(self, key):
self.insert1(key)
Shift.insert1({"start_time": "01:02:03"})
Done.populate(reserve_jobs=True) # raises on PostgreSQL; works on MySQL
Plain populate() works on both backends.
Cause
The jobs table copies each primary-key attribute's type into its definition (jobs.py, attr.original_type or attr.type). For a native attribute, that type comes from the server: PostgreSQL reports time without time zone, which the declaration parser does not accept (declare.py, match_type).
Fix
Normalize these names when PostgreSQL column information is read (time, time(p), timestamp, timestamp(p), using datetime_precision), so the heading's type can be declared again. timestamp attributes are likely affected the same way (timestamp without time zone); this was not checked.
- Lenguaje dominante
- Python
- Estrellas
- 198
- Forks
- 107
- Merge medio
- 4 d 7 h
- PR fusionados (30 d)
- 12
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de datajoint/datajoint-python
-
bug triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
datajoint/datajoint-python#1775 ·
Los mantenedores suelen responder en 5 días
-
MySQL: with use_tls=False, 2.3.6 needs the cryptography package to log in to MySQL 8Posiblemente ocupada @dimitri-yatsenko la tomó hace 5 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
datajoint/datajoint-python#1750 ·
Los mantenedores suelen responder en 5 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
datajoint/datajoint-python#1747 ·
Los mantenedores suelen responder en 5 días
-
Reject constant defaults on primary-key attributesPosiblemente ocupada @godara-alt la tomó hace 4 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
datajoint/datajoint-python#1712 ·
Los mantenedores suelen responder en 5 días
-
Decoding a <blob> value in an unknown format returns None instead of raising an errorPosiblemente ocupada @godara-alt la tomó hace 9 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
datajoint/datajoint-python#1703 ·
Los mantenedores suelen responder en 5 días
Todos los issues de datajoint/datajoint-python
Issues similares
-
[Bug]: test_remote_realpath_uses_argument_vector fails on Windows with Python 3.13+ (ntpath.isabs)Posiblemente ocupada @gouyu-hou la tomó hoy. Abiertotriage/confirmed
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
agentscope-ai/agentscope#4397 ·
Los mantenedores suelen responder en 2 días
-
area/profiles area/sessions comp/desktop desktop/chat desktop/sessions P2 type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
NousResearch/hermes-agent#161712 ·
Los mantenedores suelen responder en 1 día
-
[New Check]: postgresql_flexible_server_public_network_access_disabledPosiblemente ocupada @pouria-l la tomó hoy. Abiertofeature-request status/needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
prowler-cloud/prowler#13615 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
SACGF/variantgrid#2941 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
linkedin/Liger-Kernel#1730 ·
Los mantenedores suelen responder en 3 días