gengliangwang commented on code in PR #36880:
URL: https://github.com/apache/spark/pull/36880#discussion_r898396863


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/ResolveDefaultColumnsUtil.scala:
##########
@@ -241,4 +242,36 @@ object ResolveDefaultColumns {
       }
     }
   }
+
+  /**
+   * This is an Analyzer for processing default column values using built-in 
functions only.
+   */
+  object DefaultColumnAnalyzer extends Analyzer(
+    new CatalogManager(BuiltInFunctionCatalog, 
BuiltInFunctionCatalog.v1Catalog)) {
+    override def resolver: Resolver = caseSensitiveResolution

Review Comment:
   Why use `caseSensitiveResolution` here? I saw this in `SimpleAnalyzer` 
though. But I think we don't need to overwrite it. The default `conf.resolver` 
looks more reasonable.



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