The GitHub Actions job "CI" on 
iceberg-rust.git/feat/datafusion-schema-validation has succeeded.
Run started by GitHub user viirya (triggered by viirya).

Head commit for run:
d3a1c7a1415d3202f7efc6a8e1a566c328dff02b / Liang-Chi Hsieh <[email protected]>
feat(datafusion): Add schema validation for partition projection

Implement schema validation in project_with_partition to ensure the input
schema matches the Iceberg table schema before calculating partition values.
This prevents subtle bugs from schema mismatches and provides clear error
messages when schemas don't match.

Changes:
- Add helper functions to recursively strip metadata from Arrow schemas
- Implement schema validation that compares input schema with expected
  Iceberg table schema, ignoring metadata differences
- Add comprehensive tests for metadata stripping and schema validation
- Closes #1752

The implementation follows the approach suggested in issue #1752:
- Recursively visits schema and removes metadata from all fields
- Compares cleaned schemas using Arrow's built-in equality operator
- Returns helpful error messages showing both schemas on mismatch

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>

Report URL: https://github.com/apache/iceberg-rust/actions/runs/20866949047

With regards,
GitHub Actions via GitBox

Reply via email to