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

Impala accepts plus in front of string value

    XMLWordPrintableJSON

Details

    Description

      Impala accepts plus in front of string value and reject minus.

      See the output for the corresponding queries:

      Server version: impalad version 2.12.0-cdh5.15.0 RELEASE (build 23f574543323301846b41fa5433690df32efe085)
      
      Query: select "a",+"b"
      Query submitted at: 2019-01-08 14:42:55 (Coordinator: http://catdn009:25000)
      Query progress can be monitored at: http://catdn009:25000/query_plan?query_id=2640632c29c812c7:905a9fcd00000000
      a b
      Fetched 1 row(s) in 0.01s
      
      Query: select "a",-"b"
      Query submitted at: 2019-01-08 14:42:55 (Coordinator: http://catdn009:25000)
      ERROR: AnalysisException: Arithmetic operation requires numeric operands: -1 * 'b'
      
      Could not execute command: select "a",-"b"
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            dubislv Andrejs Dubovskis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: