Skip to content

fix: return err when not nil in WriteTableMetadata - #574

Merged
zeroshade merged 1 commit into
apache:mainfrom
alessandro-nori:return_err_in_write_table_metadata
Sep 23, 2025
Merged

zeroshade merged 1 commit into
apache:mainfrom
alessandro-nori:return_err_in_write_table_metadata

Conversation

@alessandro-nori

Copy link
Copy Markdown
Contributor
  • Return the error when fs fails to create a file at the provided location
  • Refactor the code to reuse WriteTableMetadata code in WriteMetadata

@alessandro-nori
alessandro-nori marked this pull request as ready for review September 22, 2025 13:05

@twuebi twuebi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks good, wondering what the difference between WriteTableMetadata & WriteMetadata is. They only seem to differ in the properties argument?

@alessandro-nori

Copy link
Copy Markdown
Contributor Author

looks good, wondering what the difference between WriteTableMetadata & WriteMetadata is. They only seem to differ in the properties argument?

They are used in two different catalog functions. We can probably use a single function to write metadata but it requires a larger refactor than the current one.

@zeroshade zeroshade 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.

Assuming no issues in CI, looks good!

@zeroshade
zeroshade merged commit a250163 into apache:main Sep 23, 2025
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