You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Navis (JIRA)" <ji...@apache.org> on 2014/07/04 09:14:33 UTC

[jira] [Commented] (HIVE-3227) Implement data loading from user provided string directly for test

    [ https://issues.apache.org/jira/browse/HIVE-3227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14052224#comment-14052224 ] 

Navis commented on HIVE-3227:
-----------------------------

[~appodictic] Restricted this to be used only in "hive.in.test=true". How about that?

> Implement data loading from user provided string directly for test
> ------------------------------------------------------------------
>
>                 Key: HIVE-3227
>                 URL: https://issues.apache.org/jira/browse/HIVE-3227
>             Project: Hive
>          Issue Type: Improvement
>          Components: Query Processor, Testing Infrastructure
>    Affects Versions: 0.10.0
>            Reporter: Navis
>            Assignee: Navis
>            Priority: Trivial
>         Attachments: HIVE-3227.1.patch.txt
>
>
> {code}
> load data instream 'key value\nkey2 value2' into table test;
> {code}
> This will make test easier and also can reduce test time. For example,
> {code}
> -- ppr_pushdown.q
> create table ppr_test (key string) partitioned by (ds string);
> alter table ppr_test add partition (ds = '1234');
> insert overwrite table ppr_test partition(ds = '1234') select * from (select '1234' from src limit 1 union all select 'abcd' from src limit 1) s;
> {code}
> last query is 4MR job. But can be replaced by
> {code}
> create table ppr_test (key string) partitioned by (ds string) ROW FORMAT delimited fields terminated by ' ';
> alter table ppr_test add partition (ds = '1234');
> load data local instream '1234\nabcd' overwrite into table ppr_test partition(ds = '1234');
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)