#15510 Parquet: Support row group skipping for shredded variant columns - #16133
#15510 Parquet: Support row group skipping for shredded variant columns#16133steveloughran wants to merge 2 commits into
Conversation
|
This doesn't get called from spark until multiple PRs are merged: |
a10c7e5 to
8474d0d
Compare
1e0f654 to
f4c129d
Compare
|
big milestone reached today w/ spark and parquet all lined up. Got a stack trace saying can't deser variant as the bytebuffer is in the wrong order. This could potentially mean that predicate pushdown is working down but some bytebuffer is OOO. Or it is something unrelated. New stack though |
1106d2b to
ab5561c
Compare
…kipping copilot's solution to why pushdown wasn't working, independent of qlong's apache#15385 I plan to take qlong's and pull what is extra from this one.
ab5561c to
6ad21e1
Compare
ParquetMetricsRowGroupFilter.compareVariant() implements comparisons for variants, including NaN, null, uuid, set membership. * New ParquetVariantUtil splitter regexp can't cope with columns called ]. That's OK as normalisation forbids that and empty paths * Copilot wrote the tests so it's over-verbose, but thorough. * including NaN behaviour and string truncation on max values. * lazy build of variant mapping info, cached for entire file. There's no concurrency handling here in the build up of that lazy structure, once happy with the design it'll need to be locked down better. TestSparkVariantFilterPushDown to test variant pushdown through spark This needs a modified spark, currently. A package private counter is exported from ParquetMetricsRowGroupFilter to assist in testing as it can assess #of lookups during planning and execution. --- ParquetMetricsRowGroupFilter enhancement: now counting RGs skipped. Allows for assertions in tests and in benchmarks that rowgroup skipping is taking place. Needed as there's not much tangible speedup, yet Change-Id: I8c03eb33d2d3d8a2139c347e6a72a7284e627f62 ---- ParquetMetricsRowGroupFilter: logging downgraded to info Filtering is working well enough to not need logging on normal execution. Change-Id: Ief88bbe7e1df28a93b1fd988f6d9f224fbb846e0
6ad21e1 to
643148c
Compare
|
This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions. |
|
This pull request has been closed due to lack of activity. This is not a judgement on the merit of the PR in any way. It is just a way of keeping the PR queue manageable. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time. |
|
needs revising once spark 4.2 is in |
ParquetMetricsRowGroupFilter.compareVariant() implements comparisons for variants, including NaN, null.
Fixes #15510
Testing notes
Full branch with this, Qlong's api changes and the benchmark is https://github.com/steveloughran/iceberg/tree/pr/variant-rowgroups-benchmark
Does need a matching spark version.