PostgreSQL: populate(reserve_jobs=True) fails below a native time key
メンテナーはふだん 5 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 86/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Python
- スター
- 198
- フォーク
- 107
- 平均マージ
- 4日 7時間
- マージ済み PR(30日)
- 12
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
datajoint/datajoint-python のほかの issue
-
bug triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
datajoint/datajoint-python#1775 ·
メンテナーはふだん 5 日以内に返信
-
MySQL: with use_tls=False, 2.3.6 needs the cryptography package to log in to MySQL 8対応中かも @dimitri-yatsenko が 5 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
datajoint/datajoint-python#1750 ·
メンテナーはふだん 5 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
datajoint/datajoint-python#1747 ·
メンテナーはふだん 5 日以内に返信
-
Reject constant defaults on primary-key attributes対応中かも @godara-alt が 4 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
datajoint/datajoint-python#1712 ·
メンテナーはふだん 5 日以内に返信
-
Decoding a <blob> value in an unknown format returns None instead of raising an error対応中かも @godara-alt が 9 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
datajoint/datajoint-python#1703 ·
メンテナーはふだん 5 日以内に返信
datajoint/datajoint-python の issue をすべて見る
似ている issue
-
[Bug]: test_remote_realpath_uses_argument_vector fails on Windows with Python 3.13+ (ntpath.isabs)対応中かも @gouyu-hou が今日担当しました。 オープンtriage/confirmed
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
agentscope-ai/agentscope#4397 ·
メンテナーはふだん 2 日以内に返信
-
area/profiles area/sessions comp/desktop desktop/chat desktop/sessions P2 type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
NousResearch/hermes-agent#161712 ·
メンテナーはふだん 1 日以内に返信
-
[New Check]: postgresql_flexible_server_public_network_access_disabled対応中かも @pouria-l が今日担当しました。 オープンfeature-request status/needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
prowler-cloud/prowler#13615 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
SACGF/variantgrid#2941 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
linkedin/Liger-Kernel#1730 ·
メンテナーはふだん 3 日以内に返信