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

Beeline ignores --showHeader for non-tablular output formats i.e csv,tsv,dsv

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.14.0
    • 1.2.0
    • Beeline
    • None

    Description

      [root@s1 ~]# beeline --silent=true --showHeader=false --outputformat=table -u "jdbc:hive2://localhost:10000" -e "select * from t1;"
      --------+
      1

      --------+
      [root@s1 ~]# beeline --silent=true --showHeader=false --outputformat=vertical -u "jdbc:hive2://localhost:10000" -e "select * from t1;"
      t1.c1 1

      [root@s1 ~]# beeline --silent=true --showHeader=false --outputformat=csv -u "jdbc:hive2://localhost:10000" -e "select * from t1;"
      't1.c1'
      '1'
      [root@s1 ~]# beeline --silent=true --showHeader=false --outputformat=tsv -u "jdbc:hive2://localhost:10000" -e "select * from t1;"
      't1.c1'
      '1'
      [root@s1 ~]# beeline --silent=true --showHeader=false --outputformat=dsv -u "jdbc:hive2://localhost:10000" -e "select * from t1;"
      t1.c1
      1
      [root@s1 ~]# beeline --silent=true --showHeader=false --outputformat=csv2 -u "jdbc:hive2://localhost:10000" -e "select * from t1;"
      t1.c1
      1
      [root@s1 ~]# beeline --silent=true --showHeader=false --outputformat=tsv2 -u "jdbc:hive2://localhost:10000" -e "select * from t1;"
      t1.c1
      1

      Attachments

        1. HIVE-9770.patch
          1 kB
          Naveen Gangam

        Activity

          People

            ngangam Naveen Gangam
            ngangam Naveen Gangam
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: