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

Reading Latest Metadata Json File of Iceberg Table #1585

Open
heman026 opened this issue Jan 28, 2025 · 1 comment
Open

Reading Latest Metadata Json File of Iceberg Table #1585

heman026 opened this issue Jan 28, 2025 · 1 comment

Comments

@heman026
Copy link

Question

Hi,
I need to read the latest metadata Json file of Iceberg table. I am using Rest Catalog for Nessie with Minio Storage. I used the following code, but the Metadata_log is empty. Could you please help me get the latest metadata file.

py_table = catalog.load_table('test.emp')
metadata = py_table.metadata
latest_metadata_file = metadata.metadata_log[-1].file

Let me know if there is any other way to get the latest metadata file, if the above code is not correct.

Thanks

@kevinjqliu
Copy link
Contributor

I believe the catalog keeps track of the metadata_log and populates it. I'd check with Nessie to see if that is supported.

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

No branches or pull requests

2 participants