[
https://issues.apache.org/jira/browse/HIVE-19431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andre Araujo resolved HIVE-19431.
---------------------------------
Resolution: Duplicate
> 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)