davidm-db commented on code in PR #47423:
URL: https://github.com/apache/spark/pull/47423#discussion_r1713746056
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala:
##########
@@ -229,6 +273,29 @@ class AstBuilder extends DataTypeAstBuilder
)
}
+ override def visitDeclareCondition(ctx: DeclareConditionContext):
ErrorCondition = {
+ val conditionName = ctx.multipartIdentifier().getText
+ val conditionValue =
Option(ctx.stringLit()).map(_.getText).getOrElse("'45000'").
Review Comment:
ok, wasn't aware of it. then probably the cleanest way is
`.map(_.getText.replace(...)).getOrElse("45000")`
--
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]