Deduplicate repeated footer layout subtrees and reuse their scan rewrites
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 25/100
- Tipo de issue
- Funcionalidade
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- rust
- Domínio
- data, performance
Direção de pesquisa
Start by reviewing the linked measurement prototype in PR #12185 and the existing footer layout encoding and scan planning paths. The issue calls for format design, compatibility and validation rules, indexed bindings, writer selection, benchmarks, and planner reuse measurements. Done means the landing plan is addressed with storage and read performance measured, and planner reuse validated separately.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Motivation
A Vortex footer stores a layout tree. A column with thousands of Flat chunks can repeat the same leaf description thousands of times, even when only the segment ID and row count vary. A file-local template dictionary could reduce footer reads and give the planner a way to rewrite a repeated child once.
Evidence
The measurement prototype and per-dataset results encode the layout with templates and bindings, decode it, and compare every node with the original. Footer savings below assume replacing the layout section with those encoded bytes. They include packed integers and optional row-count runs, and exclude the cost of a random-access index.
| Corpus | Files | Layout bytes saved | Whole footer bytes saved |
|---|---|---|---|
| Regular SQL benchmark matrix, inline array metadata enabled | 557 | 12.8% | 12.2% |
| Retained benchmark objects and published fixtures | 1,267 | 11.8% | 11.4% |
| One FineWeb file, inline array metadata disabled (writer default) | 1 | 89.5% | 54.1% |
In that FineWeb file, 435 of 505 nodes shared one Flat template and 50 shared one dictionary template with two Flat children. Eleven templates described the whole tree. The layout shrank from 15,240 to 1,594 bytes, taking the projected footer from 25,240 to 11,594 bytes. The suite-wide result for default writes is still an open question. Benchmark CI enables inline array metadata, which makes exact metadata matches less common.
Proposed representation
Intern nodes bottom-up using the layout encoding, exact metadata bytes, segment-slot count, and ordered child template IDs as the key. For a homogeneous Chunked layout, store a repeated child template and bind its count per occurrence. Preserve ordered child IDs for mixed layouts. Row counts and segment IDs are per-occurrence bindings. For example, a chunked dictionary column can store the shape Chunked(Repeat(Dict(values=Flat, codes=Flat))) once while each chunk supplies its own values and codes segments.
Landing plan
- Run the regular SQL matrix with inline metadata disabled. Compare against a control using the same packed bindings with template sharing disabled to isolate the gain from sharing.
- Design and measure an index for the bindings. A reader should be able to project a late field or seek a late chunk without walking all preceding instances. Include the index, framing, and alignment in the byte comparison.
- Specify format detection, version compatibility, and validation of template references, repeat counts, and binding bounds. Land reader support first, followed by an opt-in writer that can select the smaller complete representation. Measure footer size, open time, and projected and random-access reads.
- Evaluate planner reuse separately. Preserve repeated children through lowering and try pushing a bound expression through a repeated child once. Include dtype and rule-specific guards in reuse decisions. Measure rule invocations, allocations, planning time, and result equivalence on a many-chunk scan.
The prototype measures storage today. Planning speedup remains to be measured.
- 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