[ 
https://issues.apache.org/jira/browse/PIG-759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704011#action_12704011
 ] 

Gunther Hagleitner commented on PIG-759:
----------------------------------------

Looking at the code, it seems you can already specify columns in the load 
statment:

{noformat}
table = load 'hbase://foo' using 
org.apache.pig.backend.hadoop.hbase.HBaseStorage('bar:c bar:d') as (c:int, 
d:int);
{noformat}

Is the suggestion to change the syntax of that? Or did I misunderstand the code?

> HBaseStorage scheme for Load/Slice function
> -------------------------------------------
>
>                 Key: PIG-759
>                 URL: https://issues.apache.org/jira/browse/PIG-759
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Gunther Hagleitner
>
> We would like to change the HBaseStorage function to use a scheme when 
> loading a table in pig. The scheme we are thinking of is: "hbase". So in 
> order to load an hbase table in a pig script the statement should read:
> {noformat}
> table = load 'hbase://<tablename>' using HBaseStorage();
> {noformat}
> If the scheme is omitted pig would assume the tablename to be an hdfs path 
> and the storage function would use the last component of the path as a table 
> name and output a warning.
> For details on why see jira issue: PIG-758

-- 
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