Skip to content

Conversation

@xbattlax
Copy link

@xbattlax xbattlax commented Jan 6, 2026

Summary

Add a type-safe accessor method table_properties() to TableMetadata that returns TableProperties, eliminating manual TryFrom conversions at call sites.

Changes

  • Add table_properties() method to TableMetadata that parses and returns typed TableProperties
  • Update transaction/mod.rs to use the new method
  • Simplify datafusion/write.rs property access (~60 lines reduced to ~10)
  • Add unit tests for the new accessor method

Closes #1878

@xbattlax xbattlax force-pushed the use-table-properties-in-metadata branch from fd29c45 to 2663a57 Compare January 6, 2026 10:35
@xbattlax xbattlax force-pushed the use-table-properties-in-metadata branch 4 times, most recently from d850c4c to 9ff17c7 Compare January 6, 2026 20:32
@xbattlax xbattlax requested a review from pratik0316 January 8, 2026 12:51
Copy link
Contributor

@liurenjie1024 liurenjie1024 left a comment

Choose a reason for hiding this comment

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

Thanks @xbattlax for this pr, LGTM! The whole pr looks much better now!

@liurenjie1024
Copy link
Contributor

Oops, we need to resolve conflicts first.

@xbattlax xbattlax force-pushed the use-table-properties-in-metadata branch from a05b358 to 8a04a14 Compare January 9, 2026 12:30
Add a type-safe accessor method to TableMetadata that returns
TableProperties, eliminating manual TryFrom conversions at call sites.

- Add table_properties() method to TableMetadata
- Update transaction module to use new method
- Simplify datafusion write module property access
- Add tests for the new accessor method

Closes apache#1878
@xbattlax xbattlax force-pushed the use-table-properties-in-metadata branch from 8a04a14 to d354055 Compare January 9, 2026 12:46
@xbattlax
Copy link
Author

xbattlax commented Jan 9, 2026

Oops, we need to resolve conflicts first.

done, I fix it :) we can merge, I think that I don't have the access right to do !

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.

Use TableProperties in TableMetadata

3 participants