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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.1.0
    • Fix Version/s: None
    • Component/s: Beeline
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: