Dictionary-shaped takes decode every row of FoR, ALP and ZigZag values
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 48/100
- Tipo de issue
- Funcionalidade
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- rust
- Domínio
- databases, performance
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- Rust
- Estrelas
- 3.2k
- Forks
- 239
- Merge médio
- 1d 4h
- PRs com merge (30d)
- 684
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
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 vortex-data/vortex
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
vortex-data/vortex#12633 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
vortex-data/vortex#12628 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
vortex-data/vortex#12491 ·
Mantenedores costumam responder em até 1 dia
-
Fallible constructor for nested_case_whenTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
vortex-data/vortex#11425 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 67/100
vortex-data/vortex#12635 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de vortex-data/vortex
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
valkey-io/valkey-glide#7975 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
marklauter/tsong#110 ·
-
docs enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
wasm-bindgen/wasm-bindgen#5503 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
needs-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia