Fix Iceberg read failing for Decimal type#23305
Merged
tdcmeehan merged 1 commit intoprestodb:masterfrom Jul 30, 2024
Merged
Conversation
imjalpreet
requested changes
Jul 26, 2024
Member
imjalpreet
left a comment
There was a problem hiding this comment.
@wypb Thank you for the fix.
Can you please force-push once to retrigger the entire suite again? Looks like there were some intermittent issues.
| private static final String ORC_TINY_STRIPE_THRESHOLD = "orc_tiny_stripe_threshold"; | ||
| private static final String ORC_ZSTD_JNI_DECOMPRESSION_ENABLED = "orc_zstd_jni_decompression_enabled"; | ||
| private static final String PARQUET_BATCH_READ_OPTIMIZATION_ENABLED = "parquet_batch_read_optimization_enabled"; | ||
| public static final String PARQUET_BATCH_READ_OPTIMIZATION_ENABLED = "parquet_batch_read_optimization_enabled"; |
Member
There was a problem hiding this comment.
Let's move this after line 43 and please add @VisibleForTesting
Member
There was a problem hiding this comment.
We can also add a generic test with this feature enabled in the iceberg connector which also tries reading other datatypes in addition to decimal.
0cd0b38 to
4c98d81
Compare
hantangwangd
previously approved these changes
Jul 30, 2024
Member
hantangwangd
left a comment
There was a problem hiding this comment.
Thanks for the fix. LGTM!
12714ef to
8c61cc2
Compare
tdcmeehan
approved these changes
Jul 30, 2024
imjalpreet
approved these changes
Jul 30, 2024
Member
imjalpreet
left a comment
There was a problem hiding this comment.
LGTM, thanks for adding the tests.
34 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fix #23274
After the introduction of the decimal batch reader(#22636) in Presto, when trying to read iceberg tables with decimal columns with parquet_batch_read_optimization_enabled=true, we are getting the below error
The issue happens when trying to read dictionary-encoded data.
Motivation and Context
Impact
Test Plan
Contributor checklist
Release Notes
Please follow release notes guidelines and fill in the release notes below.
CC: @tdcmeehan @yingsu00 @imjalpreet