You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Daniel Russo (Jira)" <ji...@apache.org> on 2021/01/29 19:00:00 UTC
[jira] [Created] (ARROW-11431) [Rust] [DataFusion] Add support for
the SQL HAVING clause
Daniel Russo created ARROW-11431:
------------------------------------
Summary: [Rust] [DataFusion] Add support for the SQL HAVING clause
Key: ARROW-11431
URL: https://issues.apache.org/jira/browse/ARROW-11431
Project: Apache Arrow
Issue Type: New Feature
Components: Rust - DataFusion
Reporter: Daniel Russo
Assignee: Daniel Russo
We do not yet have support for the SQL {{HAVING}} clause. {{HAVING}} is used to filter post-aggregation, typically against an aggregated column. For example:
{code}
SELECT c1, MAX(c2) FROM t GROUP BY c1 HAVING MAX(c2) > 100
{code}
{{HAVING}} expressions need not reference aggregates in the {{SELECT}}, for example:
{code}
SELECT c1, MAX(c2) FROM t GROUP BY c1 HAVING MIN(c2) > 100
{code}
{{HAVING}} expressions need not filter on aggregated columns, for example:
{code}
SELECT c1, MAX(c2) FROM t GROUP BY c1 HAVING c1 > 100
{code}
Lastly, {{HAVING}} expressions need not be used in conjunction with a {{GROUP BY}}, for example:
{code}
SELECT MAX(c1) FROM t HAVING MAX(c1) > 100
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)