[
https://issues.apache.org/jira/browse/PHOENIX-11?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13895506#comment-13895506
]
Prashant Kommireddi commented on PHOENIX-11:
--------------------------------------------
[~jviolettedsiq] disabling write operations on LOAD is crucial. I say that as
natural semantics of a load statement to Pig users does not suggest modifying
the underlying data. I feel we should begin with a loader that only accepts
"SELECT" statements, and may be later extend it if need be. Sounds ok?
[[email protected]] thanks for suggesting the alternative. I thought a
little about it, and I find the earlier syntax better. I say this because the
table name does not need to be repeated in the URI authority as well as in the
query as done in the 2nd option. It's also visually more aligned to how LOAD is
used where we pass the HDFS location generally with a FileSystem based
LoadFunc. Let me know what you think, we can discuss further.
I like your suggestion regarding forming the query when the schema is passed.
That would be nice. We could have a syntax in that case as
{code}
LOAD 'hbase://table/MyPhoenixTable'
USING PhoenixHBaseStorage('localhost');
AS (id:bytearray, first_name:chararray, last_name:chararray);
{code}
> 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)