Consolidate dtype classification
I maintainer di solito rispondono entro 6 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 45/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Rust
- Stelle
- 573
- Fork
- 32
- Merge medio
- 8g 23h
- PR unite (30g)
- 5
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di posit-dev/ggsql
-
Missing `linewidth` and `linetype` aesthetics on histogram and bar layersForse già presa @teunbrand l’ha presa 30 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 61/100
I maintainer di solito rispondono entro 6 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 6 giorni
-
writer
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 6 giorni
-
plot building
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 6 giorni
-
Mention DuckDB extensionForse già presa @Anant-mishra1729 l’ha presa 152 giorni fa. Apertadocumentation integration
Difficoltà 1/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 6 giorni
Tutte le issue di posit-dev/ggsql
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
nowledge-co/hawdb#1995 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
swc-project/swc-next-issues#984 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 61/100
linuxmint/mint-y-icons#575 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
autofixer: follow-up
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
tursodatabase/turso#12531 ·
I maintainer di solito rispondono entro 1 giorno