deniskuzZ commented on PR #6831:
URL: https://github.com/apache/hive/pull/6831#issuecomment-5912855324

   For Iceberg partitioned tables without a sort order, shouldDo() is what 
makes the input sorted: it sets `hasCustomPartitionOrSortExpression` → 
`setWriteOperationIsSorted` → HiveIcebergWriterBase picks the clustered writer. 
   With this change, an INSERT/CTAS whose source has no column stats silently 
falls back to the fanout writer (one open writer per partition per task, tasks 
× partitions files)
   
   The reducer-skew problem is real, but can we address it without flipping the 
unknown-stats default, e.g. by keeping the sort while spreading a partition 
across reducers, or at least excluding storage-handler/non-native tables whose 
writers depend on sorted input?


-- 
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]

Reply via email to