Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
ghx-label-9
Description
Impala can't create a database named "iceberg" but hive can. Valid queries fails in impala using that database.
[localhost:21050] default> create database iceberg;
Query: create database iceberg
ERROR: ParseException: Syntax error in line 1:
create database iceberg
^
Encountered: ICEBERG
Expected: DEFAULT, EXTENDED, FORMATTED, IF, IDENTIFIER
Created database in hive.
[localhost:21050] default> use iceberg;
Query: use iceberg
ERROR: ParseException: Syntax error in line 1: use iceberg
^
Encountered: ICEBERG
Expected: DEFAULT, IDENTIFIER CAUSED BY: Exception: Syntax error
Selects fails too on existing tables.
Escaping solves the issue, e.g.:
CREATE TABLE `iceberg`.`ice_9c` (i INT, t TIMESTAMP) PARTITIONED BY (j BIGINT) STORED AS ICEBERG TBLPROPERTIES ('format-version' = '2');
Improving exception message could help the users in the future