[
https://issues.apache.org/jira/browse/PIG-2482?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Dai updated PIG-2482:
----------------------------
Release Note:
Pig support sql command in script/grunt/embedding.
Script/grunt:
sql create table ......;
Note the sql statement end with a ";"
embedding:
from org.apache.pig.scripting import Pig
ret = Pig.sql("""drop table if exists table_1;""")
if ret==0:
#success
Configuration:
pig.sql.type=hcat (backend of sql, hcat is the only sql backend now)
hcat.bin=/usr/local/hcat/bin/hcat (binary location for hcat)
> Integrate HCat DDL command into Pig
> -----------------------------------
>
> Key: PIG-2482
> URL: https://issues.apache.org/jira/browse/PIG-2482
> Project: Pig
> Issue Type: New Feature
> Components: impl
> Reporter: Daniel Dai
> Assignee: Daniel Dai
> Fix For: 0.11
>
> Attachments: PIG-2482-1.patch, PIG-2482-2.patch, PIG-2482-3.patch
>
>
> We would like to run hcat DDL command inside Pig script or Grunt. We can use
> a similar approach as "fs" or "sh".
> Grunt> hcat create table .....
> Similar to "fs" and "sh", we don't plan to add Java API in PigServer for it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira