manirajv06 opened a new issue, #13914: URL: https://github.com/apache/iceberg/issues/13914
### Apache Iceberg version None ### Query engine None ### Please describe the bug 🐞 When Sort order columns count is higher than the write.metadata.metrics.max-inferred-column-defaults, metrics would be generated for that extra sort order columns too. For example, sort is 10, inferred is 5. First 5 columns of the actual schema would be picked first and then sort order columns would be included in the list if not present in the list later. In worst case, If sort order schema is last 5 columns of the actual schema and max inferred columns is 5, then metrics would be generated for 10 columns (first 5 columns of the actual schema + 5 sort order columns). Since metrics generation carries more significance for sort order columns, preference has to be given to it first and then to the remaining columns later. Still after giving preference, We might need to ignore some sort order columns when sort order columns count is higher than the max inferred columns. ### Willingness to contribute - [x] I can contribute a fix for this bug independently - [x] I would be willing to contribute a fix for this bug with guidance from the Iceberg community - [ ] I cannot contribute a fix for this bug at this time -- 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]
