Missing unit tests for human-readable date/time formatters in utils/datetime.py
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 76/100
Línea de trabajo
Empieza por las funciones auxiliares indicadas en pyiceberg/utils/datetime.py y las pruebas existentes en tests/utils/test_datetime.py; compara las pruebas cercanas para seguir las convenciones del proyecto. Añade casos deterministas de entrada y salida esperada para cada función indicada, luego ejecuta el módulo de pruebas de datetime y confirma que los nuevos casos pasan.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Feature Request / Improvement
Several pure helper functions in pyiceberg/utils/datetime.py have no unit
test coverage in tests/utils/test_datetime.py:
to_human_yearto_human_monthto_human_dayto_human_hourto_human_timeto_human_timestampto_human_timestamptzmicros_to_daysdays_to_date
These are deterministic input→output functions, so they are straightforward
to cover with unit tests. Adding tests guards against regressions in the
human-readable formatting used by the CLI and __repr__ output.
I'd like to work on this and submit a PR.
- Lenguaje dominante
- Python
- Estrellas
- 1.2k
- Forks
- 664
- Merge medio
- 2 d 10 h
- PR fusionados (30 d)
- 130
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin 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 apache/iceberg-python
-
StringLiteral to IntegerType/LongType silently truncates fractional strings, changing predicate meaningPosiblemente ocupada @Shahzeb-DataEngineer la tomó hace 1 día. Abiertokind:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
apache/iceberg-python#4382 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
`inspect.files()` and the other file metadata tables raise `ArrowInvalid` when a snapshot has no manifestsPosiblemente ocupada @YuangGao la tomó hace 13 días. Abiertokind:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
apache/iceberg-python#4269 ·
Los mantenedores suelen responder en 1 día
-
`inspect.entries()` raises TypeError when a data file has no column_sizesPosiblemente ocupada @Rahul-cs50 la tomó hace 16 días. Abiertokind:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/iceberg-python#4186 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
`older_than` reads a naive datetime as UTC and expires snapshots it should keepPosiblemente ocupada @Rahul-cs50 la tomó hace 15 días. Abiertokind:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
apache/iceberg-python#4182 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
REST: Send empty first-page pageToken when rest-page-size is setPosiblemente ocupada @ehddnr301 la tomó hace 34 días. Abiertokind:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
apache/iceberg-python#4096 ·
Los mantenedores suelen responder en 1 día
Todos los issues de apache/iceberg-python
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
benchflow-ai/skillsbench#1090 ·
-
[BUG] Hermes MCP adapter drops cwd, extra passthrough keys and the SSE transport when writing config.yamlPosiblemente ocupada @Parth-Vasave la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
microsoft/apm#3749 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
backend bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
NVIDIA/numba-cuda-mlir#467 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
BUG: UserAgentGenerator.generate ignores browser_type and returns a random browser stackPosiblemente ocupada @HhH666-ux la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día