[
https://issues.apache.org/jira/browse/HIVE-15231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15675274#comment-15675274
]
Hive QA commented on HIVE-15231:
--------------------------------
Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12839444/HIVE-15231.1.patch
{color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified.
{color:red}ERROR:{color} -1 due to 6 failed/errored test(s), 10667 tests
executed
*Failed tests:*
{noformat}
TestSparkCliDriver - did not produce a TEST-*.xml file (likely timed out)
(batchId=115)
[timestamp_lazy.q,union29.q,runtime_skewjoin_mapjoin_spark.q,auto_join22.q,union8.q,groupby5_map.q,stats0.q,auto_join29.q,groupby6.q,merge1.q,mapjoin_distinct.q,vector_decimal_mapjoin.q,sample5.q,multi_insert_move_tasks_share_dependencies.q,join_array.q]
TestSparkCliDriver - did not produce a TEST-*.xml file (likely timed out)
(batchId=128)
[union_remove_15.q,bucket_map_join_tez1.q,groupby7_noskew.q,bucketmapjoin1.q,subquery_multiinsert.q,auto_join8.q,auto_join6.q,groupby2_map_skew.q,lateral_view_explode2.q,join28.q,load_dyn_part1.q,skewjoinopt17.q,skewjoin_union_remove_1.q,union_remove_20.q,bucketmapjoin5.q]
org.apache.hadoop.hive.cli.TestMiniLlapCliDriver.testCliDriver[transform_ppr2]
(batchId=133)
org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[join_acid_non_acid]
(batchId=150)
org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[union_fast_stats]
(batchId=145)
org.apache.hive.spark.client.TestSparkClient.testJobSubmission (batchId=272)
{noformat}
Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/2175/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/2175/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-2175/
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: 6 tests failed
{noformat}
This message is automatically generated.
ATTACHMENT ID: 12839444 - PreCommit-HIVE-Build
> query on view with CTE and alias fails with table not found error
> -----------------------------------------------------------------
>
> Key: HIVE-15231
> URL: https://issues.apache.org/jira/browse/HIVE-15231
> Project: Hive
> Issue Type: Bug
> Components: Query Planning
> Affects Versions: 1.3.0
> Reporter: Aihua Xu
> Assignee: Aihua Xu
> Attachments: HIVE-15231.1.patch, HIVE-15231.2.patch
>
>
> HIVE-10698 fixed one issue of the query on view with CTE, but it seems to
> break another case if a alias is given for the CTE.
> {noformat}
> use bugtest;
> create table basetb(id int, name string);
> create view testv1 as
> with subtb as (select id, name from bugtest.basetb)
> select id from subtb a;
> use castest;
> explain select * from bugtest.testv1;
> hive> explain select * from bugtest.testv1;
> FAILED: SemanticException Line 2:21 Table not found 'subtb' in definition of
> VIEW testv1 [
> with subtb as (select `basetb`.`id`, `basetb`.`name` from `bugtest`.`basetb`)
> select `a`.`id` from `bugtest`.`subtb` `a`
> ] used as testv1 at Line 1:14
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)