hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vineet Garg <vg...@hortonworks.com>
Subject Review Request 58004: HIVE-16228: Support for subqueries in complex expressions in SELECT
Date Tue, 28 Mar 2017 21:41:04 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/58004/
-----------------------------------------------------------

Review request for hive and Ashutosh Chauhan.


Bugs: HIVE-16228
    https://issues.apache.org/jira/browse/HIVE-16228


Repository: hive-git


Description
-------

This patch continues the work done in HIVE-16091 to add support for subqueries in SELECT for
complex expressions e.g.
select 1+ <scalar_subquery> from table

Limitation
* As mentioned in JIRA this patch doesn't have support for subqueries in UDAs and UDTFs


Diffs
-----

  ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/rules/HiveSubQueryRemoveRule.java
7c96f3d 
  ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java e75e892 
  ql/src/java/org/apache/hadoop/hive/ql/parse/SubQueryUtils.java 0ec24b5 
  ql/src/test/queries/clientnegative/subquery_select_complex_expr.q 8e6cf66 
  ql/src/test/queries/clientnegative/subquery_select_udf.q a52a5a9 
  ql/src/test/queries/clientpositive/perf/query9.q PRE-CREATION 
  ql/src/test/queries/clientpositive/subquery_select.q cb7d7aa 
  ql/src/test/results/clientnegative/subquery_in_select.q.out a8e1b99 
  ql/src/test/results/clientnegative/subquery_select_aggregate.q.out a8e1b99 
  ql/src/test/results/clientnegative/subquery_select_complex_expr.q.out a8e1b99 
  ql/src/test/results/clientnegative/subquery_select_udf.q.out a8e1b99 
  ql/src/test/results/clientpositive/llap/subquery_select.q.out 6fb253b 
  ql/src/test/results/clientpositive/perf/query9.q.out PRE-CREATION 


Diff: https://reviews.apache.org/r/58004/diff/1/


Testing
-------

Added more positive and negative test cases
Pre-commit testing


Thanks,

Vineet Garg


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message