Skip to content

Fix for metadata entries table for MOR tables containing Delete Files. #1902

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

Merged
merged 3 commits into from
Apr 16, 2025

Conversation

guptaakashdeep
Copy link
Contributor

@guptaakashdeep guptaakashdeep commented Apr 9, 2025

Closes #1884

Rationale for this change

table.inspect.entries() fails when table is MOR table and has Delete Files present in it. Iceberg MOR Table is created via Apache Spark 3.5.0 with Iceberg 1.5.0 and it's being read via PyIceberg 0.9.0 using StaticTable.from_metadata()

Are these changes tested?

Yes

Are there any user-facing changes?

No

@guptaakashdeep
Copy link
Contributor Author

guptaakashdeep commented Apr 9, 2025

This fixes #1884

@kevinjqliu Can this fix be reviewed once please?

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.

Thanks for working on this @guptaakashdeep, that's a great catch 🙌 It looks good, I just suggested a bit more concise syntax. LMKWYT

@Fokko
Copy link
Contributor

Fokko commented Apr 15, 2025

@guptaakashdeep The CI should be fixed? Can you pull in main once more?

@guptaakashdeep
Copy link
Contributor Author

@Fokko Alright done.

@Fokko Fokko added this to the PyIceberg 0.9.1 milestone Apr 16, 2025
@Fokko Fokko merged commit b440682 into apache:main Apr 16, 2025
7 checks passed
@Fokko
Copy link
Contributor

Fokko commented Apr 16, 2025

Thanks @guptaakashdeep 🙌

Fokko pushed a commit that referenced this pull request Apr 17, 2025
#1902)

<!--
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 #1884 

# Rationale for this change
table.inspect.entries() fails when table is MOR table and has Delete
Files present in it. Iceberg MOR Table is created via Apache Spark 3.5.0
with Iceberg 1.5.0 and it's being read via PyIceberg 0.9.0 using
StaticTable.from_metadata()


# Are these changes tested?
Yes

# 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.

Metadata entries table breaks when the table configured as Merge-on-Read and has Delete Files
2 participants