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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.2, 2.4.0, 3.0.0
    • Component/s: Beeline
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: