srielau commented on code in PR #46267:
URL: https://github.com/apache/spark/pull/46267#discussion_r1591605730


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala:
##########
@@ -1700,6 +1700,21 @@ object SQLConf {
     .booleanConf
     .createWithDefault(true)
 
+  val VIEW_SCHEMA_BINDING = buildConf("spark.sql.defaultViewSchemaBinding")
+    .doc("Control the default behavior of views when the underlying schema 
changes. " +
+      "Valid values are: " +
+      "'BINDING': Safe casts only. " +
+      "'COMPENSATION': Any supported casts. " +
+      "'TYPE EVOLUTION': Adopt type changes." +
+      "'EVOLUTION': Adopt names, types and arity." +
+      "'UNSUPPORTED': Disable the feature.")
+    .version("4.0.0")
+    .stringConf
+    .transform(_.toUpperCase(Locale.ROOT))
+    .checkValues(Set("BINDING", "COMPENSATION", "TYPE EVOLUTION", "EVOLUTION", 
"UNSUPPORTED"))

Review Comment:
   If we do this, would we also need to change it in the grammar for CREATE 
VIEW?



-- 
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: reviews-unsubscr...@spark.apache.org

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


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

Reply via email to