[jira] [Commented] (HIVE-6716) ORC struct throws NPE for tables with inner structs having null values
[ https://issues.apache.org/jira/browse/HIVE-6716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13945522#comment-13945522 ] Harish Butani commented on HIVE-6716: - +1 for 0.13 > ORC struct throws NPE for tables with inner structs having null values > --- > > Key: HIVE-6716 > URL: https://issues.apache.org/jira/browse/HIVE-6716 > Project: Hive > Issue Type: Bug >Affects Versions: 0.13.0, 0.14.0 >Reporter: Prasanth J >Assignee: Prasanth J > Labels: orcfile > Attachments: HIVE-6716.1.patch > > > ORCStruct should return null when object passed to > getStructFieldsDataAsList(Object obj) is null. > {code} > public List getStructFieldsDataAsList(Object object) { > OrcStruct struct = (OrcStruct) object; > List result = new ArrayList(struct.fields.length); > {code} > In the above code struct.fields will throw NPE if struct is NULL. -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (HIVE-6716) ORC struct throws NPE for tables with inner structs having null values
[ https://issues.apache.org/jira/browse/HIVE-6716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13944610#comment-13944610 ] Prasanth J commented on HIVE-6716: -- Test failures are not related. > ORC struct throws NPE for tables with inner structs having null values > --- > > Key: HIVE-6716 > URL: https://issues.apache.org/jira/browse/HIVE-6716 > Project: Hive > Issue Type: Bug >Affects Versions: 0.13.0, 0.14.0 >Reporter: Prasanth J >Assignee: Prasanth J > Labels: orcfile > Attachments: HIVE-6716.1.patch > > > ORCStruct should return null when object passed to > getStructFieldsDataAsList(Object obj) is null. > {code} > public List getStructFieldsDataAsList(Object object) { > OrcStruct struct = (OrcStruct) object; > List result = new ArrayList(struct.fields.length); > {code} > In the above code struct.fields will throw NPE if struct is NULL. -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (HIVE-6716) ORC struct throws NPE for tables with inner structs having null values
[ https://issues.apache.org/jira/browse/HIVE-6716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13944602#comment-13944602 ] Hive QA commented on HIVE-6716: --- {color:red}Overall{color}: -1 at least one tests failed Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12635937/HIVE-6716.1.patch {color:red}ERROR:{color} -1 due to 2 failed/errored test(s), 5442 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestMinimrCliDriver.testCliDriver_auto_sortmerge_join_16 org.apache.hive.service.cli.thrift.TestThriftBinaryCLIService.testExecuteStatementAsync {noformat} Test results: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/1930/testReport Console output: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/1930/console Messages: {noformat} 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: 2 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12635937 > ORC struct throws NPE for tables with inner structs having null values > --- > > Key: HIVE-6716 > URL: https://issues.apache.org/jira/browse/HIVE-6716 > Project: Hive > Issue Type: Bug >Affects Versions: 0.13.0, 0.14.0 >Reporter: Prasanth J >Assignee: Prasanth J > Labels: orcfile > Attachments: HIVE-6716.1.patch > > > ORCStruct should return null when object passed to > getStructFieldsDataAsList(Object obj) is null. > {code} > public List getStructFieldsDataAsList(Object object) { > OrcStruct struct = (OrcStruct) object; > List result = new ArrayList(struct.fields.length); > {code} > In the above code struct.fields will throw NPE if struct is NULL. -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (HIVE-6716) ORC struct throws NPE for tables with inner structs having null values
[ https://issues.apache.org/jira/browse/HIVE-6716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13943843#comment-13943843 ] Yin Huai commented on HIVE-6716: ok. Have marked that one. Thanks. > ORC struct throws NPE for tables with inner structs having null values > --- > > Key: HIVE-6716 > URL: https://issues.apache.org/jira/browse/HIVE-6716 > Project: Hive > Issue Type: Bug >Affects Versions: 0.13.0, 0.14.0 >Reporter: Prasanth J >Assignee: Prasanth J > Labels: orcfile > Attachments: HIVE-6716.1.patch > > > ORCStruct should return null when object passed to > getStructFieldsDataAsList(Object obj) is null. > {code} > public List getStructFieldsDataAsList(Object object) { > OrcStruct struct = (OrcStruct) object; > List result = new ArrayList(struct.fields.length); > {code} > In the above code struct.fields will throw NPE if struct is NULL. -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (HIVE-6716) ORC struct throws NPE for tables with inner structs having null values
[ https://issues.apache.org/jira/browse/HIVE-6716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13943842#comment-13943842 ] Prasanth J commented on HIVE-6716: -- [~yhuai] yes it looks like the same one.. in your description if cg1 inner struct is null then it will throw NPE.. You can mark it as duplicate. > ORC struct throws NPE for tables with inner structs having null values > --- > > Key: HIVE-6716 > URL: https://issues.apache.org/jira/browse/HIVE-6716 > Project: Hive > Issue Type: Bug >Affects Versions: 0.13.0, 0.14.0 >Reporter: Prasanth J >Assignee: Prasanth J > Labels: orcfile > Attachments: HIVE-6716.1.patch > > > ORCStruct should return null when object passed to > getStructFieldsDataAsList(Object obj) is null. > {code} > public List getStructFieldsDataAsList(Object object) { > OrcStruct struct = (OrcStruct) object; > List result = new ArrayList(struct.fields.length); > {code} > In the above code struct.fields will throw NPE if struct is NULL. -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (HIVE-6716) ORC struct throws NPE for tables with inner structs having null values
[ https://issues.apache.org/jira/browse/HIVE-6716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13943839#comment-13943839 ] Yin Huai commented on HIVE-6716: [~prasanth_j] It is the same bug as I mentioned in https://issues.apache.org/jira/browse/HIVE-6631, right? If so, I will mark that one as duplicate. > ORC struct throws NPE for tables with inner structs having null values > --- > > Key: HIVE-6716 > URL: https://issues.apache.org/jira/browse/HIVE-6716 > Project: Hive > Issue Type: Bug >Affects Versions: 0.13.0, 0.14.0 >Reporter: Prasanth J >Assignee: Prasanth J > Labels: orcfile > Attachments: HIVE-6716.1.patch > > > ORCStruct should return null when object passed to > getStructFieldsDataAsList(Object obj) is null. > {code} > public List getStructFieldsDataAsList(Object object) { > OrcStruct struct = (OrcStruct) object; > List result = new ArrayList(struct.fields.length); > {code} > In the above code struct.fields will throw NPE if struct is NULL. -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (HIVE-6716) ORC struct throws NPE for tables with inner structs having null values
[ https://issues.apache.org/jira/browse/HIVE-6716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13942678#comment-13942678 ] Gunther Hagleitner commented on HIVE-6716: -- +1 LGTM, wondering though if it would be easy to write a unit test for it. > ORC struct throws NPE for tables with inner structs having null values > --- > > Key: HIVE-6716 > URL: https://issues.apache.org/jira/browse/HIVE-6716 > Project: Hive > Issue Type: Bug >Affects Versions: 0.13.0, 0.14.0 >Reporter: Prasanth J >Assignee: Prasanth J > Labels: orcfile > Attachments: HIVE-6716.1.patch > > > ORCStruct should return null when object passed to > getStructFieldsDataAsList(Object obj) is null. > {code} > public List getStructFieldsDataAsList(Object object) { > OrcStruct struct = (OrcStruct) object; > List result = new ArrayList(struct.fields.length); > {code} > In the above code struct.fields will throw NPE if struct is NULL. -- This message was sent by Atlassian JIRA (v6.2#6252)