srowen commented on a change in pull request #24779: [SPARK-27929][SQL] Make 
percentile function receive frq of double
URL: https://github.com/apache/spark/pull/24779#discussion_r313550980
 
 

 ##########
 File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregate/Percentile.scala
 ##########
 @@ -67,16 +67,23 @@ case class Percentile(
     child: Expression,
     percentageExpression: Expression,
     frequencyExpression : Expression,
+    isIntFreqExpression: Expression,
 
 Review comment:
   Oh I misunderstood this a little. This is extending the implementation of 
weighted percentile.
   Still, I doubt you need to add a new expression here. Just expand the 
allowed types to any `NumericType`, which should be backwards compatible. The 
math wouldn't change, right?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to