hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hive QA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-15544) Support scalar subqueries
Date Thu, 05 Jan 2017 06:52:58 GMT

    [ https://issues.apache.org/jira/browse/HIVE-15544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15800541#comment-15800541
] 

Hive QA commented on HIVE-15544:
--------------------------------



Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12845708/HIVE-15544.1.patch

{color:red}ERROR:{color} -1 due to build exiting with an error

Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/2793/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/2793/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-2793/

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Tests exited with: NonZeroExitCodeException
Command 'bash /data/hiveptest/working/scratch/source-prep.sh' failed with exit status 1 and
output '+ date '+%Y-%m-%d %T.%3N'
2017-01-05 06:52:35.750
+ [[ -n /usr/lib/jvm/java-8-openjdk-amd64 ]]
+ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
+ JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
+ export PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
+ PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
+ export 'ANT_OPTS=-Xmx1g -XX:MaxPermSize=256m '
+ ANT_OPTS='-Xmx1g -XX:MaxPermSize=256m '
+ export 'MAVEN_OPTS=-Xmx1g '
+ MAVEN_OPTS='-Xmx1g '
+ cd /data/hiveptest/working/
+ tee /data/hiveptest/logs/PreCommit-HIVE-Build-2793/source-prep.txt
+ [[ false == \t\r\u\e ]]
+ mkdir -p maven ivy
+ [[ git = \s\v\n ]]
+ [[ git = \g\i\t ]]
+ [[ -z master ]]
+ [[ -d apache-github-source-source ]]
+ [[ ! -d apache-github-source-source/.git ]]
+ [[ ! -d apache-github-source-source ]]
+ date '+%Y-%m-%d %T.%3N'
2017-01-05 06:52:35.752
+ cd apache-github-source-source
+ git fetch origin
+ git reset --hard HEAD
HEAD is now at ad335c1 HIVE-15518: Refactoring rows and range related classes to put the window
type on Window (Aihua Xu, reviewed by Yongzhi Chen)
+ git clean -f -d
Removing ql/src/java/org/apache/hadoop/hive/ql/exec/DynamicValueRegistry.java
Removing ql/src/java/org/apache/hadoop/hive/ql/exec/ExprNodeDynamicValueEvaluator.java
Removing ql/src/java/org/apache/hadoop/hive/ql/exec/tez/DynamicValueRegistryTez.java
Removing ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/DynamicValueVectorExpression.java
Removing ql/src/java/org/apache/hadoop/hive/ql/parse/RuntimeValuesInfo.java
Removing ql/src/java/org/apache/hadoop/hive/ql/plan/DynamicValue.java
Removing ql/src/java/org/apache/hadoop/hive/ql/plan/ExprNodeDynamicValueDesc.java
Removing ql/src/test/queries/clientpositive/dynamic_semijoin_reduction.q
Removing ql/src/test/results/clientpositive/llap/dynamic_semijoin_reduction.q.out
Removing storage-api/src/java/org/apache/hadoop/hive/ql/io/sarg/LiteralDelegate.java
+ git checkout master
Already on 'master'
Your branch is up-to-date with 'origin/master'.
+ git reset --hard origin/master
HEAD is now at ad335c1 HIVE-15518: Refactoring rows and range related classes to put the window
type on Window (Aihua Xu, reviewed by Yongzhi Chen)
+ git merge --ff-only origin/master
Already up-to-date.
+ date '+%Y-%m-%d %T.%3N'
2017-01-05 06:52:36.731
+ patchCommandPath=/data/hiveptest/working/scratch/smart-apply-patch.sh
+ patchFilePath=/data/hiveptest/working/scratch/build.patch
+ [[ -f /data/hiveptest/working/scratch/build.patch ]]
+ chmod +x /data/hiveptest/working/scratch/smart-apply-patch.sh
+ /data/hiveptest/working/scratch/smart-apply-patch.sh /data/hiveptest/working/scratch/build.patch
error: a/itests/src/test/resources/testconfiguration.properties: No such file or directory
error: a/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/HiveSubQRemoveRelBuilder.java:
No such file or directory
error: a/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/reloperators/HiveFilter.java:
No such file or directory
error: a/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/rules/HiveSubQueryRemoveRule.java:
No such file or directory
error: a/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/translator/RexNodeConverter.java:
No such file or directory
error: a/ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java: No such file or
directory
error: a/ql/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g: No such file or
directory
error: a/ql/src/java/org/apache/hadoop/hive/ql/parse/QBSubQuery.java: No such file or directory
error: a/ql/src/java/org/apache/hadoop/hive/ql/parse/TypeCheckProcFactory.java: No such file
or directory
error: a/ql/src/java/org/apache/hadoop/hive/ql/plan/ExprNodeSubQueryDesc.java: No such file
or directory
error: a/ql/src/test/queries/clientnegative/subquery_restrictions.q: No such file or directory
error: a/ql/src/test/queries/clientpositive/perf/query45.q: No such file or directory
error: a/ql/src/test/queries/clientpositive/subquery_exists.q: No such file or directory
error: a/ql/src/test/queries/clientpositive/subquery_in.q: No such file or directory
error: a/ql/src/test/queries/clientpositive/subquery_in_having.q: No such file or directory
error: a/ql/src/test/queries/clientpositive/subquery_notexists.q: No such file or directory
error: a/ql/src/test/queries/clientpositive/subquery_notin.q: No such file or directory
error: a/ql/src/test/results/clientnegative/subquery_corr_grandparent.q.out: No such file
or directory
error: a/ql/src/test/results/clientnegative/subquery_restrictions.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/explainuser_1.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/lineage3.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/subquery_exists.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/subquery_in.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/subquery_notin.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/vector_groupby_mapjoin.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/spark/subquery_exists.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/spark/subquery_in.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/subquery_exists.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/subquery_in_having.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/subquery_notexists.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/subquery_notin_having.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/vector_groupby_mapjoin.q.out: No such file or
directory
The patch does not appear to apply with p0, p1, or p2
+ exit 1
'
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12845708 - PreCommit-HIVE-Build

> Support scalar subqueries
> -------------------------
>
>                 Key: HIVE-15544
>                 URL: https://issues.apache.org/jira/browse/HIVE-15544
>             Project: Hive
>          Issue Type: Sub-task
>          Components: SQL
>            Reporter: Vineet Garg
>            Assignee: Vineet Garg
>              Labels: sub-query
>         Attachments: HIVE-15544.1.patch
>
>
> Currently HIVE only support IN/EXISTS/NOT IN/NOT EXISTS subqueries. HIVE doesn't allow
sub-queries such as:
> {code}
> explain select  a.ca_state state, count(*) cnt
>  from customer_address a
>      ,customer c
>      ,store_sales s
>      ,date_dim d
>      ,item i
>  where       a.ca_address_sk = c.c_current_addr_sk
>  	and c.c_customer_sk = s.ss_customer_sk
>  	and s.ss_sold_date_sk = d.d_date_sk
>  	and s.ss_item_sk = i.i_item_sk
>  	and d.d_month_seq = 
>  	     (select distinct (d_month_seq)
>  	      from date_dim
>                where d_year = 2000
>  	        and d_moy = 2 )
>  	and i.i_current_price > 1.2 * 
>              (select avg(j.i_current_price) 
>  	     from item j 
>  	     where j.i_category = i.i_category)
>  group by a.ca_state
>  having count(*) >= 10
>  order by cnt 
>  limit 100;
> {code}
> We initially plan to support such scalar subqueries in filter i.e. WHERE and HAVING



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message