Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
Impala 2.12.0
-
None
-
ghx-label-1
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"