deniskuzZ commented on code in PR #5541: URL: https://github.com/apache/hive/pull/5541#discussion_r1883823645
########## iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergMetaHook.java: ########## @@ -271,6 +275,23 @@ public void preCreateTable(CreateTableRequest request) { setOrcOnlyFilesParam(hmsTable); // Remove hive primary key columns from table request, as iceberg doesn't support hive primary key. request.setPrimaryKeys(null); + addSortOrder(hmsTable, schema, catalogProperties); Review Comment: that seems to be called during commit. can we reuse `setOrder` logic? ```` HiveTableOperations.setHmsTableParameters(..) -> setSortOrder(metadata, parameters) ```` -- 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: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org