diff options
author | William Benton <willb@redhat.com> | 2014-07-23 16:25:32 -0700 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2014-07-23 16:25:32 -0700 |
commit | e060d3ee2d910a5a802bb29630dca6f66cc0525d (patch) | |
tree | 766d3ece33ff5955d8b0ffafb824beee5b7f459e /sbin/start-slave.sh | |
parent | 91903e0a50b0efb7217610021a628b3043004d82 (diff) | |
download | spark-e060d3ee2d910a5a802bb29630dca6f66cc0525d.tar.gz spark-e060d3ee2d910a5a802bb29630dca6f66cc0525d.tar.bz2 spark-e060d3ee2d910a5a802bb29630dca6f66cc0525d.zip |
SPARK-2226: [SQL] transform HAVING clauses with aggregate expressions that aren't in the aggregation list
This change adds an analyzer rule to
1. find expressions in `HAVING` clause filters that depend on unresolved attributes,
2. push these expressions down to the underlying aggregates, and then
3. project them away above the filter.
It also enables the `HAVING` queries in the Hive compatibility suite.
Author: William Benton <willb@redhat.com>
Closes #1497 from willb/spark-2226 and squashes the following commits:
92c9a93 [William Benton] Removed unnecessary import
f1d4f34 [William Benton] Cleanups missed in prior commit
0e1624f [William Benton] Incorporated suggestions from @marmbrus; thanks!
541d4ee [William Benton] Cleanups from review
5a12647 [William Benton] Explanatory comments and stylistic cleanups.
c7f2b2c [William Benton] Whitelist HAVING queries.
29a26e3 [William Benton] Added rule to handle unresolved attributes in HAVING clauses (SPARK-2226)
Diffstat (limited to 'sbin/start-slave.sh')
0 files changed, 0 insertions, 0 deletions