chandrasekhar-188k opened a new issue, #17288: URL: https://github.com/apache/iceberg/issues/17288
### Apache Iceberg version None ### Query engine Spark ### Please describe the bug 🐞 A view created using WITH SCHEMA EVOLUTION over a VALUES query is created successfully, but fails during query execution with an INCOMPATIBLE_VIEW_SCHEMA_CHANGE exception. This scenario worked correctly in Spark 3.5 and issue exists in Spark 4.0. Reproducer CREATE VIEW q7(c1, c2) WITH SCHEMA EVOLUTION AS VALUES (1, 2); SELECT * FROM q7; Actual Result The view is created successfully, but the SELECT fails with: `org.apache.spark.sql.AnalysisException: [INCOMPATIBLE_VIEW_SCHEMA_CHANGE] The SQL query of view spark_catalog.q7 has an incompatible schema change and column c1 cannot be resolved. Expected 1 column named c1 but got []` Expected Result Since the view definition is based on a constant VALUES clause whose schema cannot evolve, the query should return: +---+---+ | c1| c2| +---+---+ | 1| 2| +---+---+ ### Willingness to contribute - [ ] I can contribute a fix for this bug independently - [ ] I would be willing to contribute a fix for this bug with guidance from the Iceberg community - [ ] I cannot contribute a fix for this bug at this time -- 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]
