Szehon Ho created SPARK-52417: --------------------------------- Summary: Simplify Table properties handling in View Schema Evolution Mode Key: SPARK-52417 URL: https://issues.apache.org/jira/browse/SPARK-52417 Project: Spark Issue Type: Improvement Components: SQL Affects Versions: 4.0.0 Reporter: Szehon Ho
When a View is created, ex CREATE VIEW v (a1, a2) AS select c1, c2, it needs to save both set of columns (alias and query output). It saves the alias as the View Schema, and the query output as a table property like (c1, 0) (c2, 1) In the new Schema Evolution mode, we never allow the alias (view schema == view query output schema). Every time we detect schema change, we sync the view's schema with view query schema, keeping the invariant. So we can simplify the update in Schema Evolution mode to not update the table properties, and do not use them where they are currently used, in describe, etc.. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org