amaliujia commented on code in PR #46503:
URL: https://github.com/apache/spark/pull/46503#discussion_r1598823312


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/inputFileBlock.scala:
##########
@@ -39,7 +40,7 @@ case class InputFileName() extends LeafExpression with 
Nondeterministic {
 
   override def nullable: Boolean = false
 
-  override def dataType: DataType = StringType
+  override def dataType: DataType = SQLConf.get.defaultStringType

Review Comment:
   ok makes sense. Thanks for two  concrete examples to demonstrate two 
possible error case.  I see we have a config to control collation support:
   
   ```
     lazy val COLLATION_ENABLED =
       buildConf("spark.sql.collation.enabled")
         .doc("Collations feature is under development and its use should be 
done under this" +
           "feature flag.")
         .version("4.0.0")
         .booleanConf
         .createWithDefault(Utils.isTesting)
   ```
   As long as this is by default false for real workload before we are 
confident to turn on the flag, then it is fine.
   
    



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