Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compute and use the initial string offset when building nested large string cols with chunked parquet reader #17702

Open
wants to merge 17 commits into
base: branch-25.02
Choose a base branch
from

Conversation

mhaseeb123
Copy link
Member

@mhaseeb123 mhaseeb123 commented Jan 9, 2025

Description

Closes #17692.

This PR enables computing the str_offset required to correctly compute the offsets columns for nested large strings columns with chunked Parquet reader when chunk_read_limit is small resulting in multiple output table chunks per subpass.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

Copy link

copy-pr-bot bot commented Jan 9, 2025

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-actions github-actions bot added the libcudf Affects libcudf (C++/CUDA) code. label Jan 9, 2025
@mhaseeb123 mhaseeb123 added 5 - DO NOT MERGE Hold off on merging; see PR for details 2 - In Progress Currently a work in progress bug Something isn't working cuIO cuIO issue non-breaking Non-breaking change labels Jan 9, 2025
@mhaseeb123 mhaseeb123 requested a review from nvdbaranec January 10, 2025 03:07
@mhaseeb123 mhaseeb123 removed the 5 - DO NOT MERGE Hold off on merging; see PR for details label Jan 10, 2025
@mhaseeb123 mhaseeb123 changed the title 🚧 Compute and use the str_offset when reading nested large string cols with chunked Parquet reader. Compute and use the str_offset when reading nested large string cols with chunked Parquet reader. Jan 14, 2025
@mhaseeb123 mhaseeb123 requested a review from vuule January 14, 2025 00:35
@mhaseeb123 mhaseeb123 marked this pull request as ready for review January 14, 2025 00:36
@mhaseeb123 mhaseeb123 requested a review from a team as a code owner January 14, 2025 00:36
@mhaseeb123
Copy link
Member Author

CC: @etseidl would love your review here as well if possible!

@mhaseeb123 mhaseeb123 requested a review from davidwendt January 14, 2025 00:38
@@ -51,6 +51,9 @@ TEST_F(MergeTest, MergeLargeStrings)
CUDF_TEST_EXPECT_COLUMNS_EQUIVALENT(c, input);
}

// Unset the LIBCUDF_LARGE_STRINGS_THRESHOLD if already set.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting env var to a smaller number may result in this test to fail (and rightfully so) so locally unsetting it here

@mhaseeb123 mhaseeb123 added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels Jan 14, 2025
@mhaseeb123 mhaseeb123 changed the title Compute and use the str_offset when reading nested large string cols with chunked Parquet reader. Compute and use the initial string offset when building nested large string cols with chunked parquet reader Jan 14, 2025
* atomically update the initial string offset to be used during large string column construction
*/
template <int block_size>
__device__ void compute_string_offsets(page_state_s* const state,
Copy link
Member Author

@mhaseeb123 mhaseeb123 Jan 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments about the name of this utility function are welcome! 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team bug Something isn't working cuIO cuIO issue libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change
Projects
Status: Burndown
Development

Successfully merging this pull request may close these issues.

[BUG] Chunked parquet reader with small chunk_read_limit does not correctly read nested large string columns.
3 participants