You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by "lyy-pineapple (via GitHub)" <gi...@apache.org> on 2025/05/06 08:27:31 UTC

[I] Gluten reads Iceberg columns by name instead of id, causing incorrect data when column is re-added [incubator-gluten]

lyy-pineapple opened a new issue, #9528:
URL: https://github.com/apache/incubator-gluten/issues/9528

   ### Backend
   
   VL (Velox)
   
   ### Bug description
   
   When an Iceberg table column is dropped and then re-added with the same name, Iceberg assigns a new unique column ID to the re-added column. Iceberg relies on column IDs (not names) for mapping data files to schema definitions. As a result, historical data files written before the column was re-added do not contain data for the new column ID, and Iceberg correctly interprets it as null.
   
   However, Gluten currently resolves columns by name, ignoring the column ID. This causes it to incorrectly read data from old columns with the same name but different IDs, leading to incorrect or misleading query results.
   
   ### Gluten version
   
   _No response_
   
   ### Spark version
   
   None
   
   ### Spark configurations
   
   _No response_
   
   ### System information
   
   _No response_
   
   ### Relevant logs
   
   ```bash
   
   ```


-- 
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: commits-unsubscribe@gluten.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org