moomindani commented on issue #15610:
URL: https://github.com/apache/iceberg/issues/15610#issuecomment-4053515417

   I investigated this and found that SPJ works correctly after partition 
evolution when all data files use the new spec — 
`SparkPartitioningAwareScan.specs()` only considers specs with actual data, so 
the grouping key computation should work after a successful 
`rewrite_data_files` + `expire_snapshots`.
   
   Could you check if any files still reference the old spec after your cleanup?
   
   ```sql
   SELECT spec_id, count(*) FROM <catalog>.<db>.<table>.files GROUP BY spec_id;
   DESCRIBE EXTENDED <catalog>.<db>.<table>;
   ```
   
   If old-spec files remain, that would explain the empty grouping key.


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