Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.0, 3.1.2
-
None
-
None
Description
show create table `sample_07`; show create table `default`.`sample_07`; show create table `default.sample_07`;
CREATE TABLE `sample_07`(...) CREATE TABLE `default.sample_07`(...) CREATE TABLE `default.sample_07`(...);
All three show create table statements complete in Hive 2.x and 3.x and generate CREATE TABLE statements as show above. The first result is correct because it does not include the database name, however, the subsequent two results are invalid: each field must be quoted individually. This causes a failure in recent versions of Hive because "SemanticException Table or database name may not contain dot(.) character."
If any components of a multiple-part name require quoting, quote them individually rather than quoting the name as a whole. For example, write `my-table`.`my-column`, not `my-table.my-column`.
Attachments
Attachments
Issue Links
- is depended upon by
-
HIVE-23159 Cleanup ShowCreateTableOperation
- Open
- relates to
-
HIVE-11804 Different describe formatted behavior depending on whether the table name is qualified with database name or not
- Open
-
HIVE-23149 Consistency of Parsing Object Identifiers
- Open