cloud-fan commented on a change in pull request #31034:
URL: https://github.com/apache/spark/pull/31034#discussion_r555011370



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Cast.scala
##########
@@ -38,6 +39,11 @@ import org.apache.spark.unsafe.types.UTF8String.{IntWrapper, 
LongWrapper}
 
 object Cast {
 
+  /**
+   * A tag to decide if a CAST is generated during analysis.
+   */
+  val AUTO_GENERATED_TAG = new TreeNodeTag[Boolean]("auto-generated-cast")

Review comment:
       it's a bit weird to have a property that can only be set to false. How 
about `user_specified_cast` that can only be set to  true?




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

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