[
https://issues.apache.org/jira/browse/PHOENIX-11?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13895719#comment-13895719
]
ravi commented on PHOENIX-11:
-----------------------------
prashant, it looks like LoadPushDown doesn't offer us an opportunity to get
access to the schema specified as part of LOAD.
https://issues.apache.org/jira/browse/PIG-3646
If we are OK with sticking with the following two options for now, I can go
ahead and make the necessary changes to the code that I am currently working on.
a) Specify just the table name as part of location.
LOAD 'hbase://table/MyPhoenixTable' USING PhoenixHBaseStorage('localhost');
Here, the loader will load the metadata of all columns for the table
and construct the select query accordingly.
b) Specify the query .
LOAD 'hbase://query/Select id, first_name, last_name from MyPhoenixTable'
USING PhoenixHBaseStorage('localhost');
Here , we determine the PDataType for the projected columns in the
select query by looking into the ResultSetMetaData.
Suggestions welcome!!
> Create Pig Loader
> -----------------
>
> Key: PHOENIX-11
> URL: https://issues.apache.org/jira/browse/PHOENIX-11
> Project: Phoenix
> Issue Type: Bug
> Reporter: James Taylor
> Assignee: maghamravikiran
>
> A Pig Storage function exists, so we can store to phoenix tables. What is
> needed is a Loader to go with the Storer.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)