yjshen opened a new issue, #5873:
URL: https://github.com/apache/arrow-datafusion/issues/5873

   ### Is your feature request related to a problem or challenge?
   
   Implement the FILTER clause for aggregate functions (introduced in 
SQL:2003). This syntax allows for filtering before aggregation.
   
   ```sql
   SUM(<expression>) FILTER(WHERE <condition>)
   ```
   
   ### Describe the solution you'd like
   
   _No response_
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   PostgreSQL: 
https://www.postgresql.org/docs/current/sql-expressions.html#SYNTAX-AGGREGATES
   Spark: 
https://spark.apache.org/docs/3.3.2/sql-ref-syntax-qry-select-groupby.html
   


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

Reply via email to