Writer: string columns written as per-chunk dicts where Rust uses its dict layout (up to 2x larger)

オープン
#650 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java
領域
data

調査の方向性

Start with the globalDict option in WriteOptions and the admission probe that checks globalDictMaxRetainedBytes, then compare them with Rust's DictStrategy to see why these string columns are rejected. Reproduce with the bi-generico PrimeraLinea column and the clickbench-hits Title column, comparing the Java and Rust output trees. Done means these columns are written with the shared dict layout and the data bytes come close to the Rust sizes, with the admission reasoning explained in the write path.

索引モデルが issue の本文から書いたものです。

説明

perf

vortex-java's Parquet import vs the vortex-jni-written file, data bytes:

dataset column Rust Java Rust tree (most common) Java tree (most common)
bi-generico PrimeraLinea (Utf8?) 293.6 MB 585.8 MB (2.00x) 302x bitpacked + 198x fsst 1869x masked(dict(bitpacked, fsst(...)), constant)
bi-generico Concatenar 2 329.1 MB 395.9 MB (1.20x) 879x bitpacked + 279x onpair 3156x masked(dict(bitpacked, onpair(...)), constant)
bi-generico VER ANUNCIO, Concatenar 1, Producto ~290 / 290 / 212 MB 1.18–1.20x same shape same shape
clickbench-hits Title (Utf8) 1,101 MB 1,523 MB (1.38x) 2408x bitpacked + 1629x onpair 1335x dict(bitpacked, onpair(...))
clickbench-hits URL 1,933 MB 2,591 MB (1.34x) 4336x bitpacked + 2036x onpair 1852x onpair
clickbench-hits Referer 1,635 MB 1,836 MB (1.12x) 3243x bitpacked 1788x dict(bitpacked, onpair(...))

Rust's flats are mostly bare fastlanes.bitpacked codes: its dict layout shares one values pool across chunks. Java writes a per-chunk vortex.dict encoding (each chunk repeating its own values), and nullable ones under vortex.masked. ~+1.3 GB across these columns.

To narrow down: why Java's global dict layout (WriteOptions globalDict, default on) does not admit these columns — the admission probe / globalDictMaxRetainedBytes against Rust's DictStrategy.

主要言語
Java
スター
3
フォーク
2
平均マージ
9時間 47分
マージ済み PR(30日)
128

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

dfa1/vortex-java のほかの issue

dfa1/vortex-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。