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 3 times, most recently from 7f3663f to d850c4c Compare January 6, 2026 17:26
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 d850c4c to 9ff17c7 Compare January 6, 2026 20:32
@xbattlax xbattlax requested a review from pratik0316 January 8, 2026 12:51
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

2 participants