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-15192) Use Calcite to de-correlate and plan subqueries
Date Fri, 16 Dec 2016 07:01:06 GMT

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

Hive QA commented on HIVE-15192:
--------------------------------



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

{color:green}SUCCESS:{color} +1 due to 10 test(s) being added or modified.

{color:red}ERROR:{color} -1 due to 15 failed/errored test(s), 10819 tests executed
*Failed tests:*
{noformat}
TestDerbyConnector - did not produce a TEST-*.xml file (likely timed out) (batchId=234)
TestVectorizedColumnReaderBase - did not produce a TEST-*.xml file (likely timed out) (batchId=251)
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[sample2] (batchId=5)
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[sample4] (batchId=15)
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[sample6] (batchId=61)
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[sample7] (batchId=60)
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[sample9] (batchId=39)
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[udf_sort_array] (batchId=59)
org.apache.hadoop.hive.cli.TestMiniLlapCliDriver.testCliDriver[transform_ppr2] (batchId=135)
org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[metadataonly1] (batchId=150)
org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[stats_based_fetch_decision]
(batchId=151)
org.apache.hadoop.hive.cli.TestMiniTezCliDriver.testCliDriver[explainanalyze_1] (batchId=92)
org.apache.hadoop.hive.cli.TestMiniTezCliDriver.testCliDriver[explainanalyze_2] (batchId=93)
org.apache.hadoop.hive.cli.TestMiniTezCliDriver.testCliDriver[explainanalyze_5] (batchId=92)
org.apache.hive.hcatalog.api.TestHCatClientNotification.createTable (batchId=220)
{noformat}

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

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
Tests exited with: TestsFailedException: 15 tests failed
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12843522 - PreCommit-HIVE-Build

> Use Calcite to de-correlate and plan subqueries
> -----------------------------------------------
>
>                 Key: HIVE-15192
>                 URL: https://issues.apache.org/jira/browse/HIVE-15192
>             Project: Hive
>          Issue Type: Task
>          Components: Logical Optimizer
>            Reporter: Vineet Garg
>            Assignee: Vineet Garg
>              Labels: sub-query
>         Attachments: HIVE-15192.10.patch, HIVE-15192.2.patch, HIVE-15192.3.patch, HIVE-15192.4.patch,
HIVE-15192.5.patch, HIVE-15192.6.patch, HIVE-15192.7.patch, HIVE-15192.8.patch, HIVE-15192.9.patch,
HIVE-15192.patch
>
>
> HIVE currently tranform subqueries into SEMI-JOIN or LEFT OUTER JOIN. This transformation
occurs on query AST before generating logical plan. These transformations are described at
[Link to original spec | https://issues.apache.org/jira/secure/attachment/12614003/SubQuerySpec.pdf].
Such transformations aren't able to handle a lot of subqueries, as a result HIVE imposes various
restrictions on the type of queries it could handle e.g. Hive disallows nested subqueries.
All current restrictions are detailed in above linked document.
> This patch is 1st phase of getting rid of these transformations and leverage Calcite's
functionality to plan such queries. 
> Next phases will be lifting restrictions one by one. 
> Note that this patch already lifts one restriction *Restriction.6.m* (The LHS in a SubQuery
must have all its Column References be qualified)
> Known issues with this patch are:
>  * Return path tests fails for various reasons and are currently disabled. We plan to
fix and re-enable this later.
>   * Semi-join optimization (HIVE-15227) is disabled by default as it doesn't work with
this patch. We plan to fix this and re-enable it by default.



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

Mime
View raw message