Dictionary-shaped takes decode every row of FoR, ALP and ZigZag values
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 48/100
- Type d'issue
- Fonctionnalité
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- rust
- Domaine
- databases, performance
Piste de recherche
Start by reading #12048 and #11890, then locate the TakeExecuteAdaptor and the take kernels for FoR, ZigZag, and ALP. Add benchmarks comparing pushdown with decoding values before gathering across several codes-to-values ratios, recording time and allocations. Use the results to recommend where the rule belongs and whether a length threshold or ratio is appropriate; preserve pushdown for Sparse, RunEnd, Sequence, and Chunked.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
This concerns take on encodings that wrap a child and decode it one element at a time: FoR, ZigZag, ALP, ALPRD, Delta and Widen. In Vortex, ArrayRef::take builds a lazy DictArray(indices, values). Each of these encodings registers a TakeExecuteAdaptor kernel for a Dict parent. So a real dictionary column, such as Dict(codes, FoR), takes the same path as a plain take.
When the codes outnumber the values, the kernel still pushes the codes into the encoded child and returns a full-length array, such as FoR(take(encoded, codes)). So one execution step turns a dictionary-encoded column into a full-length encoded array. The decode then runs once per row instead of once per distinct value. Nobody has measured what this costs in time or memory.
#12048 adds a guard to ZigZag only. Its take kernel declines when indices.len() > array.len(), so Dict decodes its values first and stays a Dict. No benchmark measures that guard, and FoR and ALP keep the old path. The length test is also only a stand-in for "this take is dictionary-shaped".
Questions to answer with benchmarks:
- For
DictoverFoR,ZigZagandALPvalues, which is faster: pushing the take into the encoded child, or decoding the values and then gathering? Measure several ratios of codes to values, and what each path allocates. - Does the answer differ by encoding?
ZigZagdecodes with a shift and an XOR, whileALPmultiplies and applies patches. - If decoding first wins, should the rule live once in
TakeExecuteAdaptoras an opt-in, or in each encoding's kernel?Sparse,RunEnd,SequenceandChunkedrely on the pushdown and must keep it. - Is
indices.len() > array.len()the right test, or should the rule use a ratio of codes to values?
Related to #11890.
🤖 Generated with Claude Code
- Langage dominant
- Rust
- Étoiles
- 3.2k
- Forks
- 239
- Merge moyen
- 1 j 4 h
- PR mergées (30 j)
- 684
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de vortex-data/vortex
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
vortex-data/vortex#12633 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 77/100
vortex-data/vortex#12628 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
vortex-data/vortex#12491 ·
Les mainteneurs répondent en général sous 1 jour
-
Fallible constructor for nested_case_whenPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
vortex-data/vortex#11425 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 3/5 1-2 jours Accessibilité débutants 67/100
vortex-data/vortex#12635 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de vortex-data/vortex
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 83/100
valkey-io/valkey-glide#7975 ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
marklauter/tsong#110 ·
-
docs enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
wasm-bindgen/wasm-bindgen#5503 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour