cryeo commented on a change in pull request #24335: [SPARK-27425][SQL] Add 
count_if functions
URL: https://github.com/apache/spark/pull/24335#discussion_r287647335
 
 

 ##########
 File path: sql/core/src/main/scala/org/apache/spark/sql/functions.scala
 ##########
 @@ -373,6 +373,25 @@ object functions {
   def countDistinct(columnName: String, columnNames: String*): Column =
     countDistinct(Column(columnName), columnNames.map(Column.apply) : _*)
 
+  /**
+   * Aggregate function: returns the number of true values in a group.
+   *
+   * @group agg_funcs
+   * @since 3.0.0
+   */
+  def count_if(e: Column): Column = withAggregateFunction {
 
 Review comment:
   > I wouldn't add those functions here for now.
   
   Thanks for your guide. I'll remove it for now.

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