Date conversion recipes do not apply errors= handling to parser overflows
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 82/100
調査の方向性
parsedate() と parsedatetime() のレシピおよび既存のテストを見つけ、まず ParserError と errors= モードをどのように処理しているかを読んでください。両方のレシピについて、SET_NULL と IGNORE を使用した範囲外に大きい数値の日付値のカバレッジを追加し、デフォルトでは引き続き OverflowError が再送出されることを確認してください。
索引モデルが issue の本文から書いたものです。
説明
parsedate() and parsedatetime() support errors=r.IGNORE and errors=r.SET_NULL for values that cannot be parsed, but they currently only catch dateutil.parser.ParserError.
dateutil.parser.parse() can also raise OverflowError for malformed values with numeric components too large for the underlying date representation. For example:
from sqlite_utils import recipes
value = "999999999999999999999999999999-01-01"
recipes.parsedate(value, errors=recipes.SET_NULL)
Currently this raises OverflowError instead of returning None. The same happens with parsedatetime(), and errors=recipes.IGNORE also fails to return the original value.
A focused fix would treat OverflowError the same as ParserError inside these two recipes while preserving the existing default behavior of re-raising when errors is not set. Targeted tests can cover both recipes and both error-handling modes.
- 主要言語
- Python
- スター
- 2.2k
- フォーク
- 172
- 平均マージ
- 9分
- マージ済み PR(30日)
- 1
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
simonw/sqlite-utils のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
simonw/sqlite-utils#876 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
simonw/sqlite-utils#872 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
simonw/sqlite-utils#849 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
simonw/sqlite-utils#588 · コメント 4 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug documentation help wanted
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
simonw/sqlite-utils#493 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
simonw/sqlite-utils の issue をすべて見る
似ている issue
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
vllm-project/vllm-metal#822 ·
メンテナーはふだん 1 日以内に返信
-
vector-store
難易度 1/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
[Bug]: chunk_span_bounds and _validated_chunk_spans reject Pydantic models ChunkSpan and AudioFileオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
BasedHardware/omi#19047 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信