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

HIVE-27938: Iceberg: Fix java.lang.ClassCastException during vectoriz… #5048

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

simhadri-g
Copy link
Member

…ed reads on partition columns

What changes were proposed in this pull request?

Add HiveIdentityPartitionConverters.java for converting partitions datatypes .

Why are the changes needed?

In this pull request apache/iceberg#1130 - Identity Partitioning: Introduced a iceberg specific constants map to convert data from java internal representations (e.g., long for timestamps) to Iceberg generics (LocalDateTime or OffsetDateTime for timestamps) .

A similar constants map is required for Hive as quoted in the following discussion.

When we add support for Pig or Hive objects, we would need to convert differently for those.
apache/iceberg#1130 (comment)

Without this change, vectorised read queries on partition columns fail with java.lang.ClassCastException for DATE, TIMESTAMP and DECIMAL datatypes as described in the jira https://issues.apache.org/jira/browse/HIVE-27938 .

Does this PR introduce any user-facing change?

Is the change a dependency upgrade?

How was this patch tested?

Qfile :
iceberg_partition_vectorized_read.q

Copy link

sonarcloud bot commented Jan 30, 2024

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

1 New issue
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link
Contributor

@SourabhBadhya SourabhBadhya left a comment

Choose a reason for hiding this comment

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

LGTM +1

@simhadri-g
Copy link
Member Author

Thanks @SourabhBadhya !

@SourabhBadhya SourabhBadhya merged commit 00d0b6d into apache:master Feb 1, 2024
6 checks passed
tarak271 pushed a commit to tarak271/hive-1 that referenced this pull request Feb 9, 2024
…ed reads on partition columns (apache#5048) (Simhadri Govindappa reviewed by Sourabh Badhya)
dengzhhu653 pushed a commit to dengzhhu653/hive that referenced this pull request Mar 7, 2024
…ed reads on partition columns (apache#5048) (Simhadri Govindappa reviewed by Sourabh Badhya)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants