You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "RussellSpitzer (via GitHub)" <gi...@apache.org> on 2023/05/11 15:15:38 UTC

[GitHub] [iceberg] RussellSpitzer commented on issue #7586: Rewrite with zORDER results in 'Cannot find field 'ICEZVALUE' in struct' Error

RussellSpitzer commented on issue #7586:
URL: https://github.com/apache/iceberg/issues/7586#issuecomment-1544179907

   The error is due to Partition Evolution. The ShufflingDataWriter attempts to do a partitioned based shuffle along with the sort order when dealing with files not written in the output partition spec.
   
   https://github.com/apache/iceberg/blob/master/spark/v3.3/spark/src/main/java/org/apache/iceberg/spark/actions/SparkShufflingDataRewriter.java#L120
   
   The problem is that for ZOrder tables the SortOrder() is on a column which does not exist in "table()" because it is the computed Z value. This Causes the sort order builder to fail. It instead needs to use the schema of the table + the Zorder column to create the correct output order.


-- 
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-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org