Andrejs Dubovskis created IMPALA-8056:
-----------------------------------------
Summary: Impala accepts plus in front of string value
Key: IMPALA-8056
URL: https://issues.apache.org/jira/browse/IMPALA-8056
Project: IMPALA
Issue Type: Bug
Affects Versions: Impala 2.12.0
Reporter: Andrejs Dubovskis
Impala accepts plus in front of string value and reject minus.
See the output for the corresponding queries:
{code}
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"
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)