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


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala:
##########
@@ -1700,6 +1700,16 @@ object SQLConf {
     .booleanConf
     .createWithDefault(true)
 
+  val VIEW_SCHEMA_BINDING_MODE = buildConf("spark.sql.viewSchemaBindingMode")
+    .doc("Set to DISABLE to disable the WITH SCHEMA clause for view DDL and 
suppress the line in " +
+      " DESCRIBE EXTENDED. The default, and only other value, is COMPENSATION. 
Views without " +
+      " WITH SCHEMA clause are defaulted to WITH SCHEMA COMPENSATION.")

Review Comment:
   I was debating this. It would basically grandfather all existing views to an 
explicit WITH SCHEMA BINDING.
   But, IMHO, this causes more grief than benefit.
   We want existing views to use WITH SCHEMA COMPENSATION, so we are protected 
from future type resolution changes as the recent DECIMAL one. 



-- 
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]

Reply via email to