beliefer commented on code in PR #36703:
URL: https://github.com/apache/spark/pull/36703#discussion_r886396468
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala:
##########
@@ -1792,15 +1792,16 @@ class AstBuilder extends
SqlBaseParserBaseVisitor[AnyRef] with SQLConfHelper wit
override def visitCast(ctx: CastContext): Expression = withOrigin(ctx) {
val rawDataType = typedVisit[DataType](ctx.dataType())
val dataType =
CharVarcharUtils.replaceCharVarcharWithStringForCast(rawDataType)
- val cast = ctx.name.getType match {
+ ctx.name.getType match {
case SqlBaseParser.CAST =>
- Cast(expression(ctx.expression), dataType)
+ val cast = Cast(expression(ctx.expression), dataType)
Review Comment:
Thank you for the fix.
--
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]