cloud-fan commented on code in PR #50328: URL: https://github.com/apache/spark/pull/50328#discussion_r2004673846
########## sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala: ########## @@ -3153,7 +3153,9 @@ class AstBuilder extends DataTypeAstBuilder override def visitFrameBound(ctx: FrameBoundContext): Expression = withOrigin(ctx) { def value: Expression = { val e = expression(ctx.expression) - validate(e.resolved && e.foldable, "Frame bound value must be a literal.", ctx) + validate( + e.resolved && e.foldable || e.isInstanceOf[Parameter], + "Frame bound value must be a literal.", ctx) Review Comment: ```suggestion "Frame bound value must be a literal or query parameter.", ctx) ``` -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org