shangxinli opened a new pull request, #14847: URL: https://github.com/apache/iceberg/pull/14847
This commit resolves the TODO in DeleteFilter.fileProjection() that previously prevented equality deletes from working with nested columns. The original code used tableSchema.asStruct().field(fieldId) which only finds top-level fields, causing 'Cannot find required field for ID X' errors when equality delete files referenced nested fields. Changes: - Use Schema.findColumnName() to get full column path for nested fields - Use Schema.select() to preserve nested structure in projection - Separate data column IDs from metadata column IDs to avoid passing metadata column names to Schema.select() - Add metadata columns explicitly after projection (they don't exist in tableSchema) - Add MetadataColumns.metadataColumns() to expose metadata columns dynamically - Add test coverage for nested columns and metadata columns -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
