Repository navigation
fix(external): keep parquet scalar siblings vectorized - #29285
Conversation
Preserve the LIST row reader for nested vector reconstruction while decoding scalar sibling columns through page mappers. Add mixed projection and multi-row-group regression coverage for matrixorigin#29229.
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
Follow-up for the exact-head review (9955f26):
On the local Apple M5,
Both paths read 4096 rows across 8 row groups; the hybrid path reports 2 nested columns, 4,159,301 ns page-map time, 6,217,825 ns row-mode time, 290,816-byte peak batch, and 27,560-byte read-ahead cache. This directly exercises the path that the existing BYTE_ARRAY/STRING 100M fixture does not exercise. The PR description is now scoped to the reproducible hybrid conversion fix ( |
XuPeng-SH
left a comment
There was a problem hiding this comment.
GPT-6 High deep review of exact head 9955f26e65c65808d71253ccabf4bb00cc6c8eea: APPROVE.
I found no blocking correctness, cleanup, or scoped performance-evidence issue. The hybrid path keeps only the projected LIST/vector columns on the row reader, preserves scalar leaf/page mappings, and synchronizes accepted row counts and byte-budget rollback/seek positions. I traced EOF, null/empty and malformed pages, conversion errors, cancellation, partial batches, and reader cleanup through the external scan/reset path.
The added benchmark exercises two real LIST-to-vector columns plus 29 scalar siblings against an all-row-mode control. Reported results show 6.718 ms vs 15.452 ms, 22.7 MB vs 42.3 MB allocated, and 91 vs 227 range-read calls per operation. These are local synthetic ReaderAt results, not remote S3/CN fanout or deployment peak-memory evidence. The PR has explicitly narrowed its scope; the three-CN 100M-row deployment acceptance remains a separate validation item, not a claim this change has conclusively fixed.
Exact-head CI (including UT, race, SCA and BVT) passed; reviewed the BVT execution records (Parquet LOAD 196/196, cross-type 14/14, dictionary 22/22; zero ignored).
Merge Queue Status
This pull request spent 8 minutes 47 seconds in the queue, with no time running CI. ReasonHintYou should update or rebase your pull request manually. If you do, this pull request will automatically be requeued once the queue conditions match again. Tick the box to put this pull request back in the merge queue (same as
|
What type of PR is this?
Which issue(s) this PR fixes:
Related to #29229. The production 100M-row TKE acceptance run remains a deployment-level validation item; this PR is scoped to the hybrid Parquet conversion fix and its reproducible benchmark.
What this PR does / why we need it:
Keep Parquet LIST/vector columns on the row reader so values spanning data pages are reconstructed correctly, while projecting only nested columns into that reader. Scalar sibling columns continue through the page-vectorized mappers, avoiding wide-schema row-mode conversion and the associated LOAD DATA amplification.
The regression coverage includes mixed nested/scalar projections, multiple row groups, byte-budget rollback, and a true 31-column benchmark with two Parquet LIST-to-vector columns plus 29 scalar siblings. The benchmark compares the hybrid path with the pre-hybrid all-row path and records wall time, allocations, page/row-mode time, bounded ReaderAt Range calls/bytes, row-group count, and peak batch/read-ahead cache bytes.
Validation
go test ./pkg/sql/colexec/external -count=1CGO_CFLAGS="-I$(pwd)/cgo -I$(pwd)/thirdparties/install/include" CGO_LDFLAGS="-L$(pwd)/thirdparties/install/lib" go test ./pkg/sql/colexec/external -run '^$' -bench '^BenchmarkParquetWideMixedNestedProjection$' -benchmem -benchtime=5x