hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nemon Lou (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-5672) Insert with custom separator not supported for non-local directory
Date Fri, 24 Apr 2015 10:12:39 GMT

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

Nemon Lou updated HIVE-5672:
----------------------------
    Attachment: HIVE-5672.6.patch.tar.gz

Uploading a new patch using a simplified grammar .
{quote}
     (temp=KW_LOCAL)? KW_DIRECTORY StringLiteral tableRowFormat? tableFileFormat?
     ->{$temp != null}? ^(TOK_LOCAL_DIR StringLiteral tableRowFormat? tableFileFormat?)
     ->                 ^(TOK_DIR StringLiteral tableRowFormat? tableFileFormat?)
{quote}
The TOK_LOCAL_DIR has to be kept,because SemanticAnalyzer using this token to decide FileSystem
type.
{code:java}
          qb.getMetaData().setDestForAlias(name, fname,
              (ast.getToken().getType() == HiveParser.TOK_DIR));
{code}
at line 1794 of SemanticAnalyzer.java


> Insert with custom separator not supported for non-local directory
> ------------------------------------------------------------------
>
>                 Key: HIVE-5672
>                 URL: https://issues.apache.org/jira/browse/HIVE-5672
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.12.0, 1.0.0
>            Reporter: Romain Rigaux
>            Assignee: Nemon Lou
>         Attachments: HIVE-5672.1.patch, HIVE-5672.2.patch, HIVE-5672.3.patch, HIVE-5672.4.patch,
HIVE-5672.5.patch, HIVE-5672.5.patch.tar.gz, HIVE-5672.6.patch.tar.gz
>
>
> https://issues.apache.org/jira/browse/HIVE-3682 is great but non local directory don't
seem to be supported:
> {code}
> insert overwrite directory '/tmp/test-02'
> row format delimited
> FIELDS TERMINATED BY ':'
> select description FROM sample_07
> {code}
> {code}
> Error while compiling statement: FAILED: ParseException line 2:0 cannot recognize input
near 'row' 'format' 'delimited' in select clause
> {code}
> This works (with 'local'):
> {code}
> insert overwrite local directory '/tmp/test-02'
> row format delimited
> FIELDS TERMINATED BY ':'
> select code, description FROM sample_07
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message