Skip to content

Conversation

@frankliee
Copy link
Contributor

@frankliee frankliee commented May 24, 2025

Rationale for this change

Like iceberg jar, we should also update hive storage descriptor after commit metadata

see: https://github.com/apache/iceberg/blob/b504f9c51c6c0e0a5c0c5ff53f295e69b67d8e59/hive-metastore/src/main/java/org/apache/iceberg/hive/HiveTableOperations.java#L170

Are these changes tested?

new UTs

Are there any user-facing changes?

No

@frankliee frankliee changed the title Update hive storage descriptor after commit schema change Hive: update hive storage descriptor after commit schema change May 24, 2025
@frankliee frankliee closed this Jun 9, 2025
@frankliee frankliee reopened this Jun 9, 2025
@frankliee frankliee closed this Jun 9, 2025
@frankliee frankliee reopened this Jun 9, 2025
@frankliee frankliee closed this Jun 10, 2025
@frankliee frankliee reopened this Jun 10, 2025
Copy link
Contributor

@kevinjqliu kevinjqliu left a comment

Choose a reason for hiding this comment

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

LGTM from the looks of it, updating the hive storage descriptor keeps the hive ecosystem in sync with iceberg table metadata

Comment on lines +54 to +55
<name>hive.metastore.disallow.incompatible.col.type.changes</name>
<value>false</value>
Copy link
Contributor

Choose a reason for hiding this comment

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

@kevinjqliu
Copy link
Contributor

cc @Fokko to take a look as well

@frankliee
Copy link
Contributor Author

Is there anything else? cc@Fokko

Copy link
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

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

Makes sense to me, thanks @frankliee for working on this, and thanks @kevinjqliu for the review 👍

@Fokko Fokko merged commit effb8cb into apache:main Jul 3, 2025
36 of 40 checks passed
amitgilad3 pushed a commit to amitgilad3/iceberg-python that referenced this pull request Jul 7, 2025
…he#2036)

<!--
Thanks for opening a pull request!
-->

<!-- In the case this PR will resolve an issue, please replace
${GITHUB_ISSUE_ID} below with the actual Github issue id. -->
<!-- Closes #${GITHUB_ISSUE_ID} -->

# Rationale for this change
Like iceberg jar, we should also update hive storage descriptor after
commit metadata

see:
https://github.com/apache/iceberg/blob/b504f9c51c6c0e0a5c0c5ff53f295e69b67d8e59/hive-metastore/src/main/java/org/apache/iceberg/hive/HiveTableOperations.java#L170

# Are these changes tested?
new UTs

# Are there any user-facing changes?
No


<!-- In the case of user-facing changes, please add the changelog label.
-->
gabeiglio pushed a commit to Netflix/iceberg-python that referenced this pull request Aug 13, 2025
…he#2036)

<!--
Thanks for opening a pull request!
-->

<!-- In the case this PR will resolve an issue, please replace
${GITHUB_ISSUE_ID} below with the actual Github issue id. -->
<!-- Closes #${GITHUB_ISSUE_ID} -->

# Rationale for this change
Like iceberg jar, we should also update hive storage descriptor after
commit metadata

see:
https://github.com/apache/iceberg/blob/b504f9c51c6c0e0a5c0c5ff53f295e69b67d8e59/hive-metastore/src/main/java/org/apache/iceberg/hive/HiveTableOperations.java#L170

# Are these changes tested?
new UTs

# Are there any user-facing changes?
No


<!-- In the case of user-facing changes, please add the changelog label.
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants