Skip to content

HIVE-28439: Iceberg: Bucket partition transform with DECIMAL can throw NPE - #5387

Merged
deniskuzZ merged 1 commit into
apache:masterfrom
okumin:HIVE-28439-bucket-npe
Aug 9, 2024
Merged

HIVE-28439: Iceberg: Bucket partition transform with DECIMAL can throw NPE#5387
deniskuzZ merged 1 commit into
apache:masterfrom
okumin:HIVE-28439-bucket-npe

Conversation

@okumin

@okumin okumin commented Aug 7, 2024

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Fix a bug in the iceberg_bucket UDF.

Why are the changes needed?

A bucket partition transform with DECIMAL doesn't correctly work when the source column type has extreme configurations. Simply, GenericUDFIcebergBucket always uses the default precision and scale regardless of the precise source type.

Does this PR introduce any user-facing change?

No

Is the change a dependency upgrade?

No

How was this patch tested?

Update a qtest which fails in the current master

@sonarqubecloud

sonarqubecloud Bot commented Aug 7, 2024

Copy link
Copy Markdown

@deniskuzZ deniskuzZ left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM +1

@deniskuzZ
deniskuzZ merged commit b717e70 into apache:master Aug 9, 2024
@okumin
okumin deleted the HIVE-28439-bucket-npe branch August 9, 2024 14:35
@okumin

okumin commented Aug 9, 2024

Copy link
Copy Markdown
Contributor Author

Thanks!

dengzhhu653 pushed a commit to dengzhhu653/hive that referenced this pull request Sep 14, 2024
…w NPE (Shohei Okumiya, reviewed by Denys Kuzmenko)

Closes apache#5387
dengzhhu653 pushed a commit to dengzhhu653/hive that referenced this pull request Sep 23, 2024
…w NPE (Shohei Okumiya, reviewed by Denys Kuzmenko)

Closes apache#5387
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants