You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Vihang Karajgaonkar (JIRA)" <ji...@apache.org> on 2018/05/05 22:58:00 UTC

[jira] [Commented] (HIVE-19431) Beeline behaves differently when query is executed with -e and -f

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

Vihang Karajgaonkar commented on HIVE-19431:
--------------------------------------------

is this different than HIVE-17184?

> Beeline behaves differently when query is executed with -e and -f
> -----------------------------------------------------------------
>
>                 Key: HIVE-19431
>                 URL: https://issues.apache.org/jira/browse/HIVE-19431
>             Project: Hive
>          Issue Type: Bug
>          Components: Beeline
>    Affects Versions: 1.1.0
>            Reporter: Andre Araujo
>            Priority: Major
>
> The behaviour of Beeline differs when executing queries with {{-e}} and {{-f}}, as shown below:
> {code:java}
> $ cat test.hql
> select * from test_file;
> $ cat test.txt
> abc 123
> xyz 000
> $ beeline
> > create table test_file (a string, b int) row format delimited fields terminated by ' ';
> $ beeline -u "<connstr>" --silent=true --showheader=false -e "select * from test_file;" > e.log
> $ beeline -u "<connstr>" --silent=true --showheader=false -f test.hql > f.log
> $ cat e.log
> +--------------+--------------+--+
> | abc | 123 |
> | xyz | 0 |
> +--------------+--------------+--+
> $ cat f.log
>                                      <--- blank line
> +--------------+--------------+--+
> | abc | 123 |
> | xyz | 0 |
> +--------------+--------------+--+
>                                      <--- blank line
> $
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)