zhangminglei opened a new issue, #8864: URL: https://github.com/apache/iceberg/issues/8864
### Apache Iceberg version main (development) ### Query engine Spark ### Please describe the bug 🐞 Reproduction Steps (pseudo test code) ``` createTable("id bigint NOT NULL, category string"); Table table = validationCatalog.loadTable(tableIdent); table.replaceSortOrder().asc("id", NullOrder.NULLS_FIRST).commit(); DataFile dataFile = DataFiles.builder(table.spec()) .withPath(table.location()) .withFormat(FileFormat.ORC) .withRecordCount(100) .withFileSizeInBytes(table.newScan().targetSplitSize() * 10) .withSortOrder(SortOrder.builderFor(table.schema()).asc("id", NullOrder.NULLS_FIRST).build()).build(); table.newAppend().appendFile(dataFile).commit(); for (FileScanTask scanTask : table.newScan().planFiles()) { Assert.assertNull(scanTask.file().sortOrderId()); // Sort order id information is lost } ``` -- 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: issues-unsubscr...@iceberg.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org