You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;
An interesting finding, once there is any update on the main branch after the schema is evolved, this no longer becomes a problem.
I ran the following to trigger a dummy update to test it and the problem went away;
MERGE INTO spark_catalog.spark_catalog.my_db.my_tableAS target
USING (SELECT*FROMspark_catalog.my_db.my_table LIMIT1) AS source
ONtarget.id=source.id
WHEN MATCHED THEN
UPDATESET*;
ALTERTABLEspark_catalog.my_db.my_table CREATE BRANCH `my_test_branch`;
SELECT*FROMspark_catalog.my_db.my_table.branch_my_test_branchWHEREmyStructField.newlyAddedField='123' ;
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;
The query above works. But not the one below
I get
Error: org.apache.spark.sql.AnalysisException: No such struct field newlyAddedField
The text was updated successfully, but these errors were encountered: