Missing unit tests for human-readable date/time formatters in utils/datetime.py
維護者通常 1 天內回覆
評估
研究方向
從 pyiceberg/utils/datetime.py 中列出的輔助函式和 tests/utils/test_datetime.py 中現有的測試開始;對照附近的測試,遵循專案的慣例。為每個列出的函式新增確定性的輸入與預期輸出案例,接著執行 datetime 測試模組,並確認新增案例通過。
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- Python
- 星號
- 1.2k
- 分支
- 664
- 平均合併
- 2 天 10 小時
- 30 天內合併 PR
- 130
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
apache/iceberg-python 的其他 Issue
-
StringLiteral to IntegerType/LongType silently truncates fractional strings, changing predicate meaning可能已有人在做 @Shahzeb-DataEngineer 於 1 天前認領。 未關閉kind:bug
難度 2/5 1-3 小時 新手友好度 68/100
apache/iceberg-python#4382 · 2 則留言 ·
維護者通常 1 天內回覆
-
`inspect.files()` and the other file metadata tables raise `ArrowInvalid` when a snapshot has no manifests可能已有人在做 @YuangGao 於 13 天前認領。 未關閉kind:bug
難度 2/5 1-3 小時 新手友好度 72/100
apache/iceberg-python#4269 ·
維護者通常 1 天內回覆
-
`inspect.entries()` raises TypeError when a data file has no column_sizes可能已有人在做 @Rahul-cs50 於 17 天前認領。 未關閉kind:bug
難度 2/5 1-3 小時 新手友好度 78/100
apache/iceberg-python#4186 · 3 則留言 ·
維護者通常 1 天內回覆
-
`older_than` reads a naive datetime as UTC and expires snapshots it should keep可能已有人在做 @Rahul-cs50 於 15 天前認領。 未關閉kind:bug
難度 2/5 1-3 小時 新手友好度 72/100
apache/iceberg-python#4182 · 1 則留言 ·
維護者通常 1 天內回覆
-
REST: Send empty first-page pageToken when rest-page-size is set可能已有人在做 @ehddnr301 於 34 天前認領。 未關閉kind:bug
難度 2/5 1-3 小時 新手友好度 82/100
apache/iceberg-python#4096 ·
維護者通常 1 天內回覆
查看 apache/iceberg-python 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 86/100
benchflow-ai/skillsbench#1090 ·
-
[BUG] Hermes MCP adapter drops cwd, extra passthrough keys and the SSE transport when writing config.yaml可能已有人在做 @Parth-Vasave 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
backend bug
難度 2/5 1-3 小時 新手友好度 68/100
-
難度 2/5 1-3 小時 新手友好度 78/100
NVIDIA/numba-cuda-mlir#467 · 1 則留言 ·
維護者通常 3 天內回覆
-
BUG: UserAgentGenerator.generate ignores browser_type and returns a random browser stack可能已有人在做 @HhH666-ux 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆