[ https://issues.apache.org/jira/browse/HIVE-4057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13637401#comment-13637401 ]
Ashutosh Chauhan edited comment on HIVE-4057 at 4/20/13 11:18 PM: ------------------------------------------------------------------ HIVE-3179 fixes the issue. Please reopen if you can still reproduce the bug. was (Author: ashutoshc): HIVE-3179 fixes the issue. Please reopen if you can still reopen the bug. > LazyHBaseRow may return cache data if the field is null and make the result > wrong > --------------------------------------------------------------------------------- > > Key: HIVE-4057 > URL: https://issues.apache.org/jira/browse/HIVE-4057 > Project: Hive > Issue Type: Bug > Components: HBase Handler > Affects Versions: 0.11.0 > Reporter: binlijin > Fix For: 0.12.0 > > Attachments: HIVE-4057.patch > > > LazyHBaseRow > {code} > private Object uncheckedGetField(int fieldID) { > if(!fieldsInited[fieldID]) { > fieldsInited[fieldID] = true; > byte [] res = result.getValue(colMap.familyNameBytes, > colMap.qualifierNameBytes); > if (res == null) { > return null; > } > } > return fields[fieldID].getObject(); > } > {code} > if there is a LazyHBaseRow instance row, the fieldID is 0, we assume this > field is null, so the first time row.uncheckedGetField(0) will return null, > but the second time when row.uncheckedGetField(0) will return > fields[fieldID].getObject(), this is the last cache data. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira