Repository navigation
Add decoder for DELTA_BYTE_ARRAY to Parquet reader - #14101
Conversation
|
This one cannot be tested with python in same way the DELTA_BINARY_PACKED decoder is because pyarrow doesn't yet support writing DELTA_BYTE_ARRAY (as of version 13.0, it will be in 14.0). The only option at this point is to add yet another small parquet file to the python test data directory, but that's not a very thorough test. |
…decode_delta_byte_arr
|
/ok to test |
| } else { // warp 3 | ||
| target_pos = min(s->nz_count, src_pos + batch_size); | ||
| } | ||
| __syncthreads(); |
There was a problem hiding this comment.
Is this sync necessary? There's one already at the bottom of the loop and there's nothing here that seems to require synchronization. I just looked at the related loop in page_data.cu and we're doing it there as well. Hmm. This feels very vestigial.
There was a problem hiding this comment.
Never thought about it, but I think you're right. Maybe back in the day target_pos was shared or something. I'll take a look at all the decoders.
Edit: Did some archaeology and that sync has been there since the decoder was reworked in 2019, and near as I can tell it wasn't needed then either. I've removed them from the 4 current decoders.
There was a problem hiding this comment.
Actually, let's leave them in for now and remove them in a separate PR. I'd rather let it soak for a full milestone (until 24.02) to make sure there's not something subtle here that we're missing.
There was a problem hiding this comment.
Ok I'll put them back
There was a problem hiding this comment.
done...and added some TODOs
Co-authored-by: nvdbaranec <[email protected]>
Co-authored-by: nvdbaranec <[email protected]>
…decode_delta_byte_arr
|
/ok to test |
|
/ok to test |
galipremsagar
left a comment
There was a problem hiding this comment.
Looks good, left an optional comment here: https://github.com/rapidsai/cudf/pull/14101/files#r1396338749
|
/merge |
…bricks] (#15852) **JaCoCo production line coverage: +0 lines** (measured: `delta-lake`, `shuffle-plugin`, `sql-plugin`, `udf-compiler`; shim 350, vs nightly b19; `delta-lake` report group is stub-only; Iceberg implementation not loaded/applicable) Contributes to NVIDIA/cudf#13501. ### Description Five Parquet V2 encoding fixtures remained xfailed after cuDF added the corresponding reader support in NVIDIA/cudf#13637, NVIDIA/cudf#14101, and NVIDIA/cudf#14590. The resolved cudf-spark JNI artifact embeds cuDF revision `c2c4e85881a52e93e042a59cf88b7633147760c2`, which contains all three fixes. This change removes only those five fixture entries from `_xfail_files`. The existing `test_parquet_testing_valid_files` test continues to compare CPU and GPU results under both native and Java reader configurations, recovering 10 test nodes. Other issue-linked xfails in the shared mapping are unchanged. Validation: - Spark 3.5 distribution and integration-test build: all 16 reactor modules succeeded; `BUILD SUCCESS`. - Forced pre-edit unmasked run of the five fixtures: `10 passed, 86 deselected, 12 warnings in 7.90s`. - Focused post-edit run without `--runxfail`: `10 passed, 86 deselected, 12 warnings in 8.91s`. - Complete `parquet_testing_test.py`: `84 passed, 4 xfailed, 8 xpassed, 90 warnings in 36.49s`. - All 10 recovered JUnit nodes passed; the plans contained 30 `GpuFileGpuScan` occurrences and no CPU-fallback markers. - Post-edit exemption scan: zero NVIDIA/cudf#13501 matches; the five parameter cases are recovered while unrelated shared-map trackers remain. AI assistance: The change was prepared with Codex assistance and reviewed by the author at commit `ab12239d371d07abdd300422230a81b3eebec0ca` before submission. The PR description was prepared with Codex assistance. ### Checklists Documentation - [ ] Updated for new or modified user-facing features or behaviors - [x] No user-facing change Testing - [x] Added or modified tests to cover new code paths - [ ] Covered by existing tests (Please provide the names of the existing tests in the PR description.) - [ ] Not required Performance - [ ] Tests ran and results are added in the PR description - [ ] Issue filed with a link in the PR description - [x] Not required --------- Signed-off-by: Allen Xu <[email protected]>
Description
Part of #13501. Adds ability to decode DELTA_BYTE_ARRAY encoded pages.
Checklist