You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Hive QA (Jira)" <ji...@apache.org> on 2020/03/18 05:16:00 UTC
[jira] [Commented] (HIVE-18983) Add support for table properties
inheritance in Create table like
[ https://issues.apache.org/jira/browse/HIVE-18983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17061399#comment-17061399 ]
Hive QA commented on HIVE-18983:
--------------------------------
Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12919862/HIVE-18983.12.patch
{color:red}ERROR:{color} -1 due to build exiting with an error
Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/21152/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/21152/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-21152/
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'
2020-03-18 05:14:40.204
+ [[ -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-21152/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'
2020-03-18 05:14:40.207
+ cd apache-github-source-source
+ git fetch origin
+ git reset --hard HEAD
HEAD is now at 26cc315 HIVE-23011: Shared work optimizer should check residual predicates when comparing joins (Jesus Camacho Rodriguez, reviewed by Vineet Garg)
+ git clean -f -d
Removing standalone-metastore/metastore-server/src/gen/
+ git checkout master
Already on 'master'
Your branch is up-to-date with 'origin/master'.
+ git reset --hard origin/master
HEAD is now at 26cc315 HIVE-23011: Shared work optimizer should check residual predicates when comparing joins (Jesus Camacho Rodriguez, reviewed by Vineet Garg)
+ git merge --ff-only origin/master
Already up-to-date.
+ date '+%Y-%m-%d %T.%3N'
2020-03-18 05:14:40.958
+ rm -rf ../yetus_PreCommit-HIVE-Build-21152
+ mkdir ../yetus_PreCommit-HIVE-Build-21152
+ git gc
+ cp -R . ../yetus_PreCommit-HIVE-Build-21152
+ mkdir /data/hiveptest/logs/PreCommit-HIVE-Build-21152/yetus
+ 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
Trying to apply the patch with -p0
error: a/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java: does not exist in index
error: a/ql/src/test/results/clientpositive/create_alter_list_bucketing_table1.q.out: does not exist in index
error: a/ql/src/test/results/clientpositive/create_like.q.out: does not exist in index
error: a/ql/src/test/results/clientpositive/create_like2.q.out: does not exist in index
error: a/ql/src/test/results/clientpositive/explain_ddl.q.out: does not exist in index
error: a/standalone-metastore/src/main/java/org/apache/hadoop/hive/common/StatsSetupConst.java: does not exist in index
Trying to apply the patch with -p1
error: patch failed: ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java:13084
Falling back to three-way merge...
Applied patch to 'ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java' with conflicts.
error: patch failed: ql/src/test/results/clientpositive/create_alter_list_bucketing_table1.q.out:309
Falling back to three-way merge...
Applied patch to 'ql/src/test/results/clientpositive/create_alter_list_bucketing_table1.q.out' with conflicts.
error: patch failed: ql/src/test/results/clientpositive/create_like.q.out:441
Falling back to three-way merge...
Applied patch to 'ql/src/test/results/clientpositive/create_like.q.out' with conflicts.
error: patch failed: ql/src/test/results/clientpositive/create_like2.q.out:41
Falling back to three-way merge...
Applied patch to 'ql/src/test/results/clientpositive/create_like2.q.out' with conflicts.
error: patch failed: ql/src/test/results/clientpositive/explain_ddl.q.out:448
Falling back to three-way merge...
Applied patch to 'ql/src/test/results/clientpositive/explain_ddl.q.out' with conflicts.
error: standalone-metastore/src/main/java/org/apache/hadoop/hive/common/StatsSetupConst.java: does not exist in index
Trying to apply the patch with -p2
error: src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java: does not exist in index
error: src/test/results/clientpositive/create_alter_list_bucketing_table1.q.out: does not exist in index
error: src/test/results/clientpositive/create_like.q.out: does not exist in index
error: src/test/results/clientpositive/create_like2.q.out: does not exist in index
error: src/test/results/clientpositive/explain_ddl.q.out: does not exist in index
error: src/main/java/org/apache/hadoop/hive/common/StatsSetupConst.java: does not exist in index
The patch does not appear to apply with p0, p1, or p2
+ result=1
+ '[' 1 -ne 0 ']'
+ rm -rf yetus_PreCommit-HIVE-Build-21152
+ exit 1
'
{noformat}
This message is automatically generated.
ATTACHMENT ID: 12919862 - PreCommit-HIVE-Build
> Add support for table properties inheritance in Create table like
> -----------------------------------------------------------------
>
> Key: HIVE-18983
> URL: https://issues.apache.org/jira/browse/HIVE-18983
> Project: Hive
> Issue Type: Improvement
> Reporter: Igor Kryvenko
> Assignee: Igor Kryvenko
> Priority: Major
> Fix For: 3.2.0
>
> Attachments: HIVE-18983.01.patch, HIVE-18983.02.patch, HIVE-18983.03.patch, HIVE-18983.04.patch, HIVE-18983.05.patch, HIVE-18983.06.patch, HIVE-18983.07.patch, HIVE-18983.08.patch, HIVE-18983.09.patch, HIVE-18983.10.patch, HIVE-18983.11.patch, HIVE-18983.12.patch
>
>
> Currently, Create table like support table properties.
> But it doesn't inherit table properties from original table.
> {code}
> create table T1(a int, b int) clustered by (a) into 2 buckets stored as orc TBLPROPERTIES ('comment'='comm');
> create table T like T1;
> show create table T;
> {code}
> *Output:*
> {code}
> CREATE TABLE `T`(
> `a` int,
> `b` int)
> CLUSTERED BY (
> a)
> INTO 2 BUCKETS
> ROW FORMAT SERDE
> 'org.apache.hadoop.hive.ql.io.orc.OrcSerde'
> STORED AS INPUTFORMAT
> 'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat'
> OUTPUTFORMAT
> 'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat'
> LOCATION
> 'maprfs:/user/hive/warehouse/t'
> TBLPROPERTIES (
> 'COLUMN_STATS_ACCURATE'='{\"BASIC_STATS\":\"true\"}',
> 'numFiles'='0',
> 'numRows'='0',
> 'rawDataSize'='0',
> 'totalSize'='0',
> 'transient_lastDdlTime'='1521230300')
> {code}
> It uses just default table properties and doesn't inherit properties from original table.
> It would be great if create table like will inherit origin table properties and will override them if they are specified in query .
--
This message was sent by Atlassian Jira
(v8.3.4#803005)