Missing unit tests for human-readable date/time formatters in utils/datetime.py

未關閉 適合新手
#4,387 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

@prabhleen2317 已經在處理了。

開始於 2026年11月16日。

  • #4388 來自 @prabhleen2317 —— 未關閉

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
76/100
Issue 類型
文件
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
python
領域
testing

研究方向

從 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_year
  • to_human_month
  • to_human_day
  • to_human_hour
  • to_human_time
  • to_human_timestamp
  • to_human_timestamptz
  • micros_to_days
  • days_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 範本
  • 沒有貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

apache/iceberg-python 的其他 Issue

查看 apache/iceberg-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。