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

Beeline's --silent option should suppress query from being echoed when running with -f option

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.13.0
    • 1.2.0
    • Beeline
    • None

    Description

      The -e and the -f options behave differently.

      beeline -u jdbc:hive2://localhost:10000/default --showHeader=false --silent=true -f select.sql
      0: jdbc:hive2://localhost:10000/default> select * from sample_07 limit 5;
      --------------------------------------------------------------------------------------
      00-0000 All Occupations 134354250 40690
      11-0000 Management occupations 6003930 96150
      11-1011 Chief executives 299160 151370
      11-1021 General and operations managers 1655410 103780
      11-1031 Legislators 61110 33880
      --------------------------------------------------------------------------------------
      
      beeline -u jdbc:hive2://localhost:10000/default --showHeader=false --silent=true -e "select * from sample_07 limit 5;"
      --------------------------------------------------------------------------------------
      00-0000 	All Occupations 	134354250 	40690
      11-0000 	Management occupations 	6003930 	96150
      11-1011 	Chief executives 	299160 	151370
      11-1021 	General and operations managers 	1655410 	103780
      11-1031 	Legislators 	61110 	33880
      
      --------------------------------------------------------------------------------------
      

      Attachments

        1. HIVE-10087.patch
          1.0 kB
          Naveen Gangam

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: