Consolidate dtype classification
Mantenedores costumam responder em até 6 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 45/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Rust
- Estrelas
- 573
- Forks
- 32
- Merge médio
- 8d 23h
- PRs com merge (30d)
- 5
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de posit-dev/ggsql
-
Missing `linewidth` and `linetype` aesthetics on histogram and bar layersTalvez já em andamento @teunbrand assumiu há 30 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 61/100
Mantenedores costumam responder em até 6 dias
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 6 dias
-
writer
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 6 dias
-
plot building
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 6 dias
-
Mention DuckDB extensionTalvez já em andamento @Anant-mishra1729 assumiu há 152 dias. Abertadocumentation integration
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 6 dias
Todas as issues de posit-dev/ggsql
Issues semelhantes
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
storytold/craft-anything#2472 ·
Mantenedores costumam responder em até 1 dia
-
enhancement good first issue help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
getsotto/sotto-authenticator#68 ·
Mantenedores costumam responder em até 1 dia
-
Project submission: AegisAberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 72/100
slavakurilyak/awesome-ai-agents#1046 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
nowledge-co/hawdb#1995 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
swc-project/swc-next-issues#984 ·