Consolidate dtype classification
Maintainer antworten meist innerhalb von 6 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 45/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Rust
- Sterne
- 573
- Forks
- 32
- Ø Merge
- 8 T. 23 Std.
- Gemergte PRs (30 T.)
- 5
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus posit-dev/ggsql
-
Missing `linewidth` and `linetype` aesthetics on histogram and bar layersEvtl. vergeben @teunbrand hat das vor 30 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 61/100
Maintainer antworten meist innerhalb von 6 Tagen
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 6 Tagen
-
writer
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 6 Tagen
-
plot building
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 6 Tagen
-
Mention DuckDB extensionEvtl. vergeben @Anant-mishra1729 hat das vor 152 Tagen übernommen. Offendocumentation integration
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 6 Tagen
Alle Issues in posit-dev/ggsql
Ähnliche Issues
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
storytold/craft-anything#2472 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement good first issue help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
getsotto/sotto-authenticator#68 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
slavakurilyak/awesome-ai-agents#1046 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
nowledge-co/hawdb#1995 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
swc-project/swc-next-issues#984 ·