beliefer commented on code in PR #35041:
URL: https://github.com/apache/spark/pull/35041#discussion_r851573081


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala:
##########
@@ -1845,12 +1845,12 @@ class AstBuilder extends 
SqlBaseParserBaseVisitor[AnyRef] with SQLConfHelper wit
       case SqlBaseParser.PERCENTILE_CONT =>
         sortOrder.direction match {
           case Ascending => PercentileCont(sortOrder.child, percentage)
-          case Descending => PercentileCont(sortOrder.child, 
Subtract(Literal(1), percentage))
+          case Descending => PercentileCont(sortOrder.child, percentage, true)

Review Comment:
   The test case output is not changed.



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

Reply via email to