[jira] [Commented] (HIVE-17530) ClassCastException when converting uniontype
[ https://issues.apache.org/jira/browse/HIVE-17530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16172368#comment-16172368 ] Anthony Hsu commented on HIVE-17530: Thanks, [~cwsteinbach] and [~rdsr]! > ClassCastException when converting uniontype > > > Key: HIVE-17530 > URL: https://issues.apache.org/jira/browse/HIVE-17530 > Project: Hive > Issue Type: Bug >Affects Versions: 1.1.0, 3.0.0 >Reporter: Anthony Hsu >Assignee: Anthony Hsu > Fix For: 3.0.0 > > Attachments: HIVE-17530.1.patch, HIVE-17530.2.patch > > > To repro: > {noformat} > SET hive.exec.schema.evolution = false; > CREATE TABLE avro_orc_partitioned_uniontype (a uniontype) > PARTITIONED BY (b int) STORED AS ORC; > INSERT INTO avro_orc_partitioned_uniontype PARTITION (b=1) SELECT > create_union(1, true, value) FROM src LIMIT 5; > ALTER TABLE avro_orc_partitioned_uniontype SET FILEFORMAT AVRO; > SELECT * FROM avro_orc_partitioned_uniontype; > {noformat} > The exception you get is: > {code} > java.io.IOException:org.apache.hadoop.hive.ql.metadata.HiveException: > java.lang.ClassCastException: java.util.ArrayList cannot be cast to > org.apache.hadoop.hive.serde2.objectinspector.UnionObject > {code} > The issue is that StandardUnionObjectInspector was creating and returning an > ArrayList rather than a UnionObject. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (HIVE-17530) ClassCastException when converting uniontype
[ https://issues.apache.org/jira/browse/HIVE-17530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16168444#comment-16168444 ] Hive QA commented on HIVE-17530: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12887239/HIVE-17530.2.patch {color:green}SUCCESS:{color} +1 due to 2 test(s) being added or modified. {color:red}ERROR:{color} -1 due to 11 failed/errored test(s), 11041 tests executed *Failed tests:* {noformat} TestAccumuloCliDriver - did not produce a TEST-*.xml file (likely timed out) (batchId=230) TestDummy - did not produce a TEST-*.xml file (likely timed out) (batchId=230) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[create_view] (batchId=39) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[union_fast_stats] (batchId=156) org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[drop_table_failure2] (batchId=89) org.apache.hadoop.hive.cli.TestPerfCliDriver.testCliDriver[query14] (batchId=234) org.apache.hadoop.hive.cli.TestPerfCliDriver.testCliDriver[query23] (batchId=234) org.apache.hadoop.hive.ql.TestAcidOnTez.testCtasTezUnion (batchId=215) org.apache.hadoop.hive.ql.TestAcidOnTez.testNonStandardConversion01 (batchId=215) org.apache.hive.hcatalog.pig.TestTextFileHCatStorer.testStoreFuncAllSimpleTypes (batchId=183) org.apache.hive.hcatalog.pig.TestTextFileHCatStorer.testWriteTimestamp (batchId=183) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/6830/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/6830/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-6830/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 11 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12887239 - PreCommit-HIVE-Build > ClassCastException when converting uniontype > > > Key: HIVE-17530 > URL: https://issues.apache.org/jira/browse/HIVE-17530 > Project: Hive > Issue Type: Bug >Affects Versions: 1.1.0, 3.0.0 >Reporter: Anthony Hsu >Assignee: Anthony Hsu > Attachments: HIVE-17530.1.patch, HIVE-17530.2.patch > > > To repro: > {noformat} > SET hive.exec.schema.evolution = false; > CREATE TABLE avro_orc_partitioned_uniontype (a uniontype) > PARTITIONED BY (b int) STORED AS ORC; > INSERT INTO avro_orc_partitioned_uniontype PARTITION (b=1) SELECT > create_union(1, true, value) FROM src LIMIT 5; > ALTER TABLE avro_orc_partitioned_uniontype SET FILEFORMAT AVRO; > SELECT * FROM avro_orc_partitioned_uniontype; > {noformat} > The exception you get is: > {code} > java.io.IOException:org.apache.hadoop.hive.ql.metadata.HiveException: > java.lang.ClassCastException: java.util.ArrayList cannot be cast to > org.apache.hadoop.hive.serde2.objectinspector.UnionObject > {code} > The issue is that StandardUnionObjectInspector was creating and returning an > ArrayList rather than a UnionObject. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (HIVE-17530) ClassCastException when converting uniontype
[ https://issues.apache.org/jira/browse/HIVE-17530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16167897#comment-16167897 ] Ratandeep Ratti commented on HIVE-17530: LGTM [~erwaman] > ClassCastException when converting uniontype > > > Key: HIVE-17530 > URL: https://issues.apache.org/jira/browse/HIVE-17530 > Project: Hive > Issue Type: Bug >Affects Versions: 1.1.0, 3.0.0 >Reporter: Anthony Hsu >Assignee: Anthony Hsu > Attachments: HIVE-17530.1.patch, HIVE-17530.2.patch > > > To repro: > {noformat} > SET hive.exec.schema.evolution = false; > CREATE TABLE avro_orc_partitioned_uniontype (a uniontype) > PARTITIONED BY (b int) STORED AS ORC; > INSERT INTO avro_orc_partitioned_uniontype PARTITION (b=1) SELECT > create_union(1, true, value) FROM src LIMIT 5; > ALTER TABLE avro_orc_partitioned_uniontype SET FILEFORMAT AVRO; > SELECT * FROM avro_orc_partitioned_uniontype; > {noformat} > The exception you get is: > {code} > java.io.IOException:org.apache.hadoop.hive.ql.metadata.HiveException: > java.lang.ClassCastException: java.util.ArrayList cannot be cast to > org.apache.hadoop.hive.serde2.objectinspector.UnionObject > {code} > The issue is that StandardUnionObjectInspector was creating and returning an > ArrayList rather than a UnionObject. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (HIVE-17530) ClassCastException when converting uniontype
[ https://issues.apache.org/jira/browse/HIVE-17530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16166941#comment-16166941 ] Carl Steinbach commented on HIVE-17530: --- Patch looks good. +1. Will commit if tests pass. > ClassCastException when converting uniontype > > > Key: HIVE-17530 > URL: https://issues.apache.org/jira/browse/HIVE-17530 > Project: Hive > Issue Type: Bug >Affects Versions: 1.1.0, 3.0.0 >Reporter: Anthony Hsu >Assignee: Anthony Hsu > Attachments: HIVE-17530.1.patch > > > To repro: > {noformat} > SET hive.exec.schema.evolution = false; > CREATE TABLE avro_orc_partitioned_uniontype (a uniontype) > PARTITIONED BY (b int) STORED AS ORC; > INSERT INTO avro_orc_partitioned_uniontype PARTITION (b=1) SELECT > create_union(1, true, value) FROM src LIMIT 5; > ALTER TABLE avro_orc_partitioned_uniontype SET FILEFORMAT AVRO; > SELECT * FROM avro_orc_partitioned_uniontype; > {noformat} > The exception you get is: > {code} > java.io.IOException:org.apache.hadoop.hive.ql.metadata.HiveException: > java.lang.ClassCastException: java.util.ArrayList cannot be cast to > org.apache.hadoop.hive.serde2.objectinspector.UnionObject > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)