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

Unexpected new line in beeline output when running with -f option

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.3.2, 2.4.0, 3.0.0
    • Beeline
    • None

    Description

      When running in -f mode on BeeLine I see an extra new line getting added at the end of the results.

      vihang-MBP:bin vihang$ beeline -f /tmp/query.sql 2>/dev/null
      +----------+-----------+
      | test.id  | test.val  |
      +----------+-----------+
      | 1        | one       |
      | 2        | two       |
      | 1        | three     |
      +----------+-----------+
      
      vihang-MBP:bin vihang$ beeline -e "select * from test;" 2>/dev/null
      +----------+-----------+
      | test.id  | test.val  |
      +----------+-----------+
      | 1        | one       |
      | 2        | two       |
      | 1        | three     |
      +----------+-----------+
      vihang-MBP:bin vihang$
      

      Attachments

        1. HIVE-17184.01.patch
          0.7 kB
          Vihang Karajgaonkar

        Issue Links

          Activity

            People

              vihangk1 Vihang Karajgaonkar
              vihangk1 Vihang Karajgaonkar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: