[ 
https://issues.apache.org/jira/browse/PIG-1596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

George P. Stathis updated PIG-1596:
-----------------------------------

    Description: 
I'm not a committer, but I'd like to suggest the attached patch to handle 
loading hbase rows containing null cell values (since hbase is all about 
sparsly populated data rows). As it stands, a DataByteArray can be created with 
a null mData if a cell has no value, which causes NPEs by simply attempting to 
load a row containing the null cell in question.

PS: the attached patch also contains a slight change to the bin/pig executable 
to point to the build/pig\-\*\-SNAPSHOT.jar and not the build/pig\-\*\-dev.jar 
(the latter no longer seems to exist). If you prefer a separate patch for this, 
I'll be happy to submit it.

  was:
I'm not a committer, but I'd like to suggest the attached patch to handle 
loading hbase rows containing null cell values (since hbase is all about 
sparsly populated data rows). As it stands, a DataByteArray can be created with 
a null mData if a cell has no value, which causes NPEs by simply attempting to 
load a row containing the null cell in question.

PS: the attached patch also contains a slight change to the bin/pig executable 
to point to the build/pig-*-SNAPSHOT.jar and not the build/pig-*-dev.jar (the 
latter no longer seems to exist). If you prefer a separate patch for this, I'll 
be happy to submit it.


> NPE's thrown when attempting to load hbase columns containing null values
> -------------------------------------------------------------------------
>
>                 Key: PIG-1596
>                 URL: https://issues.apache.org/jira/browse/PIG-1596
>             Project: Pig
>          Issue Type: Bug
>          Components: data
>    Affects Versions: 0.7.0
>            Reporter: George P. Stathis
>             Fix For: 0.8.0, 0.9.0
>
>         Attachments: null_hbase_records.patch
>
>
> I'm not a committer, but I'd like to suggest the attached patch to handle 
> loading hbase rows containing null cell values (since hbase is all about 
> sparsly populated data rows). As it stands, a DataByteArray can be created 
> with a null mData if a cell has no value, which causes NPEs by simply 
> attempting to load a row containing the null cell in question.
> PS: the attached patch also contains a slight change to the bin/pig 
> executable to point to the build/pig\-\*\-SNAPSHOT.jar and not the 
> build/pig\-\*\-dev.jar (the latter no longer seems to exist). If you prefer a 
> separate patch for this, I'll be happy to submit it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to