Consolidate dtype classification
Los mantenedores suelen responder en 6 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 45/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Rust
- Estrellas
- 573
- Forks
- 32
- Merge medio
- 8 d 23 h
- PR fusionados (30 d)
- 5
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de posit-dev/ggsql
-
Missing `linewidth` and `linetype` aesthetics on histogram and bar layersPosiblemente ocupada @teunbrand la tomó hace 30 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 61/100
Los mantenedores suelen responder en 6 días
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 6 días
-
writer
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 6 días
-
plot building
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 6 días
-
Mention DuckDB extensionPosiblemente ocupada @Anant-mishra1729 la tomó hace 152 días. Abiertodocumentation integration
Dificultad 1/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 6 días
Todos los issues de posit-dev/ggsql
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
nowledge-co/hawdb#1995 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
swc-project/swc-next-issues#984 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 61/100
linuxmint/mint-y-icons#575 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 2 días
-
autofixer: follow-up
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
tursodatabase/turso#12531 ·
Los mantenedores suelen responder en 1 día