[jira] [Commented] (HIVE-20758) Constraints: Show create table does not show constraints
[ https://issues.apache.org/jira/browse/HIVE-20758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16767560#comment-16767560 ] Hive QA commented on HIVE-20758: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12958579/HIVE-20758.7.patch {color:green}SUCCESS:{color} +1 due to 2 test(s) being added or modified. {color:green}SUCCESS:{color} +1 due to 15786 tests passed Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/16059/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/16059/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-16059/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.YetusPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase {noformat} This message is automatically generated. ATTACHMENT ID: 12958579 - PreCommit-HIVE-Build > Constraints: Show create table does not show constraints > > > Key: HIVE-20758 > URL: https://issues.apache.org/jira/browse/HIVE-20758 > Project: Hive > Issue Type: Bug >Affects Versions: 4.0.0 >Reporter: Gopal V >Assignee: Barnabas Maidics >Priority: Major > Attachments: HIVE-20758.1.patch, HIVE-20758.2.patch, > HIVE-20758.3.patch, HIVE-20758.4.patch, HIVE-20758.5.patch, > HIVE-20758.6.patch, HIVE-20758.7.patch, Screen Shot 2019-01-23 at 11.52.04.png > > > Even though the desc formatted shows the constraints, the show create table > does not > {code} > | # Primary Key | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | pk_in > | NULL >| > | Column Names: | inv_date_sk > | inv_item_sk >| > || NULL > | NULL >| > | # Foreign Keys | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | inv_d > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.date_dim.d_date_sk | > Column Name:inv_date_sk| Key Sequence:1 > | > || NULL > | NULL >| > | Constraint Name: | inv_i > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.item.i_item_sk | Column > Name:inv_item_sk| Key Sequence:1 >| > || NULL > | NULL >| > | Constraint Name: | inv_w > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.warehouse.w_warehouse_sk > | Column Name:inv_warehouse_sk | Key Sequence:1 > | > || NULL > | NULL >| > {code} > But > {code} > ++ > | createtab_stmt | > ++ > | CREATE TABLE `inventory`( | > | `inv_item_sk` bigint,| > | `inv_warehouse_sk` bigint, | > |
[jira] [Commented] (HIVE-20758) Constraints: Show create table does not show constraints
[ https://issues.apache.org/jira/browse/HIVE-20758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16767514#comment-16767514 ] Hive QA commented on HIVE-20758: | (/) *{color:green}+1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || || || || || {color:brown} Prechecks {color} || | {color:green}+1{color} | {color:green} @author {color} | {color:green} 0m 0s{color} | {color:green} The patch does not contain any @author tags. {color} | || || || || {color:brown} master Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 9m 52s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 12s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 44s{color} | {color:green} master passed {color} | | {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue} 4m 25s{color} | {color:blue} ql in master has 2262 extant Findbugs warnings. {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 1m 3s{color} | {color:green} master passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 1m 32s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 12s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 1m 12s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 44s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} whitespace {color} | {color:green} 0m 0s{color} | {color:green} The patch has no whitespace issues. {color} | | {color:green}+1{color} | {color:green} findbugs {color} | {color:green} 4m 30s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 1m 3s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:green}+1{color} | {color:green} asflicense {color} | {color:green} 0m 15s{color} | {color:green} The patch does not generate ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black} 27m 3s{color} | {color:black} {color} | \\ \\ || Subsystem || Report/Notes || | Optional Tests | asflicense javac javadoc findbugs checkstyle compile | | uname | Linux hiveptest-server-upstream 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux | | Build tool | maven | | Personality | /data/hiveptest/working/yetus_PreCommit-HIVE-Build-16059/dev-support/hive-personality.sh | | git revision | master / fd2be8e | | Default Java | 1.8.0_111 | | findbugs | v3.0.0 | | modules | C: ql U: ql | | Console output | http://104.198.109.242/logs//PreCommit-HIVE-Build-16059/yetus.txt | | Powered by | Apache Yetushttp://yetus.apache.org | This message was automatically generated. > Constraints: Show create table does not show constraints > > > Key: HIVE-20758 > URL: https://issues.apache.org/jira/browse/HIVE-20758 > Project: Hive > Issue Type: Bug >Affects Versions: 4.0.0 >Reporter: Gopal V >Assignee: Barnabas Maidics >Priority: Major > Attachments: HIVE-20758.1.patch, HIVE-20758.2.patch, > HIVE-20758.3.patch, HIVE-20758.4.patch, HIVE-20758.5.patch, > HIVE-20758.6.patch, HIVE-20758.7.patch, Screen Shot 2019-01-23 at 11.52.04.png > > > Even though the desc formatted shows the constraints, the show create table > does not > {code} > | # Primary Key | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | pk_in > | NULL >| > | Column Names: | inv_date_sk > | inv_item_sk >| > || NULL > | NULL >| > | # Foreign Keys | NULL > | NULL
[jira] [Commented] (HIVE-20758) Constraints: Show create table does not show constraints
[ https://issues.apache.org/jira/browse/HIVE-20758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16767098#comment-16767098 ] Hive QA commented on HIVE-20758: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12958537/HIVE-20758.6.patch {color:green}SUCCESS:{color} +1 due to 2 test(s) being added or modified. {color:red}ERROR:{color} -1 due to 2 failed/errored test(s), 15782 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[create_with_constraints] (batchId=74) org.apache.hive.jdbc.TestJdbcWithLocalClusterSpark.org.apache.hive.jdbc.TestJdbcWithLocalClusterSpark (batchId=265) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/16051/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/16051/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-16051/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.YetusPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 2 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12958537 - PreCommit-HIVE-Build > Constraints: Show create table does not show constraints > > > Key: HIVE-20758 > URL: https://issues.apache.org/jira/browse/HIVE-20758 > Project: Hive > Issue Type: Bug >Affects Versions: 4.0.0 >Reporter: Gopal V >Assignee: Barnabas Maidics >Priority: Major > Attachments: HIVE-20758.1.patch, HIVE-20758.2.patch, > HIVE-20758.3.patch, HIVE-20758.4.patch, HIVE-20758.5.patch, > HIVE-20758.6.patch, Screen Shot 2019-01-23 at 11.52.04.png > > > Even though the desc formatted shows the constraints, the show create table > does not > {code} > | # Primary Key | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | pk_in > | NULL >| > | Column Names: | inv_date_sk > | inv_item_sk >| > || NULL > | NULL >| > | # Foreign Keys | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | inv_d > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.date_dim.d_date_sk | > Column Name:inv_date_sk| Key Sequence:1 > | > || NULL > | NULL >| > | Constraint Name: | inv_i > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.item.i_item_sk | Column > Name:inv_item_sk| Key Sequence:1 >| > || NULL > | NULL >| > | Constraint Name: | inv_w > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.warehouse.w_warehouse_sk > | Column Name:inv_warehouse_sk | Key Sequence:1 > | > || NULL > | NULL >| > {code} > But > {code} >
[jira] [Commented] (HIVE-20758) Constraints: Show create table does not show constraints
[ https://issues.apache.org/jira/browse/HIVE-20758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16767069#comment-16767069 ] Hive QA commented on HIVE-20758: | (/) *{color:green}+1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || || || || || {color:brown} Prechecks {color} || | {color:green}+1{color} | {color:green} @author {color} | {color:green} 0m 0s{color} | {color:green} The patch does not contain any @author tags. {color} | || || || || {color:brown} master Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 8m 18s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 5s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 40s{color} | {color:green} master passed {color} | | {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue} 3m 53s{color} | {color:blue} ql in master has 2262 extant Findbugs warnings. {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 58s{color} | {color:green} master passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 1m 26s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 5s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 1m 5s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 40s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} whitespace {color} | {color:green} 0m 0s{color} | {color:green} The patch has no whitespace issues. {color} | | {color:green}+1{color} | {color:green} findbugs {color} | {color:green} 4m 2s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 55s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:green}+1{color} | {color:green} asflicense {color} | {color:green} 0m 14s{color} | {color:green} The patch does not generate ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black} 23m 47s{color} | {color:black} {color} | \\ \\ || Subsystem || Report/Notes || | Optional Tests | asflicense javac javadoc findbugs checkstyle compile | | uname | Linux hiveptest-server-upstream 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux | | Build tool | maven | | Personality | /data/hiveptest/working/yetus_PreCommit-HIVE-Build-16051/dev-support/hive-personality.sh | | git revision | master / fd2be8e | | Default Java | 1.8.0_111 | | findbugs | v3.0.0 | | modules | C: ql U: ql | | Console output | http://104.198.109.242/logs//PreCommit-HIVE-Build-16051/yetus.txt | | Powered by | Apache Yetushttp://yetus.apache.org | This message was automatically generated. > Constraints: Show create table does not show constraints > > > Key: HIVE-20758 > URL: https://issues.apache.org/jira/browse/HIVE-20758 > Project: Hive > Issue Type: Bug >Affects Versions: 4.0.0 >Reporter: Gopal V >Assignee: Barnabas Maidics >Priority: Major > Attachments: HIVE-20758.1.patch, HIVE-20758.2.patch, > HIVE-20758.3.patch, HIVE-20758.4.patch, HIVE-20758.5.patch, > HIVE-20758.6.patch, Screen Shot 2019-01-23 at 11.52.04.png > > > Even though the desc formatted shows the constraints, the show create table > does not > {code} > | # Primary Key | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | pk_in > | NULL >| > | Column Names: | inv_date_sk > | inv_item_sk >| > || NULL > | NULL >| > | # Foreign Keys | NULL > | NULL >| > |
[jira] [Commented] (HIVE-20758) Constraints: Show create table does not show constraints
[ https://issues.apache.org/jira/browse/HIVE-20758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16763840#comment-16763840 ] Vineet Garg commented on HIVE-20758: Thanks for working on this [~b.maidics]. Can you add tests for DEFAULT and CHECK (especially CHECK on table level e.g. {{create table tbl1_n1(a string, b int, CONSTRAINT check1 CHECK a != '' AND b > 4}})? create_with_constraints do not have these constraints. > Constraints: Show create table does not show constraints > > > Key: HIVE-20758 > URL: https://issues.apache.org/jira/browse/HIVE-20758 > Project: Hive > Issue Type: Bug >Affects Versions: 4.0.0 >Reporter: Gopal V >Assignee: Barnabas Maidics >Priority: Major > Attachments: HIVE-20758.1.patch, HIVE-20758.2.patch, > HIVE-20758.3.patch, HIVE-20758.4.patch, HIVE-20758.5.patch, Screen Shot > 2019-01-23 at 11.52.04.png > > > Even though the desc formatted shows the constraints, the show create table > does not > {code} > | # Primary Key | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | pk_in > | NULL >| > | Column Names: | inv_date_sk > | inv_item_sk >| > || NULL > | NULL >| > | # Foreign Keys | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | inv_d > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.date_dim.d_date_sk | > Column Name:inv_date_sk| Key Sequence:1 > | > || NULL > | NULL >| > | Constraint Name: | inv_i > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.item.i_item_sk | Column > Name:inv_item_sk| Key Sequence:1 >| > || NULL > | NULL >| > | Constraint Name: | inv_w > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.warehouse.w_warehouse_sk > | Column Name:inv_warehouse_sk | Key Sequence:1 > | > || NULL > | NULL >| > {code} > But > {code} > ++ > | createtab_stmt | > ++ > | CREATE TABLE `inventory`( | > | `inv_item_sk` bigint,| > | `inv_warehouse_sk` bigint, | > | `inv_quantity_on_hand` int, | > | `inv_date_sk` bigint)| > | 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 | > | > 'hdfs:///warehouse/tablespace/managed/hive/tpcds_bin_partitioned_orc_1.db/inventory' > | > | TBLPROPERTIES (| > |
[jira] [Commented] (HIVE-20758) Constraints: Show create table does not show constraints
[ https://issues.apache.org/jira/browse/HIVE-20758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16763715#comment-16763715 ] Hive QA commented on HIVE-20758: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12958051/HIVE-20758.5.patch {color:green}SUCCESS:{color} +1 due to 2 test(s) being added or modified. {color:red}ERROR:{color} -1 due to 1 failed/errored test(s), 15784 tests executed *Failed tests:* {noformat} org.apache.hive.jdbc.TestSSL.testMetastoreWithSSL (batchId=260) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/15999/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/15999/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-15999/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.YetusPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 1 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12958051 - PreCommit-HIVE-Build > Constraints: Show create table does not show constraints > > > Key: HIVE-20758 > URL: https://issues.apache.org/jira/browse/HIVE-20758 > Project: Hive > Issue Type: Bug >Affects Versions: 4.0.0 >Reporter: Gopal V >Assignee: Barnabas Maidics >Priority: Major > Attachments: HIVE-20758.1.patch, HIVE-20758.2.patch, > HIVE-20758.3.patch, HIVE-20758.4.patch, HIVE-20758.5.patch, Screen Shot > 2019-01-23 at 11.52.04.png > > > Even though the desc formatted shows the constraints, the show create table > does not > {code} > | # Primary Key | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | pk_in > | NULL >| > | Column Names: | inv_date_sk > | inv_item_sk >| > || NULL > | NULL >| > | # Foreign Keys | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | inv_d > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.date_dim.d_date_sk | > Column Name:inv_date_sk| Key Sequence:1 > | > || NULL > | NULL >| > | Constraint Name: | inv_i > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.item.i_item_sk | Column > Name:inv_item_sk| Key Sequence:1 >| > || NULL > | NULL >| > | Constraint Name: | inv_w > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.warehouse.w_warehouse_sk > | Column Name:inv_warehouse_sk | Key Sequence:1 > | > || NULL > | NULL >| > {code} > But > {code} > ++ > | createtab_stmt | > ++ > | CREATE TABLE `inventory`(
[jira] [Commented] (HIVE-20758) Constraints: Show create table does not show constraints
[ https://issues.apache.org/jira/browse/HIVE-20758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16763675#comment-16763675 ] Hive QA commented on HIVE-20758: | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || || || || || {color:brown} Prechecks {color} || | {color:green}+1{color} | {color:green} @author {color} | {color:green} 0m 0s{color} | {color:green} The patch does not contain any @author tags. {color} | || || || || {color:brown} master Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 8m 36s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 8s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 40s{color} | {color:green} master passed {color} | | {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue} 4m 3s{color} | {color:blue} ql in master has 2298 extant Findbugs warnings. {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 1m 1s{color} | {color:green} master passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 1m 30s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 7s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 1m 7s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 41s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} whitespace {color} | {color:green} 0m 0s{color} | {color:green} The patch has no whitespace issues. {color} | | {color:green}+1{color} | {color:green} findbugs {color} | {color:green} 4m 21s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 1m 3s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:red}-1{color} | {color:red} asflicense {color} | {color:red} 0m 15s{color} | {color:red} The patch generated 1 ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black} 24m 56s{color} | {color:black} {color} | \\ \\ || Subsystem || Report/Notes || | Optional Tests | asflicense javac javadoc findbugs checkstyle compile | | uname | Linux hiveptest-server-upstream 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux | | Build tool | maven | | Personality | /data/hiveptest/working/yetus_PreCommit-HIVE-Build-15999/dev-support/hive-personality.sh | | git revision | master / 0223cbf | | Default Java | 1.8.0_111 | | findbugs | v3.0.0 | | asflicense | http://104.198.109.242/logs//PreCommit-HIVE-Build-15999/yetus/patch-asflicense-problems.txt | | modules | C: ql U: ql | | Console output | http://104.198.109.242/logs//PreCommit-HIVE-Build-15999/yetus.txt | | Powered by | Apache Yetushttp://yetus.apache.org | This message was automatically generated. > Constraints: Show create table does not show constraints > > > Key: HIVE-20758 > URL: https://issues.apache.org/jira/browse/HIVE-20758 > Project: Hive > Issue Type: Bug >Affects Versions: 4.0.0 >Reporter: Gopal V >Assignee: Barnabas Maidics >Priority: Major > Attachments: HIVE-20758.1.patch, HIVE-20758.2.patch, > HIVE-20758.3.patch, HIVE-20758.4.patch, HIVE-20758.5.patch, Screen Shot > 2019-01-23 at 11.52.04.png > > > Even though the desc formatted shows the constraints, the show create table > does not > {code} > | # Primary Key | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | pk_in > | NULL >| > | Column Names: | inv_date_sk > | inv_item_sk >| > || NULL > | NULL >| > | # Foreign Keys | NULL >
[jira] [Commented] (HIVE-20758) Constraints: Show create table does not show constraints
[ https://issues.apache.org/jira/browse/HIVE-20758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16763118#comment-16763118 ] Jesus Camacho Rodriguez commented on HIVE-20758: +1 (pending tests) > Constraints: Show create table does not show constraints > > > Key: HIVE-20758 > URL: https://issues.apache.org/jira/browse/HIVE-20758 > Project: Hive > Issue Type: Bug >Affects Versions: 4.0.0 >Reporter: Gopal V >Assignee: Barnabas Maidics >Priority: Major > Attachments: HIVE-20758.1.patch, HIVE-20758.2.patch, > HIVE-20758.3.patch, HIVE-20758.4.patch, Screen Shot 2019-01-23 at 11.52.04.png > > > Even though the desc formatted shows the constraints, the show create table > does not > {code} > | # Primary Key | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | pk_in > | NULL >| > | Column Names: | inv_date_sk > | inv_item_sk >| > || NULL > | NULL >| > | # Foreign Keys | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | inv_d > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.date_dim.d_date_sk | > Column Name:inv_date_sk| Key Sequence:1 > | > || NULL > | NULL >| > | Constraint Name: | inv_i > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.item.i_item_sk | Column > Name:inv_item_sk| Key Sequence:1 >| > || NULL > | NULL >| > | Constraint Name: | inv_w > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.warehouse.w_warehouse_sk > | Column Name:inv_warehouse_sk | Key Sequence:1 > | > || NULL > | NULL >| > {code} > But > {code} > ++ > | createtab_stmt | > ++ > | CREATE TABLE `inventory`( | > | `inv_item_sk` bigint,| > | `inv_warehouse_sk` bigint, | > | `inv_quantity_on_hand` int, | > | `inv_date_sk` bigint)| > | 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 | > | > 'hdfs:///warehouse/tablespace/managed/hive/tpcds_bin_partitioned_orc_1.db/inventory' > | > | TBLPROPERTIES (| > | 'bucketing_version'='2', | > | 'transactional'='true', | > | 'transactional_properties'='default',| > | 'transient_lastDdlTime'='1539710410')| >
[jira] [Commented] (HIVE-20758) Constraints: Show create table does not show constraints
[ https://issues.apache.org/jira/browse/HIVE-20758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16762955#comment-16762955 ] Hive QA commented on HIVE-20758: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12957914/HIVE-20758.4.patch {color:green}SUCCESS:{color} +1 due to 2 test(s) being added or modified. {color:red}ERROR:{color} -1 due to 2 failed/errored test(s), 15777 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.metastore.TestPartitionManagement.testPartitionDiscoveryTransactionalTable (batchId=220) org.apache.hive.hcatalog.mapreduce.TestHCatMutableNonPartitioned.testHCatNonPartitionedTable[7] (batchId=214) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/15990/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/15990/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-15990/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.YetusPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 2 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12957914 - PreCommit-HIVE-Build > Constraints: Show create table does not show constraints > > > Key: HIVE-20758 > URL: https://issues.apache.org/jira/browse/HIVE-20758 > Project: Hive > Issue Type: Bug >Affects Versions: 4.0.0 >Reporter: Gopal V >Assignee: Barnabas Maidics >Priority: Major > Attachments: HIVE-20758.1.patch, HIVE-20758.2.patch, > HIVE-20758.3.patch, HIVE-20758.4.patch, Screen Shot 2019-01-23 at 11.52.04.png > > > Even though the desc formatted shows the constraints, the show create table > does not > {code} > | # Primary Key | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | pk_in > | NULL >| > | Column Names: | inv_date_sk > | inv_item_sk >| > || NULL > | NULL >| > | # Foreign Keys | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | inv_d > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.date_dim.d_date_sk | > Column Name:inv_date_sk| Key Sequence:1 > | > || NULL > | NULL >| > | Constraint Name: | inv_i > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.item.i_item_sk | Column > Name:inv_item_sk| Key Sequence:1 >| > || NULL > | NULL >| > | Constraint Name: | inv_w > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.warehouse.w_warehouse_sk > | Column Name:inv_warehouse_sk | Key Sequence:1 > | > || NULL > | NULL >| > {code} > But > {code} > ++ > |
[jira] [Commented] (HIVE-20758) Constraints: Show create table does not show constraints
[ https://issues.apache.org/jira/browse/HIVE-20758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16762909#comment-16762909 ] Hive QA commented on HIVE-20758: | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || || || || || {color:brown} Prechecks {color} || | {color:green}+1{color} | {color:green} @author {color} | {color:green} 0m 0s{color} | {color:green} The patch does not contain any @author tags. {color} | || || || || {color:brown} master Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 8m 15s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 2s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 39s{color} | {color:green} master passed {color} | | {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue} 3m 56s{color} | {color:blue} ql in master has 2298 extant Findbugs warnings. {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 56s{color} | {color:green} master passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 1m 29s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 6s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 1m 6s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 41s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} whitespace {color} | {color:green} 0m 0s{color} | {color:green} The patch has no whitespace issues. {color} | | {color:green}+1{color} | {color:green} findbugs {color} | {color:green} 4m 12s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 1m 0s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:red}-1{color} | {color:red} asflicense {color} | {color:red} 0m 14s{color} | {color:red} The patch generated 1 ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black} 24m 3s{color} | {color:black} {color} | \\ \\ || Subsystem || Report/Notes || | Optional Tests | asflicense javac javadoc findbugs checkstyle compile | | uname | Linux hiveptest-server-upstream 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux | | Build tool | maven | | Personality | /data/hiveptest/working/yetus_PreCommit-HIVE-Build-15990/dev-support/hive-personality.sh | | git revision | master / 980a45c | | Default Java | 1.8.0_111 | | findbugs | v3.0.0 | | asflicense | http://104.198.109.242/logs//PreCommit-HIVE-Build-15990/yetus/patch-asflicense-problems.txt | | modules | C: ql U: ql | | Console output | http://104.198.109.242/logs//PreCommit-HIVE-Build-15990/yetus.txt | | Powered by | Apache Yetushttp://yetus.apache.org | This message was automatically generated. > Constraints: Show create table does not show constraints > > > Key: HIVE-20758 > URL: https://issues.apache.org/jira/browse/HIVE-20758 > Project: Hive > Issue Type: Bug >Affects Versions: 4.0.0 >Reporter: Gopal V >Assignee: Barnabas Maidics >Priority: Major > Attachments: HIVE-20758.1.patch, HIVE-20758.2.patch, > HIVE-20758.3.patch, HIVE-20758.4.patch, Screen Shot 2019-01-23 at 11.52.04.png > > > Even though the desc formatted shows the constraints, the show create table > does not > {code} > | # Primary Key | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | pk_in > | NULL >| > | Column Names: | inv_date_sk > | inv_item_sk >| > || NULL > | NULL >| > | # Foreign Keys | NULL > | NULL
[jira] [Commented] (HIVE-20758) Constraints: Show create table does not show constraints
[ https://issues.apache.org/jira/browse/HIVE-20758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16762780#comment-16762780 ] Barnabas Maidics commented on HIVE-20758: - Thanks [~klcopp] ! I added the show create table commands to this create_with_constraints.q file, which is already testing with describe formatted/extended. > Constraints: Show create table does not show constraints > > > Key: HIVE-20758 > URL: https://issues.apache.org/jira/browse/HIVE-20758 > Project: Hive > Issue Type: Bug >Affects Versions: 4.0.0 >Reporter: Gopal V >Assignee: Barnabas Maidics >Priority: Major > Attachments: HIVE-20758.1.patch, HIVE-20758.2.patch, > HIVE-20758.3.patch, HIVE-20758.4.patch, Screen Shot 2019-01-23 at 11.52.04.png > > > Even though the desc formatted shows the constraints, the show create table > does not > {code} > | # Primary Key | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | pk_in > | NULL >| > | Column Names: | inv_date_sk > | inv_item_sk >| > || NULL > | NULL >| > | # Foreign Keys | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | inv_d > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.date_dim.d_date_sk | > Column Name:inv_date_sk| Key Sequence:1 > | > || NULL > | NULL >| > | Constraint Name: | inv_i > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.item.i_item_sk | Column > Name:inv_item_sk| Key Sequence:1 >| > || NULL > | NULL >| > | Constraint Name: | inv_w > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.warehouse.w_warehouse_sk > | Column Name:inv_warehouse_sk | Key Sequence:1 > | > || NULL > | NULL >| > {code} > But > {code} > ++ > | createtab_stmt | > ++ > | CREATE TABLE `inventory`( | > | `inv_item_sk` bigint,| > | `inv_warehouse_sk` bigint, | > | `inv_quantity_on_hand` int, | > | `inv_date_sk` bigint)| > | 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 | > | > 'hdfs:///warehouse/tablespace/managed/hive/tpcds_bin_partitioned_orc_1.db/inventory' > | > | TBLPROPERTIES (| > | 'bucketing_version'='2', | > | 'transactional'='true', | > |
[jira] [Commented] (HIVE-20758) Constraints: Show create table does not show constraints
[ https://issues.apache.org/jira/browse/HIVE-20758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16762164#comment-16762164 ] Karen Coppage commented on HIVE-20758: -- create_with_constraints.q probably has everything you need:) > Constraints: Show create table does not show constraints > > > Key: HIVE-20758 > URL: https://issues.apache.org/jira/browse/HIVE-20758 > Project: Hive > Issue Type: Bug >Affects Versions: 4.0.0 >Reporter: Gopal V >Assignee: Barnabas Maidics >Priority: Major > Attachments: HIVE-20758.1.patch, HIVE-20758.2.patch, > HIVE-20758.3.patch, Screen Shot 2019-01-23 at 11.52.04.png > > > Even though the desc formatted shows the constraints, the show create table > does not > {code} > | # Primary Key | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | pk_in > | NULL >| > | Column Names: | inv_date_sk > | inv_item_sk >| > || NULL > | NULL >| > | # Foreign Keys | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | inv_d > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.date_dim.d_date_sk | > Column Name:inv_date_sk| Key Sequence:1 > | > || NULL > | NULL >| > | Constraint Name: | inv_i > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.item.i_item_sk | Column > Name:inv_item_sk| Key Sequence:1 >| > || NULL > | NULL >| > | Constraint Name: | inv_w > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.warehouse.w_warehouse_sk > | Column Name:inv_warehouse_sk | Key Sequence:1 > | > || NULL > | NULL >| > {code} > But > {code} > ++ > | createtab_stmt | > ++ > | CREATE TABLE `inventory`( | > | `inv_item_sk` bigint,| > | `inv_warehouse_sk` bigint, | > | `inv_quantity_on_hand` int, | > | `inv_date_sk` bigint)| > | 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 | > | > 'hdfs:///warehouse/tablespace/managed/hive/tpcds_bin_partitioned_orc_1.db/inventory' > | > | TBLPROPERTIES (| > | 'bucketing_version'='2', | > | 'transactional'='true', | > | 'transactional_properties'='default',| > | 'transient_lastDdlTime'='1539710410')| >
[jira] [Commented] (HIVE-20758) Constraints: Show create table does not show constraints
[ https://issues.apache.org/jira/browse/HIVE-20758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16761931#comment-16761931 ] Jesus Camacho Rodriguez commented on HIVE-20758: [~b.maidics], patch LGTM. Could you add a test for the new feature (probably a q file)? Thanks > Constraints: Show create table does not show constraints > > > Key: HIVE-20758 > URL: https://issues.apache.org/jira/browse/HIVE-20758 > Project: Hive > Issue Type: Bug >Affects Versions: 4.0.0 >Reporter: Gopal V >Assignee: Barnabas Maidics >Priority: Major > Attachments: HIVE-20758.1.patch, HIVE-20758.2.patch, > HIVE-20758.3.patch, Screen Shot 2019-01-23 at 11.52.04.png > > > Even though the desc formatted shows the constraints, the show create table > does not > {code} > | # Primary Key | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | pk_in > | NULL >| > | Column Names: | inv_date_sk > | inv_item_sk >| > || NULL > | NULL >| > | # Foreign Keys | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | inv_d > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.date_dim.d_date_sk | > Column Name:inv_date_sk| Key Sequence:1 > | > || NULL > | NULL >| > | Constraint Name: | inv_i > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.item.i_item_sk | Column > Name:inv_item_sk| Key Sequence:1 >| > || NULL > | NULL >| > | Constraint Name: | inv_w > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.warehouse.w_warehouse_sk > | Column Name:inv_warehouse_sk | Key Sequence:1 > | > || NULL > | NULL >| > {code} > But > {code} > ++ > | createtab_stmt | > ++ > | CREATE TABLE `inventory`( | > | `inv_item_sk` bigint,| > | `inv_warehouse_sk` bigint, | > | `inv_quantity_on_hand` int, | > | `inv_date_sk` bigint)| > | 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 | > | > 'hdfs:///warehouse/tablespace/managed/hive/tpcds_bin_partitioned_orc_1.db/inventory' > | > | TBLPROPERTIES (| > | 'bucketing_version'='2', | > | 'transactional'='true', | > | 'transactional_properties'='default',| > |
[jira] [Commented] (HIVE-20758) Constraints: Show create table does not show constraints
[ https://issues.apache.org/jira/browse/HIVE-20758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16761850#comment-16761850 ] Hive QA commented on HIVE-20758: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12957745/HIVE-20758.3.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:green}SUCCESS:{color} +1 due to 15771 tests passed Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/15965/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/15965/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-15965/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.YetusPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase {noformat} This message is automatically generated. ATTACHMENT ID: 12957745 - PreCommit-HIVE-Build > Constraints: Show create table does not show constraints > > > Key: HIVE-20758 > URL: https://issues.apache.org/jira/browse/HIVE-20758 > Project: Hive > Issue Type: Bug >Affects Versions: 4.0.0 >Reporter: Gopal V >Assignee: Barnabas Maidics >Priority: Major > Attachments: HIVE-20758.1.patch, HIVE-20758.2.patch, > HIVE-20758.3.patch, Screen Shot 2019-01-23 at 11.52.04.png > > > Even though the desc formatted shows the constraints, the show create table > does not > {code} > | # Primary Key | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | pk_in > | NULL >| > | Column Names: | inv_date_sk > | inv_item_sk >| > || NULL > | NULL >| > | # Foreign Keys | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | inv_d > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.date_dim.d_date_sk | > Column Name:inv_date_sk| Key Sequence:1 > | > || NULL > | NULL >| > | Constraint Name: | inv_i > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.item.i_item_sk | Column > Name:inv_item_sk| Key Sequence:1 >| > || NULL > | NULL >| > | Constraint Name: | inv_w > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.warehouse.w_warehouse_sk > | Column Name:inv_warehouse_sk | Key Sequence:1 > | > || NULL > | NULL >| > {code} > But > {code} > ++ > | createtab_stmt | > ++ > | CREATE TABLE `inventory`( | > | `inv_item_sk` bigint,| > | `inv_warehouse_sk` bigint, | > | `inv_quantity_on_hand` int, | > | `inv_date_sk` bigint)
[jira] [Commented] (HIVE-20758) Constraints: Show create table does not show constraints
[ https://issues.apache.org/jira/browse/HIVE-20758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16761785#comment-16761785 ] Hive QA commented on HIVE-20758: | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || || || || || {color:brown} Prechecks {color} || | {color:green}+1{color} | {color:green} @author {color} | {color:green} 0m 0s{color} | {color:green} The patch does not contain any @author tags. {color} | || || || || {color:brown} master Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 7m 40s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 1s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 39s{color} | {color:green} master passed {color} | | {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue} 3m 45s{color} | {color:blue} ql in master has 2303 extant Findbugs warnings. {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 54s{color} | {color:green} master passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 1m 18s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 0m 59s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 0m 59s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 38s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} whitespace {color} | {color:green} 0m 0s{color} | {color:green} The patch has no whitespace issues. {color} | | {color:green}+1{color} | {color:green} findbugs {color} | {color:green} 3m 52s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 54s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:red}-1{color} | {color:red} asflicense {color} | {color:red} 0m 12s{color} | {color:red} The patch generated 1 ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black} 22m 18s{color} | {color:black} {color} | \\ \\ || Subsystem || Report/Notes || | Optional Tests | asflicense javac javadoc findbugs checkstyle compile | | uname | Linux hiveptest-server-upstream 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux | | Build tool | maven | | Personality | /data/hiveptest/working/yetus_PreCommit-HIVE-Build-15965/dev-support/hive-personality.sh | | git revision | master / 269dc5d | | Default Java | 1.8.0_111 | | findbugs | v3.0.0 | | asflicense | http://104.198.109.242/logs//PreCommit-HIVE-Build-15965/yetus/patch-asflicense-problems.txt | | modules | C: ql U: ql | | Console output | http://104.198.109.242/logs//PreCommit-HIVE-Build-15965/yetus.txt | | Powered by | Apache Yetushttp://yetus.apache.org | This message was automatically generated. > Constraints: Show create table does not show constraints > > > Key: HIVE-20758 > URL: https://issues.apache.org/jira/browse/HIVE-20758 > Project: Hive > Issue Type: Bug >Affects Versions: 4.0.0 >Reporter: Gopal V >Assignee: Barnabas Maidics >Priority: Major > Attachments: HIVE-20758.1.patch, HIVE-20758.2.patch, > HIVE-20758.3.patch, Screen Shot 2019-01-23 at 11.52.04.png > > > Even though the desc formatted shows the constraints, the show create table > does not > {code} > | # Primary Key | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | pk_in > | NULL >| > | Column Names: | inv_date_sk > | inv_item_sk >| > || NULL > | NULL >| > | # Foreign Keys | NULL > | NULL
[jira] [Commented] (HIVE-20758) Constraints: Show create table does not show constraints
[ https://issues.apache.org/jira/browse/HIVE-20758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16761135#comment-16761135 ] Hive QA commented on HIVE-20758: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12957657/HIVE-20758.2.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:red}ERROR:{color} -1 due to 3 failed/errored test(s), 15729 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[mapjoin_memcheck] (batchId=45) org.apache.hadoop.hive.ql.security.TestMetastoreAuthorizationProvider.testSimplePrivileges (batchId=254) org.apache.hive.hcatalog.mapreduce.TestHCatMutableNonPartitioned.testHCatNonPartitionedTable[1] (batchId=214) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/15949/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/15949/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-15949/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.YetusPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 3 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12957657 - PreCommit-HIVE-Build > Constraints: Show create table does not show constraints > > > Key: HIVE-20758 > URL: https://issues.apache.org/jira/browse/HIVE-20758 > Project: Hive > Issue Type: Bug >Affects Versions: 4.0.0 >Reporter: Gopal V >Assignee: Barnabas Maidics >Priority: Major > Attachments: HIVE-20758.1.patch, HIVE-20758.2.patch, Screen Shot > 2019-01-23 at 11.52.04.png > > > Even though the desc formatted shows the constraints, the show create table > does not > {code} > | # Primary Key | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | pk_in > | NULL >| > | Column Names: | inv_date_sk > | inv_item_sk >| > || NULL > | NULL >| > | # Foreign Keys | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | inv_d > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.date_dim.d_date_sk | > Column Name:inv_date_sk| Key Sequence:1 > | > || NULL > | NULL >| > | Constraint Name: | inv_i > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.item.i_item_sk | Column > Name:inv_item_sk| Key Sequence:1 >| > || NULL > | NULL >| > | Constraint Name: | inv_w > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.warehouse.w_warehouse_sk > | Column Name:inv_warehouse_sk | Key Sequence:1 > | > || NULL > | NULL >| > {code} > But > {code} >
[jira] [Commented] (HIVE-20758) Constraints: Show create table does not show constraints
[ https://issues.apache.org/jira/browse/HIVE-20758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16761109#comment-16761109 ] Hive QA commented on HIVE-20758: | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || || || || || {color:brown} Prechecks {color} || | {color:green}+1{color} | {color:green} @author {color} | {color:green} 0m 0s{color} | {color:green} The patch does not contain any @author tags. {color} | || || || || {color:brown} master Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 9m 23s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 31s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 59s{color} | {color:green} master passed {color} | | {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue} 5m 7s{color} | {color:blue} ql in master has 2307 extant Findbugs warnings. {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 1m 29s{color} | {color:green} master passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 2m 2s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 27s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 1m 27s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 44s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} whitespace {color} | {color:green} 0m 0s{color} | {color:green} The patch has no whitespace issues. {color} | | {color:green}+1{color} | {color:green} findbugs {color} | {color:green} 4m 9s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 54s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:red}-1{color} | {color:red} asflicense {color} | {color:red} 0m 13s{color} | {color:red} The patch generated 1 ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black} 28m 44s{color} | {color:black} {color} | \\ \\ || Subsystem || Report/Notes || | Optional Tests | asflicense javac javadoc findbugs checkstyle compile | | uname | Linux hiveptest-server-upstream 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux | | Build tool | maven | | Personality | /data/hiveptest/working/yetus_PreCommit-HIVE-Build-15949/dev-support/hive-personality.sh | | git revision | master / 313e49f | | Default Java | 1.8.0_111 | | findbugs | v3.0.0 | | asflicense | http://104.198.109.242/logs//PreCommit-HIVE-Build-15949/yetus/patch-asflicense-problems.txt | | modules | C: ql U: ql | | Console output | http://104.198.109.242/logs//PreCommit-HIVE-Build-15949/yetus.txt | | Powered by | Apache Yetushttp://yetus.apache.org | This message was automatically generated. > Constraints: Show create table does not show constraints > > > Key: HIVE-20758 > URL: https://issues.apache.org/jira/browse/HIVE-20758 > Project: Hive > Issue Type: Bug >Affects Versions: 4.0.0 >Reporter: Gopal V >Assignee: Barnabas Maidics >Priority: Major > Attachments: HIVE-20758.1.patch, HIVE-20758.2.patch, Screen Shot > 2019-01-23 at 11.52.04.png > > > Even though the desc formatted shows the constraints, the show create table > does not > {code} > | # Primary Key | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | pk_in > | NULL >| > | Column Names: | inv_date_sk > | inv_item_sk >| > || NULL > | NULL >| > | # Foreign Keys | NULL > | NULL >
[jira] [Commented] (HIVE-20758) Constraints: Show create table does not show constraints
[ https://issues.apache.org/jira/browse/HIVE-20758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16750184#comment-16750184 ] Jesus Camacho Rodriguez commented on HIVE-20758: Thanks [~b.maidics], this is nice. Note that information about enable/validate/rely is stored in the metastore too so you could complete the statement with those keywords. https://github.com/apache/hive/search?l=SQL=3=%22ENABLE_VALIDATE_RELY%22 https://github.com/apache/hive/blob/d1460174d5322bcfb642b489dd250c59770f0551/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java#L1956 > Constraints: Show create table does not show constraints > > > Key: HIVE-20758 > URL: https://issues.apache.org/jira/browse/HIVE-20758 > Project: Hive > Issue Type: Bug >Affects Versions: 4.0.0 >Reporter: Gopal V >Assignee: Barnabas Maidics >Priority: Major > Attachments: HIVE-20758.1.patch, Screen Shot 2019-01-23 at > 11.52.04.png > > > Even though the desc formatted shows the constraints, the show create table > does not > {code} > | # Primary Key | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | pk_in > | NULL >| > | Column Names: | inv_date_sk > | inv_item_sk >| > || NULL > | NULL >| > | # Foreign Keys | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | inv_d > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.date_dim.d_date_sk | > Column Name:inv_date_sk| Key Sequence:1 > | > || NULL > | NULL >| > | Constraint Name: | inv_i > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.item.i_item_sk | Column > Name:inv_item_sk| Key Sequence:1 >| > || NULL > | NULL >| > | Constraint Name: | inv_w > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.warehouse.w_warehouse_sk > | Column Name:inv_warehouse_sk | Key Sequence:1 > | > || NULL > | NULL >| > {code} > But > {code} > ++ > | createtab_stmt | > ++ > | CREATE TABLE `inventory`( | > | `inv_item_sk` bigint,| > | `inv_warehouse_sk` bigint, | > | `inv_quantity_on_hand` int, | > | `inv_date_sk` bigint)| > | 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 | > | >
[jira] [Commented] (HIVE-20758) Constraints: Show create table does not show constraints
[ https://issues.apache.org/jira/browse/HIVE-20758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16750076#comment-16750076 ] Hive QA commented on HIVE-20758: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12955959/HIVE-20758.1.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:red}ERROR:{color} -1 due to 13 failed/errored test(s), 15707 tests executed *Failed tests:* {noformat} TestReplicationScenariosIncrementalLoadAcidTables - did not produce a TEST-*.xml file (likely timed out) (batchId=251) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[cbo_rp_limit] (batchId=173) org.apache.hadoop.hive.cli.TestMiniSparkOnYarnCliDriver.testCliDriver[schemeAuthority] (batchId=191) org.apache.hive.jdbc.TestJdbcGenericUDTFGetSplits.testGenericUDTFOrderBySplitCount1 (batchId=261) org.apache.hive.minikdc.TestJdbcWithDBTokenStoreNoDoAs.testCancelRenewTokenFlow (batchId=276) org.apache.hive.minikdc.TestJdbcWithDBTokenStoreNoDoAs.testConnection (batchId=276) org.apache.hive.minikdc.TestJdbcWithDBTokenStoreNoDoAs.testIsValid (batchId=276) org.apache.hive.minikdc.TestJdbcWithDBTokenStoreNoDoAs.testIsValidNeg (batchId=276) org.apache.hive.minikdc.TestJdbcWithDBTokenStoreNoDoAs.testNegativeProxyAuth (batchId=276) org.apache.hive.minikdc.TestJdbcWithDBTokenStoreNoDoAs.testNegativeTokenAuth (batchId=276) org.apache.hive.minikdc.TestJdbcWithDBTokenStoreNoDoAs.testProxyAuth (batchId=276) org.apache.hive.minikdc.TestJdbcWithDBTokenStoreNoDoAs.testRenewDelegationToken (batchId=276) org.apache.hive.minikdc.TestJdbcWithDBTokenStoreNoDoAs.testTokenAuth (batchId=276) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/15758/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/15758/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-15758/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.YetusPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 13 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12955959 - PreCommit-HIVE-Build > Constraints: Show create table does not show constraints > > > Key: HIVE-20758 > URL: https://issues.apache.org/jira/browse/HIVE-20758 > Project: Hive > Issue Type: Bug >Affects Versions: 4.0.0 >Reporter: Gopal V >Assignee: Barnabas Maidics >Priority: Major > Attachments: HIVE-20758.1.patch, Screen Shot 2019-01-23 at > 11.52.04.png > > > Even though the desc formatted shows the constraints, the show create table > does not > {code} > | # Primary Key | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | pk_in > | NULL >| > | Column Names: | inv_date_sk > | inv_item_sk >| > || NULL > | NULL >| > | # Foreign Keys | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | inv_d > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.date_dim.d_date_sk | > Column Name:inv_date_sk| Key Sequence:1 > | > || NULL > | NULL >| > | Constraint Name: | inv_i > | NULL >| > | Parent Column
[jira] [Commented] (HIVE-20758) Constraints: Show create table does not show constraints
[ https://issues.apache.org/jira/browse/HIVE-20758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16750019#comment-16750019 ] Hive QA commented on HIVE-20758: | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || || || || || {color:brown} Prechecks {color} || | {color:green}+1{color} | {color:green} @author {color} | {color:green} 0m 1s{color} | {color:green} The patch does not contain any @author tags. {color} | || || || || {color:brown} master Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 7m 33s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 0m 59s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 34s{color} | {color:green} master passed {color} | | {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue} 3m 40s{color} | {color:blue} ql in master has 2305 extant Findbugs warnings. {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 52s{color} | {color:green} master passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 1m 19s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 0m 58s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 0m 58s{color} | {color:green} the patch passed {color} | | {color:red}-1{color} | {color:red} checkstyle {color} | {color:red} 0m 37s{color} | {color:red} ql: The patch generated 3 new + 147 unchanged - 0 fixed = 150 total (was 147) {color} | | {color:green}+1{color} | {color:green} whitespace {color} | {color:green} 0m 0s{color} | {color:green} The patch has no whitespace issues. {color} | | {color:green}+1{color} | {color:green} findbugs {color} | {color:green} 3m 44s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 52s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:green}+1{color} | {color:green} asflicense {color} | {color:green} 0m 12s{color} | {color:green} The patch does not generate ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black} 21m 48s{color} | {color:black} {color} | \\ \\ || Subsystem || Report/Notes || | Optional Tests | asflicense javac javadoc findbugs checkstyle compile | | uname | Linux hiveptest-server-upstream 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux | | Build tool | maven | | Personality | /data/hiveptest/working/yetus_PreCommit-HIVE-Build-15758/dev-support/hive-personality.sh | | git revision | master / 2ffca04 | | Default Java | 1.8.0_111 | | findbugs | v3.0.0 | | checkstyle | http://104.198.109.242/logs//PreCommit-HIVE-Build-15758/yetus/diff-checkstyle-ql.txt | | modules | C: ql U: ql | | Console output | http://104.198.109.242/logs//PreCommit-HIVE-Build-15758/yetus.txt | | Powered by | Apache Yetushttp://yetus.apache.org | This message was automatically generated. > Constraints: Show create table does not show constraints > > > Key: HIVE-20758 > URL: https://issues.apache.org/jira/browse/HIVE-20758 > Project: Hive > Issue Type: Bug >Affects Versions: 4.0.0 >Reporter: Gopal V >Assignee: Barnabas Maidics >Priority: Major > Attachments: HIVE-20758.1.patch, Screen Shot 2019-01-23 at > 11.52.04.png > > > Even though the desc formatted shows the constraints, the show create table > does not > {code} > | # Primary Key | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | pk_in > | NULL >| > | Column Names: | inv_date_sk > | inv_item_sk >| > || NULL > | NULL >| > | # Foreign Keys | NULL > | NULL
[jira] [Commented] (HIVE-20758) Constraints: Show create table does not show constraints
[ https://issues.apache.org/jira/browse/HIVE-20758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16749887#comment-16749887 ] Hive QA commented on HIVE-20758: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12955945/Screen%20Shot%202019-01-23%20at%2011.52.04.png {color:red}ERROR:{color} -1 due to build exiting with an error Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/15754/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/15754/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-15754/ 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' 2019-01-23 12:15:37.812 + [[ -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-15754/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' 2019-01-23 12:15:37.814 + cd apache-github-source-source + git fetch origin + git reset --hard HEAD HEAD is now at 2ffca04 HIVE-21078: Replicate column and table level statistics for unpartitioned Hive tables (Ashutosh Bapat, reviewed by Sankar Hariappan) + git clean -f -d + git checkout master Already on 'master' Your branch is up-to-date with 'origin/master'. + git reset --hard origin/master HEAD is now at 2ffca04 HIVE-21078: Replicate column and table level statistics for unpartitioned Hive tables (Ashutosh Bapat, reviewed by Sankar Hariappan) + git merge --ff-only origin/master Already up-to-date. + date '+%Y-%m-%d %T.%3N' 2019-01-23 12:15:38.374 + rm -rf ../yetus_PreCommit-HIVE-Build-15754 + mkdir ../yetus_PreCommit-HIVE-Build-15754 + git gc + cp -R . ../yetus_PreCommit-HIVE-Build-15754 + mkdir /data/hiveptest/logs/PreCommit-HIVE-Build-15754/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 fatal: unrecognized input fatal: unrecognized input fatal: unrecognized input The patch does not appear to apply with p0, p1, or p2 + result=1 + '[' 1 -ne 0 ']' + rm -rf yetus_PreCommit-HIVE-Build-15754 + exit 1 ' {noformat} This message is automatically generated. ATTACHMENT ID: 12955945 - PreCommit-HIVE-Build > Constraints: Show create table does not show constraints > > > Key: HIVE-20758 > URL: https://issues.apache.org/jira/browse/HIVE-20758 > Project: Hive > Issue Type: Bug >Affects Versions: 4.0.0 >Reporter: Gopal V >Assignee: Barnabas Maidics >Priority: Major > Attachments: HIVE-20758.1.patch, Screen Shot 2019-01-23 at > 11.52.04.png > > > Even though the desc formatted shows the constraints, the show create table > does not > {code} > | # Primary Key | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | pk_in > | NULL >| > | Column Names: | inv_date_sk > | inv_item_sk >| > || NULL > | NULL >| > | # Foreign Keys | NULL > | NULL
[jira] [Commented] (HIVE-20758) Constraints: Show create table does not show constraints
[ https://issues.apache.org/jira/browse/HIVE-20758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16749888#comment-16749888 ] Hive QA commented on HIVE-20758: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12955945/Screen%20Shot%202019-01-23%20at%2011.52.04.png {color:red}ERROR:{color} -1 due to build exiting with an error Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/15755/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/15755/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-15755/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Tests exited with: Exception: Patch URL https://issues.apache.org/jira/secure/attachment/12955945/Screen%20Shot%202019-01-23%20at%2011.52.04.png was found in seen patch url's cache and a test was probably run already on it. Aborting... {noformat} This message is automatically generated. ATTACHMENT ID: 12955945 - PreCommit-HIVE-Build > Constraints: Show create table does not show constraints > > > Key: HIVE-20758 > URL: https://issues.apache.org/jira/browse/HIVE-20758 > Project: Hive > Issue Type: Bug >Affects Versions: 4.0.0 >Reporter: Gopal V >Assignee: Barnabas Maidics >Priority: Major > Attachments: HIVE-20758.1.patch, Screen Shot 2019-01-23 at > 11.52.04.png > > > Even though the desc formatted shows the constraints, the show create table > does not > {code} > | # Primary Key | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | pk_in > | NULL >| > | Column Names: | inv_date_sk > | inv_item_sk >| > || NULL > | NULL >| > | # Foreign Keys | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | inv_d > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.date_dim.d_date_sk | > Column Name:inv_date_sk| Key Sequence:1 > | > || NULL > | NULL >| > | Constraint Name: | inv_i > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.item.i_item_sk | Column > Name:inv_item_sk| Key Sequence:1 >| > || NULL > | NULL >| > | Constraint Name: | inv_w > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.warehouse.w_warehouse_sk > | Column Name:inv_warehouse_sk | Key Sequence:1 > | > || NULL > | NULL >| > {code} > But > {code} > ++ > | createtab_stmt | > ++ > | CREATE TABLE `inventory`( | > | `inv_item_sk` bigint,| > | `inv_warehouse_sk` bigint, | > | `inv_quantity_on_hand` int, | > | `inv_date_sk` bigint)| > | ROW FORMAT SERDE
[jira] [Commented] (HIVE-20758) Constraints: Show create table does not show constraints
[ https://issues.apache.org/jira/browse/HIVE-20758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16749824#comment-16749824 ] Barnabas Maidics commented on HIVE-20758: - Hi [~gopalv] , I created a solution for this. My patch does not add new functionality to Metastore as [~vgarg] suggested but solves the problem. The only limitation which I couldn't solve is that I think we don't store additional keywords in Metastore, which belongs to a constraint (like DISABLE or RELY), so I couldn't add it to the result. Do you think these should be added to Metastore, or for now it's okay without them as well? Otherwise, show create table now showing all the constraints (without additional keywords) mentioned in the Jira in the following format: !Screen Shot 2019-01-23 at 11.52.04.png! > Constraints: Show create table does not show constraints > > > Key: HIVE-20758 > URL: https://issues.apache.org/jira/browse/HIVE-20758 > Project: Hive > Issue Type: Bug >Affects Versions: 4.0.0 >Reporter: Gopal V >Assignee: Barnabas Maidics >Priority: Major > Attachments: HIVE-20758.1.patch, Screen Shot 2019-01-23 at > 11.52.04.png > > > Even though the desc formatted shows the constraints, the show create table > does not > {code} > | # Primary Key | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | pk_in > | NULL >| > | Column Names: | inv_date_sk > | inv_item_sk >| > || NULL > | NULL >| > | # Foreign Keys | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | inv_d > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.date_dim.d_date_sk | > Column Name:inv_date_sk| Key Sequence:1 > | > || NULL > | NULL >| > | Constraint Name: | inv_i > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.item.i_item_sk | Column > Name:inv_item_sk| Key Sequence:1 >| > || NULL > | NULL >| > | Constraint Name: | inv_w > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.warehouse.w_warehouse_sk > | Column Name:inv_warehouse_sk | Key Sequence:1 > | > || NULL > | NULL >| > {code} > But > {code} > ++ > | createtab_stmt | > ++ > | CREATE TABLE `inventory`( | > | `inv_item_sk` bigint,| > | `inv_warehouse_sk` bigint, | > | `inv_quantity_on_hand` int, | > | `inv_date_sk` bigint)| > | ROW FORMAT SERDE | > | 'org.apache.hadoop.hive.ql.io.orc.OrcSerde' | > | STORED AS INPUTFORMAT | > | 'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat' | > | OUTPUTFORMAT
[jira] [Commented] (HIVE-20758) Constraints: Show create table does not show constraints
[ https://issues.apache.org/jira/browse/HIVE-20758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16652937#comment-16652937 ] Gopal V commented on HIVE-20758: bq. This will require calling metastore for all constraints (Default, pk/fk, Check, Not null, Unique). This is not a particularly performance sensitive operation, so that would still be fine (because "desc formatted" wasn't very slow). For me, this is was filed out of just sheer laziness on copying out schema between clusters :) > Constraints: Show create table does not show constraints > > > Key: HIVE-20758 > URL: https://issues.apache.org/jira/browse/HIVE-20758 > Project: Hive > Issue Type: Bug >Affects Versions: 4.0.0 >Reporter: Gopal V >Priority: Major > > Even though the desc formatted shows the constraints, the show create table > does not > {code} > | # Primary Key | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | pk_in > | NULL >| > | Column Names: | inv_date_sk > | inv_item_sk >| > || NULL > | NULL >| > | # Foreign Keys | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | inv_d > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.date_dim.d_date_sk | > Column Name:inv_date_sk| Key Sequence:1 > | > || NULL > | NULL >| > | Constraint Name: | inv_i > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.item.i_item_sk | Column > Name:inv_item_sk| Key Sequence:1 >| > || NULL > | NULL >| > | Constraint Name: | inv_w > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.warehouse.w_warehouse_sk > | Column Name:inv_warehouse_sk | Key Sequence:1 > | > || NULL > | NULL >| > {code} > But > {code} > ++ > | createtab_stmt | > ++ > | CREATE TABLE `inventory`( | > | `inv_item_sk` bigint,| > | `inv_warehouse_sk` bigint, | > | `inv_quantity_on_hand` int, | > | `inv_date_sk` bigint)| > | 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 | > | > 'hdfs:///warehouse/tablespace/managed/hive/tpcds_bin_partitioned_orc_1.db/inventory' > | > | TBLPROPERTIES (| > | 'bucketing_version'='2', | > | 'transactional'='true', | > | 'transactional_properties'='default',
[jira] [Commented] (HIVE-20758) Constraints: Show create table does not show constraints
[ https://issues.apache.org/jira/browse/HIVE-20758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16652903#comment-16652903 ] Vineet Garg commented on HIVE-20758: This will require calling metastore for all constraints (Default, pk/fk, Check, Not null, Unique). Instead of calling each and every time it will be good to add metastore api to return all constraints given a table > Constraints: Show create table does not show constraints > > > Key: HIVE-20758 > URL: https://issues.apache.org/jira/browse/HIVE-20758 > Project: Hive > Issue Type: Bug >Affects Versions: 4.0.0 >Reporter: Gopal V >Priority: Major > > Even though the desc formatted shows the constraints, the show create table > does not > {code} > | # Primary Key | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | pk_in > | NULL >| > | Column Names: | inv_date_sk > | inv_item_sk >| > || NULL > | NULL >| > | # Foreign Keys | NULL > | NULL >| > | Table: | > tpcds_bin_partitioned_orc_1.inventory | NULL > | > | Constraint Name: | inv_d > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.date_dim.d_date_sk | > Column Name:inv_date_sk| Key Sequence:1 > | > || NULL > | NULL >| > | Constraint Name: | inv_i > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.item.i_item_sk | Column > Name:inv_item_sk| Key Sequence:1 >| > || NULL > | NULL >| > | Constraint Name: | inv_w > | NULL >| > | Parent Column Name:tpcds_bin_partitioned_orc_1.warehouse.w_warehouse_sk > | Column Name:inv_warehouse_sk | Key Sequence:1 > | > || NULL > | NULL >| > {code} > But > {code} > ++ > | createtab_stmt | > ++ > | CREATE TABLE `inventory`( | > | `inv_item_sk` bigint,| > | `inv_warehouse_sk` bigint, | > | `inv_quantity_on_hand` int, | > | `inv_date_sk` bigint)| > | 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 | > | > 'hdfs:///warehouse/tablespace/managed/hive/tpcds_bin_partitioned_orc_1.db/inventory' > | > | TBLPROPERTIES (| > | 'bucketing_version'='2', | > | 'transactional'='true', | > | 'transactional_properties'='default',| > | 'transient_lastDdlTime'='1539710410')| >