hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andre Araujo (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-19431) Beeline behaves differently when query is executed with -e and -f
Date Sun, 06 May 2018 19:40:00 GMT

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

Andre Araujo commented on HIVE-19431:
-------------------------------------

Thanks, [~vihangk1]. At first I thought it was a different issue but after a quick test I
realized it's the same issue.

I'll close this one. Thanks again.

> 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)

Mime
View raw message