nastra commented on PR #19277: URL: https://github.com/apache/iceberg/pull/19277#issuecomment-7407086146
With the latest commit, here's also a short summary of the behavior between Spark 4.1 and Spark 4.2. Failing with a stale-view error in the first 3 cases is a choice that we're making here in order to avoid silently reading stale data: | Scenario | Spark 4.1 (this branch) | Spark 4.2 | |---|---|---| | `SELECT *` view, then `ADD COLUMN ... FIRST` | **Fails** with stale-view error | **Correct rows** | | `SELECT *` view, then `ADD COLUMN ... AFTER id` | **Fails** with stale-view error | **Correct rows** | | Trino view (no `spark.query-column-names`), then `ADD COLUMN ... FIRST` | **Fails** with stale-view error | **Correct rows** | | `SELECT *` view, then `DROP COLUMN data` | Fails with stale-view error | Fails with stale-view error (`INCOMPATIBLE_VIEW_SCHEMA_CHANGE`) | | `SELECT *` view, then `RENAME COLUMN data` | Fails with stale-view error | Fails with stale-view error (`INCOMPATIBLE_VIEW_SCHEMA_CHANGE`) | | `SELECT *` join view, then a duplicate `category` column added | Fails (``expected 1 query column(s) named `category` but found 2``) | Fails (`Expected 1 columns named category but got [category,category]`) | | Explicit-column view, then `ADD COLUMN ... FIRST` | Correct rows | Correct rows | | `SELECT *` view, then `ADD COLUMN` at the end | Correct rows | Correct rows | -- 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]
