[jira] [Commented] (HIVE-20351) GenericUDFNamedStruct should constant fold at compile time
[ https://issues.apache.org/jira/browse/HIVE-20351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16589037#comment-16589037 ] Mykhailo Kysliuk commented on HIVE-20351: - [~gopalv] Could you please review my patch? > GenericUDFNamedStruct should constant fold at compile time > -- > > Key: HIVE-20351 > URL: https://issues.apache.org/jira/browse/HIVE-20351 > Project: Hive > Issue Type: Bug >Reporter: Mykhailo Kysliuk >Assignee: Mykhailo Kysliuk >Priority: Minor > Attachments: HIVE-20351.1.patch, HIVE-20351.2.patch, > HIVE-20351.3.patch, HIVE-20351.4.patch, HIVE-20351.5.patch > > > Reproduced at hive-3.0. > When we run hive query: > {code:java} > select named_struct('Total','Total') from test; > {code} > We could see the ERROR at hiveserver logs: > {code:java} > 2018-05-25T15:18:13,182 ERROR [main] optimizer.ConstantPropagateProcFactory: > Unable to evaluate > org.apache.hadoop.hive.ql.udf.generic.GenericUDFNamedStruct@a0bf272. Return > value unrecoginizable. > {code} > This error is harmless because all results are correct. But named_struct > constant values should be processed correctly. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-20351) GenericUDFNamedStruct should constant fold at compile time
[ https://issues.apache.org/jira/browse/HIVE-20351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16587810#comment-16587810 ] Hive QA commented on HIVE-20351: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12936432/HIVE-20351.5.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:green}SUCCESS:{color} +1 due to 14885 tests passed Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/13375/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/13375/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-13375/ 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: 12936432 - PreCommit-HIVE-Build > GenericUDFNamedStruct should constant fold at compile time > -- > > Key: HIVE-20351 > URL: https://issues.apache.org/jira/browse/HIVE-20351 > Project: Hive > Issue Type: Bug >Reporter: Mykhailo Kysliuk >Assignee: Mykhailo Kysliuk >Priority: Minor > Attachments: HIVE-20351.1.patch, HIVE-20351.2.patch, > HIVE-20351.3.patch, HIVE-20351.4.patch, HIVE-20351.5.patch > > > Reproduced at hive-3.0. > When we run hive query: > {code:java} > select named_struct('Total','Total') from test; > {code} > We could see the ERROR at hiveserver logs: > {code:java} > 2018-05-25T15:18:13,182 ERROR [main] optimizer.ConstantPropagateProcFactory: > Unable to evaluate > org.apache.hadoop.hive.ql.udf.generic.GenericUDFNamedStruct@a0bf272. Return > value unrecoginizable. > {code} > This error is harmless because all results are correct. But named_struct > constant values should be processed correctly. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-20351) GenericUDFNamedStruct should constant fold at compile time
[ https://issues.apache.org/jira/browse/HIVE-20351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16587771#comment-16587771 ] Hive QA commented on HIVE-20351: | (/) *{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 26s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 6s{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 58s{color} | {color:blue} ql in master has 2307 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 24s{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 40s{color} | {color:green} ql: The patch generated 0 new + 98 unchanged - 2 fixed = 98 total (was 100) {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 17s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 59s{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} 24m 19s{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-13375/dev-support/hive-personality.sh | | git revision | master / 20baf49 | | 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-13375/yetus.txt | | Powered by | Apache Yetushttp://yetus.apache.org | This message was automatically generated. > GenericUDFNamedStruct should constant fold at compile time > -- > > Key: HIVE-20351 > URL: https://issues.apache.org/jira/browse/HIVE-20351 > Project: Hive > Issue Type: Bug >Reporter: Mykhailo Kysliuk >Assignee: Mykhailo Kysliuk >Priority: Minor > Attachments: HIVE-20351.1.patch, HIVE-20351.2.patch, > HIVE-20351.3.patch, HIVE-20351.4.patch, HIVE-20351.5.patch > > > Reproduced at hive-3.0. > When we run hive query: > {code:java} > select named_struct('Total','Total') from test; > {code} > We could see the ERROR at hiveserver logs: > {code:java} > 2018-05-25T15:18:13,182 ERROR [main] optimizer.ConstantPropagateProcFactory: > Unable to evaluate > org.apache.hadoop.hive.ql.udf.generic.GenericUDFNamedStruct@a0bf272. Return > value unrecoginizable. > {code} > This error is harmless because all results are correct. But named_struct > constant values should be processed correctly. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-20351) GenericUDFNamedStruct should constant fold at compile time
[ https://issues.apache.org/jira/browse/HIVE-20351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16584447#comment-16584447 ] Hive QA commented on HIVE-20351: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12936035/HIVE-20351.4.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:red}ERROR:{color} -1 due to 2 failed/errored test(s), 14884 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestMiniDruidCliDriver.testCliDriver[druidmini_test1] (batchId=194) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[vector_annotate_stats_select] (batchId=165) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/13308/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/13308/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-13308/ 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: 12936035 - PreCommit-HIVE-Build > GenericUDFNamedStruct should constant fold at compile time > -- > > Key: HIVE-20351 > URL: https://issues.apache.org/jira/browse/HIVE-20351 > Project: Hive > Issue Type: Bug >Reporter: Mykhailo Kysliuk >Assignee: Mykhailo Kysliuk >Priority: Minor > Attachments: HIVE-20351.1.patch, HIVE-20351.2.patch, > HIVE-20351.3.patch, HIVE-20351.4.patch > > > Reproduced at hive-3.0. > When we run hive query: > {code:java} > select named_struct('Total','Total') from test; > {code} > We could see the ERROR at hiveserver logs: > {code:java} > 2018-05-25T15:18:13,182 ERROR [main] optimizer.ConstantPropagateProcFactory: > Unable to evaluate > org.apache.hadoop.hive.ql.udf.generic.GenericUDFNamedStruct@a0bf272. Return > value unrecoginizable. > {code} > This error is harmless because all results are correct. But named_struct > constant values should be processed correctly. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-20351) GenericUDFNamedStruct should constant fold at compile time
[ https://issues.apache.org/jira/browse/HIVE-20351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16584416#comment-16584416 ] Hive QA commented on HIVE-20351: | (/) *{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 37s{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 42s{color} | {color:green} master passed {color} | | {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue} 4m 14s{color} | {color:blue} ql in master has 2307 extant Findbugs warnings. {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 59s{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 9s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 1m 9s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 40s{color} | {color:green} ql: The patch generated 0 new + 98 unchanged - 2 fixed = 98 total (was 100) {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 24s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 58s{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} 25m 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-13308/dev-support/hive-personality.sh | | git revision | master / 5681647 | | 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-13308/yetus.txt | | Powered by | Apache Yetushttp://yetus.apache.org | This message was automatically generated. > GenericUDFNamedStruct should constant fold at compile time > -- > > Key: HIVE-20351 > URL: https://issues.apache.org/jira/browse/HIVE-20351 > Project: Hive > Issue Type: Bug >Reporter: Mykhailo Kysliuk >Assignee: Mykhailo Kysliuk >Priority: Minor > Attachments: HIVE-20351.1.patch, HIVE-20351.2.patch, > HIVE-20351.3.patch, HIVE-20351.4.patch > > > Reproduced at hive-3.0. > When we run hive query: > {code:java} > select named_struct('Total','Total') from test; > {code} > We could see the ERROR at hiveserver logs: > {code:java} > 2018-05-25T15:18:13,182 ERROR [main] optimizer.ConstantPropagateProcFactory: > Unable to evaluate > org.apache.hadoop.hive.ql.udf.generic.GenericUDFNamedStruct@a0bf272. Return > value unrecoginizable. > {code} > This error is harmless because all results are correct. But named_struct > constant values should be processed correctly. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-20351) GenericUDFNamedStruct should constant fold at compile time
[ https://issues.apache.org/jira/browse/HIVE-20351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16584001#comment-16584001 ] Mykhailo Kysliuk commented on HIVE-20351: - [~gopalv] When we run query {code} select x, to_json(named_struct('Total', 1.0)), named_struct('Total', 1.0) from test order by x; {code} We are getting the next error: {code} FAILED: SemanticException [Error 10014]: Line 1:10 Wrong arguments '1.0': Don't know how to handle object inspector org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableConstantHiveDecimalObjectInspector@35d4fecf {code} This happens at to_json function(with and without fix). If we put integer value at parameters everything works fine. Single named_struct UDF works fine with all of argument types. No errors at logs anymore. > GenericUDFNamedStruct should constant fold at compile time > -- > > Key: HIVE-20351 > URL: https://issues.apache.org/jira/browse/HIVE-20351 > Project: Hive > Issue Type: Bug >Reporter: Mykhailo Kysliuk >Assignee: Mykhailo Kysliuk >Priority: Minor > Attachments: HIVE-20351.1.patch, HIVE-20351.2.patch, > HIVE-20351.3.patch, HIVE-20351.4.patch > > > Reproduced at hive-3.0. > When we run hive query: > {code:java} > select named_struct('Total','Total') from test; > {code} > We could see the ERROR at hiveserver logs: > {code:java} > 2018-05-25T15:18:13,182 ERROR [main] optimizer.ConstantPropagateProcFactory: > Unable to evaluate > org.apache.hadoop.hive.ql.udf.generic.GenericUDFNamedStruct@a0bf272. Return > value unrecoginizable. > {code} > This error is harmless because all results are correct. But named_struct > constant values should be processed correctly. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-20351) GenericUDFNamedStruct should constant fold at compile time
[ https://issues.apache.org/jira/browse/HIVE-20351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16583050#comment-16583050 ] Hive QA commented on HIVE-20351: | (/) *{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 50s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 13s{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 10s{color} | {color:blue} ql in master has 2305 extant Findbugs warnings. {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 1m 0s{color} | {color:green} master passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 1m 33s{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} ql: The patch generated 0 new + 98 unchanged - 2 fixed = 98 total (was 100) {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 32s{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 14s{color} | {color:green} The patch does not generate ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black} 25m 38s{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-13277/dev-support/hive-personality.sh | | git revision | master / a72693c | | 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-13277/yetus.txt | | Powered by | Apache Yetushttp://yetus.apache.org | This message was automatically generated. > GenericUDFNamedStruct should constant fold at compile time > -- > > Key: HIVE-20351 > URL: https://issues.apache.org/jira/browse/HIVE-20351 > Project: Hive > Issue Type: Bug >Reporter: Mykhailo Kysliuk >Assignee: Mykhailo Kysliuk >Priority: Minor > Attachments: HIVE-20351.1.patch, HIVE-20351.2.patch, > HIVE-20351.3.patch > > > Reproduced at hive-3.0. > When we run hive query: > {code:java} > select named_struct('Total','Total') from test; > {code} > We could see the ERROR at hiveserver logs: > {code:java} > 2018-05-25T15:18:13,182 ERROR [main] optimizer.ConstantPropagateProcFactory: > Unable to evaluate > org.apache.hadoop.hive.ql.udf.generic.GenericUDFNamedStruct@a0bf272. Return > value unrecoginizable. > {code} > This error is harmless because all results are correct. But named_struct > constant values should be processed correctly. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-20351) GenericUDFNamedStruct should constant fold at compile time
[ https://issues.apache.org/jira/browse/HIVE-20351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16581918#comment-16581918 ] Hive QA commented on HIVE-20351: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12935733/HIVE-20351.2.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:red}ERROR:{color} -1 due to 1 failed/errored test(s), 14878 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[vector_annotate_stats_select] (batchId=165) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/13253/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/13253/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-13253/ 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: 12935733 - PreCommit-HIVE-Build > GenericUDFNamedStruct should constant fold at compile time > -- > > Key: HIVE-20351 > URL: https://issues.apache.org/jira/browse/HIVE-20351 > Project: Hive > Issue Type: Bug >Reporter: Mykhailo Kysliuk >Assignee: Mykhailo Kysliuk >Priority: Minor > Attachments: HIVE-20351.1.patch, HIVE-20351.2.patch > > > Reproduced at hive-3.0. > When we run hive query: > {code:java} > select named_struct('Total','Total') from test; > {code} > We could see the ERROR at hiveserver logs: > {code:java} > 2018-05-25T15:18:13,182 ERROR [main] optimizer.ConstantPropagateProcFactory: > Unable to evaluate > org.apache.hadoop.hive.ql.udf.generic.GenericUDFNamedStruct@a0bf272. Return > value unrecoginizable. > {code} > This error is harmless because all results are correct. But named_struct > constant values should be processed correctly. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-20351) GenericUDFNamedStruct should constant fold at compile time
[ https://issues.apache.org/jira/browse/HIVE-20351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16581882#comment-16581882 ] Hive QA commented on HIVE-20351: | (/) *{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 53s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 10s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 42s{color} | {color:green} master passed {color} | | {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue} 4m 14s{color} | {color:blue} ql in master has 2305 extant Findbugs warnings. {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 1m 0s{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 8s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 1m 8s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 43s{color} | {color:green} ql: The patch generated 0 new + 98 unchanged - 2 fixed = 98 total (was 100) {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 29s{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: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} 25m 39s{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-13253/dev-support/hive-personality.sh | | git revision | master / 142367d | | 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-13253/yetus.txt | | Powered by | Apache Yetushttp://yetus.apache.org | This message was automatically generated. > GenericUDFNamedStruct should constant fold at compile time > -- > > Key: HIVE-20351 > URL: https://issues.apache.org/jira/browse/HIVE-20351 > Project: Hive > Issue Type: Bug >Reporter: Mykhailo Kysliuk >Assignee: Mykhailo Kysliuk >Priority: Minor > Attachments: HIVE-20351.1.patch, HIVE-20351.2.patch > > > Reproduced at hive-3.0. > When we run hive query: > {code:java} > select named_struct('Total','Total') from test; > {code} > We could see the ERROR at hiveserver logs: > {code:java} > 2018-05-25T15:18:13,182 ERROR [main] optimizer.ConstantPropagateProcFactory: > Unable to evaluate > org.apache.hadoop.hive.ql.udf.generic.GenericUDFNamedStruct@a0bf272. Return > value unrecoginizable. > {code} > This error is harmless because all results are correct. But named_struct > constant values should be processed correctly. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-20351) GenericUDFNamedStruct should constant fold at compile time
[ https://issues.apache.org/jira/browse/HIVE-20351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16575390#comment-16575390 ] Gopal V commented on HIVE-20351: {code} create temporary table test(x int) stored as orc; insert into test values(1),(2),(3); select x, to_json(named_struct('Total', 1.0)), named_struct('Total', 1.0) from test order by x; {code} > GenericUDFNamedStruct should constant fold at compile time > -- > > Key: HIVE-20351 > URL: https://issues.apache.org/jira/browse/HIVE-20351 > Project: Hive > Issue Type: Bug >Reporter: Mykhailo Kysliuk >Assignee: Mykhailo Kysliuk >Priority: Minor > Attachments: HIVE-20351.1.patch > > > Reproduced at hive-3.0. > When we run hive query: > {code:java} > select named_struct('Total','Total') from test; > {code} > We could see the ERROR at hiveserver logs: > {code:java} > 2018-05-25T15:18:13,182 ERROR [main] optimizer.ConstantPropagateProcFactory: > Unable to evaluate > org.apache.hadoop.hive.ql.udf.generic.GenericUDFNamedStruct@a0bf272. Return > value unrecoginizable. > {code} > This error is harmless because all results are correct. But named_struct > constant values should be processed correctly. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-20351) GenericUDFNamedStruct should constant fold at compile time
[ https://issues.apache.org/jira/browse/HIVE-20351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16575238#comment-16575238 ] Hive QA commented on HIVE-20351: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12934996/HIVE-20351.1.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:red}ERROR:{color} -1 due to 48 failed/errored test(s), 14872 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestBlobstoreCliDriver.testCliDriver[insert_into_dynamic_partitions] (batchId=267) org.apache.hadoop.hive.cli.TestBlobstoreCliDriver.testCliDriver[insert_into_table] (batchId=267) org.apache.hadoop.hive.cli.TestBlobstoreCliDriver.testCliDriver[insert_overwrite_dynamic_partitions] (batchId=267) org.apache.hadoop.hive.cli.TestBlobstoreCliDriver.testCliDriver[insert_overwrite_table] (batchId=267) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[alter_partition_coltype] (batchId=27) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[autoColumnStats_5] (batchId=44) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[autoColumnStats_5a] (batchId=56) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[insert_into1] (batchId=22) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[join45] (batchId=21) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[join47] (batchId=34) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[list_bucket_query_multiskew_2] (batchId=74) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[mapjoin47] (batchId=63) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[null_cast] (batchId=9) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[parquet_vectorization_0] (batchId=17) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[pcr] (batchId=63) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[pcs] (batchId=52) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[pointlookup2] (batchId=86) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[pointlookup3] (batchId=7) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[pointlookup4] (batchId=79) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[pointlookup] (batchId=4) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[smb_mapjoin_47] (batchId=31) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[stat_estimate_drill] (batchId=13) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[structin] (batchId=34) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[tablevalues] (batchId=72) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[udf_inline] (batchId=61) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[udf_struct] (batchId=34) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[udf_union] (batchId=11) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[vector_bucket] (batchId=27) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[vector_struct_in] (batchId=48) org.apache.hadoop.hive.cli.TestMiniLlapCliDriver.testCliDriver[insert_into1] (batchId=151) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[check_constraint] (batchId=161) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[default_constraint] (batchId=167) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[enforce_constraint_notnull] (batchId=161) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[insert_into_default_keyword] (batchId=157) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[multi_column_in] (batchId=161) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[multi_column_in_single] (batchId=159) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[vector_annotate_stats_select] (batchId=165) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[vector_bucket] (batchId=163) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[vector_struct_in] (batchId=169) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[vector_udf_inline] (batchId=180) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[vectorization_0] (batchId=179) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[vectorized_insert_into_bucketed_table] (batchId=163) org.apache.hadoop.hive.cli.TestSparkCliDriver.testCliDriver[insert_into1] (batchId=119) org.apache.hadoop.hive.cli.TestSparkCliDriver.testCliDriver[parquet_vectorization_0] (batchId=116) org.apache.hadoop.hive.cli.TestSparkCliDriver.testCliDriver[pcr] (batchId=136) org.apache.hadoop.hive.cli.TestSparkCliDriver.testCliDriver[vectorization_0] (batchId=147) org.apache.hadoop.hive.cli.TestSparkPerfCliDriver.testCliDriver[query91] (batchId=266) org.apache.hadoop.hive.cli.TestTezPerfCliDriver.testCliDriver[query91] (batchId=264) {noformat} Test results:
[jira] [Commented] (HIVE-20351) GenericUDFNamedStruct should constant fold at compile time
[ https://issues.apache.org/jira/browse/HIVE-20351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16575198#comment-16575198 ] Hive QA commented on HIVE-20351: | (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 14s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 9s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 43s{color} | {color:green} master passed {color} | | {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue} 4m 11s{color} | {color:blue} ql in master has 2305 extant Findbugs warnings. {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 1m 0s{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 9s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 1m 9s{color} | {color:green} the patch passed {color} | | {color:red}-1{color} | {color:red} checkstyle {color} | {color:red} 0m 44s{color} | {color:red} ql: The patch generated 2 new + 99 unchanged - 1 fixed = 101 total (was 100) {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 40s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 1m 6s{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} 26m 10s{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-13128/dev-support/hive-personality.sh | | git revision | master / 873d31f | | Default Java | 1.8.0_111 | | findbugs | v3.0.0 | | checkstyle | http://104.198.109.242/logs//PreCommit-HIVE-Build-13128/yetus/diff-checkstyle-ql.txt | | modules | C: ql U: ql | | Console output | http://104.198.109.242/logs//PreCommit-HIVE-Build-13128/yetus.txt | | Powered by | Apache Yetushttp://yetus.apache.org | This message was automatically generated. > GenericUDFNamedStruct should constant fold at compile time > -- > > Key: HIVE-20351 > URL: https://issues.apache.org/jira/browse/HIVE-20351 > Project: Hive > Issue Type: Bug >Reporter: Mykhailo Kysliuk >Assignee: Mykhailo Kysliuk >Priority: Minor > Attachments: HIVE-20351.1.patch > > > Reproduced at hive-3.0. > When we run hive query: > {code:java} > select named_struct('Total','Total') from test; > {code} > We could see the ERROR at hiveserver logs: > {code:java} > 2018-05-25T15:18:13,182 ERROR [main] optimizer.ConstantPropagateProcFactory: > Unable to evaluate > org.apache.hadoop.hive.ql.udf.generic.GenericUDFNamedStruct@a0bf272. Return > value unrecoginizable. > {code} > This error is harmless because all results are correct. But named_struct > constant values should be processed correctly. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-20351) GenericUDFNamedStruct should constant fold at compile time
[ https://issues.apache.org/jira/browse/HIVE-20351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16575190#comment-16575190 ] Mykhailo Kysliuk commented on HIVE-20351: - [~gopalv] Could you please provide some examples of queries to run. This code executes fine with MR engine. What things do I have to check? > GenericUDFNamedStruct should constant fold at compile time > -- > > Key: HIVE-20351 > URL: https://issues.apache.org/jira/browse/HIVE-20351 > Project: Hive > Issue Type: Bug >Reporter: Mykhailo Kysliuk >Assignee: Mykhailo Kysliuk >Priority: Minor > Attachments: HIVE-20351.1.patch > > > Reproduced at hive-3.0. > When we run hive query: > {code:java} > select named_struct('Total','Total') from test; > {code} > We could see the ERROR at hiveserver logs: > {code:java} > 2018-05-25T15:18:13,182 ERROR [main] optimizer.ConstantPropagateProcFactory: > Unable to evaluate > org.apache.hadoop.hive.ql.udf.generic.GenericUDFNamedStruct@a0bf272. Return > value unrecoginizable. > {code} > This error is harmless because all results are correct. But named_struct > constant values should be processed correctly. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-20351) GenericUDFNamedStruct should constant fold at compile time
[ https://issues.apache.org/jira/browse/HIVE-20351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16575177#comment-16575177 ] Gopal V commented on HIVE-20351: For some reason, I left a comment about named_structs in the original commit. {code} && oi instanceof StandardConstantStructObjectInspector) { // do not fold named_struct, only struct() ConstantObjectInspector coi = (ConstantObjectInspector) oi; {code} Can you try running this is in a query (i.e submit via Tez and see) - if I'm not wrong some bit in Kryo breaks. > GenericUDFNamedStruct should constant fold at compile time > -- > > Key: HIVE-20351 > URL: https://issues.apache.org/jira/browse/HIVE-20351 > Project: Hive > Issue Type: Bug >Reporter: Mykhailo Kysliuk >Assignee: Mykhailo Kysliuk >Priority: Minor > Attachments: HIVE-20351.1.patch > > > Reproduced at hive-3.0. > When we run hive query: > {code:java} > select named_struct('Total','Total') from test; > {code} > We could see the ERROR at hiveserver logs: > {code:java} > 2018-05-25T15:18:13,182 ERROR [main] optimizer.ConstantPropagateProcFactory: > Unable to evaluate > org.apache.hadoop.hive.ql.udf.generic.GenericUDFNamedStruct@a0bf272. Return > value unrecoginizable. > {code} > This error is harmless because all results are correct. But named_struct > constant values should be processed correctly. -- This message was sent by Atlassian JIRA (v7.6.3#76005)