Array columns return raw values instead of Python types
メンテナーはふだん 4 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 56/100
調査の方向性
No file or test is named. Start by locating the dialect's generic ARRAY handling and compare it with SQLAlchemy's postgresql.ARRAY behavior, then review issue #267. Done means array elements use the declared type's result conversion while generic ARRAY operators remain supported and the reported contains() behavior stays clear.
索引モデルが issue の本文から書いたものです。
説明
(found while discussing #300)
A column declared as sa.ARRAY(T) returns its elements as the driver delivers them, without the conversion T applies to a single value:
DateTime -> datetime.datetime(2026, 9, 21, 12, 0)
ARRAY(DateTime) -> [1789992000000]
Numeric(10, 2) -> Decimal('1.25')
ARRAY(Numeric) -> [1.25]
SQLAlchemy's generic ARRAY never runs the element type's result processor. postgresql.ARRAY does, and on the same table it returns [datetime(...), None] and [Decimal('1.25')]. It can't be used as is, though: its contains() renders @>, which crate rejects with a parse error, where the generic type raises a clear NotImplementedError. So the dialect needs an array type that converts elements and keeps the generic operators.
This overlaps with #267.
- 主要言語
- Python
- スター
- 9
- フォーク
- 6
- 平均マージ
- 6日 13時間
- マージ済み PR(30日)
- 8
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
crate/sqlalchemy-cratedb のほかの issue
-
Reflected NUMERIC columns lose their precision and scale対応中かも @olpa が 10 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
crate/sqlalchemy-cratedb#313 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
crate/sqlalchemy-cratedb#310 ·
メンテナーはふだん 4 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
crate/sqlalchemy-cratedb#284 · コメント 3 件 ·
メンテナーはふだん 4 日以内に返信
-
Refactor rewrite_update() for cleaner bind parameter key representation再び着手できるかも @bgunebakan が 175 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
crate/sqlalchemy-cratedb#270 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 4 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
crate/sqlalchemy-cratedb#269 ·
メンテナーはふだん 4 日以内に返信
crate/sqlalchemy-cratedb の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
hugohe3/ppt-master#366 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 89/100
メンテナーはふだん 2 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
521xueweihan/HelloGitHub#4716 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
pcqpcq/open-source-android-apps#619 ·
メンテナーはふだん 1 日以内に返信
-
contribution Windows 主机
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Lee-xeo/Claude-Cage#1519 ·
メンテナーはふだん 1 日以内に返信