cloud-fan commented on code in PR #38864:
URL: https://github.com/apache/spark/pull/38864#discussion_r1045676421
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala:
##########
@@ -4837,4 +4837,13 @@ class AstBuilder extends
SqlBaseParserBaseVisitor[AnyRef] with SQLConfHelper wit
override def visitTimestampdiff(ctx: TimestampdiffContext): Expression =
withOrigin(ctx) {
TimestampDiff(ctx.unit.getText, expression(ctx.startTimestamp),
expression(ctx.endTimestamp))
}
+
+ /**
+ * Create a named parameter which represents a literal with a non-bound
value and unknown type.
+ * */
+ override def visitParameterLiteral(ctx: ParameterLiteralContext): Expression
= withOrigin(ctx) {
+ val name = ctx.getText
Review Comment:
should this be `ctx.identifier.getText`?
--
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]