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

Improper handling of comments in queries

    XMLWordPrintableJSON

Details

    Description

      Shell doesn't handle comments properly while executing the queries. For example,

      [impalad:21000] > ----- random comment 1
      -----### random comment 2
      insert overwrite test2 select * from test1;
      Query: ----- random comment 1
      -----### random comment 2
      insert overwrite test2 select * from test1
      
      Fetched 0 row(s) in 3.53s
      
      

      Stderr for an insert query shows up as "Fetched 0 row(s)" instead of "Inserted 1 row(s)" . This happens because the shell parser doesn't detect this as an insert query due to the presence of comments. We don't strip the comments before sending them to Cmd control, due which the default() method is applied instead of do_insert().

      Attachments

        Activity

          People

            fredyw Fredy Wijaya
            bharathv Bharath Vissapragada
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: