Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-19431

Beeline behaves differently when query is executed with -e and -f

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.1.0
    • None
    • Beeline
    • None

    Description

      The behaviour of Beeline differs when executing queries with -e and -f, as shown below:

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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              asdaraujo Andre Araujo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: