javrasya opened a new issue, #10274:
URL: https://github.com/apache/iceberg/issues/10274

   ### Apache Iceberg version
   
   1.4.3
   
   ### Query engine
   
   Spark
   
   ### Please describe the bug 🐞
   
   We have added to columns in a nested struct field by using Iceberg Java API. 
I can query and see the new columns when no version is passed down to the query;
   
   ```sql
   select * 
   from spark_catalog.my_db.my_table 
   where myStructField.newlyAddedField='123' ;
   ```
   
   The query above works. But not the one below
   
   
   
   ```sql
   ALTER TABLE spark_catalog.my_db.my_table CREATE BRANCH `my_test_branch`;
   
   select * 
   from spark_catalog.my_db.my_table FOR VERSION AS OF 'my_test_branch' 
   where myStructField.newlyAddedField='123' ;
   ```
   
   I get `Error: org.apache.spark.sql.AnalysisException: No such struct field 
newlyAddedField`
   


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

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


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

Reply via email to