Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-4783

impala-shell should skip printing in-file comments when executing script

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Impala 2.6.0
    • None
    • Clients

    Description

      When executing following script on shell, it prints out even the comments.
      This is trivial, but it would be cleaner to just print the sql statement and strip off the comments from script.

      Also want to point out that striping off the comments is happening, but not consistent. Impala only strips of the comments that come after the sql statement in this case.

      test.sql
      /*
      this is a test
       
      */
       
      select version();
       
      /*
      Another test
      */
      
      impala-shell -f tst.sql 
      Starting Impala Shell without Kerberos authentication
      Connected to x.y.z:21000
      Server version: impalad version 2.7.0-cdh5.10.x RELEASE (build 8a60324f3e31f48f4b50e934740398d5c667cafd)
      Query: /*
      this is a test
       
      */
       
      select version()
      Query submitted at: 2017-01-18 13:03:52 (Coordinator: x.y.z:25000)
      Query progress can be monitored at: http://x.y.z:25000/query_plan?query_id=964039b01d5f633f:8ab253b300000000
      +------------------------------------------------------------------------------------------+
      | version()                                                                                |
      +------------------------------------------------------------------------------------------+
      | impalad version 2.7.0-cdh5.10.x RELEASE (build 8a60324f3e31f48f4b50e934740398d5c667cafd) |
      | Built on Mon Jan 16 18:20:17 PST 2017                                                    |
      +------------------------------------------------------------------------------------------+
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            mala_ck Mala Chikka Kempanna
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: