Consolidate dtype classification
メンテナーはふだん 6 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by reading array_util.rs, then trace the type classification in TypeFamily, CastTargetType, ScaleType, ArrayElement, and the schema and casting code mentioned in the issue. The proposal gives the intended DataKind categories and behavior, but leaves semantic choices and the temporal-unit cleanup unresolved. Done means consumers map the shared classification to their policies and the Date64, Time32, and temporal cast cases are handled consistently.
索引モデルが issue の本文から書いたものです。
説明
We have 7 places where we classify Arrow DataTypes with disagreements on edge cases.
Moreover, we have a bunch of policy enums (TypeFamily, CastTargetType, ScaleType, ArrayElement, zygos::Value) which adds to the opacity of working with data types. The summary feature I'm working on at the time of writing, aims to add to this list as well.
Here are disagreements:
TypeFamilycounts boolean as numeric, and Date64 becomes string (this has been normalised by reader, but still).ScaleTypeonly classifies continuous / discrete, but also we have a vegalite variant that considers temporal too.- some schema/casting doesn't treat LargeUtf8 as discrete
Here are more details kimi gathered (it contains references to WIP SUMMARISE clause):
Proposal. A factual DataKind enum in array_util.rs — Boolean, Integer, Float, Date, Timestamp, Time, String, Other with is_numeric(), is_temporal(), is_discrete() — that every consumer maps to its own verdict. The per-consumer enums stay: they are policy vocabularies for different layers (TypeFamily = coercion lattice, CastTargetType = SQL cast targets, ScaleType = rendering behavior, ValueKind = summary compute units, ArrayElement = typed literals), not duplicates. To keep that visible, DataKind's doc comment should carry a one-line map of each sibling enum and its layer.
Semantics to settle when implementing: is_numeric excludes Boolean (consumers differ); is_discrete is the schema-extraction definition (String | Boolean), with scale inference's broader discrete catch-all staying policy; Dictionary → Other with schema.rs keeping its explicit check. Behavior changes: Date64 and Time32 classify as temporal everywhere (unreachable from readers due to normalize_result_batch).
Related cleanup: cast_array's temporal↔float bridge covers Date32/Timestamp/Time64 but not Date64/Time32.
Also worth doing at the same time or not at all: naming the canonical temporal units (days / µs / ns) in one place — currently 86_400_000 and the µs scale factors appear in summary.rs, extract_series_value (schema.rs), temporal_unit_micros (scale_type), and vegalite/data.rs.
- 主要言語
- Rust
- スター
- 573
- フォーク
- 32
- 平均マージ
- 8日 23時間
- マージ済み PR(30日)
- 5
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
posit-dev/ggsql のほかの issue
-
Missing `linewidth` and `linetype` aesthetics on histogram and bar layers対応中かも @teunbrand が 30 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 61/100
メンテナーはふだん 6 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 6 日以内に返信
-
writer
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 6 日以内に返信
-
plot building
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 6 日以内に返信
-
Mention DuckDB extension対応中かも @Anant-mishra1729 が 152 日前に担当しました。 オープンdocumentation integration
難易度 1/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 6 日以内に返信
posit-dev/ggsql の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
nowledge-co/hawdb#1995 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
swc-project/swc-next-issues#984 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 61/100
linuxmint/mint-y-icons#575 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信
-
autofixer: follow-up
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
tursodatabase/turso#12531 ·
メンテナーはふだん 1 日以内に返信