hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hive QA (Jira)" <>
Subject [jira] [Commented] (HIVE-23128) SHOW CREATE TABLE Creates Incorrect Syntax When Database Specified
Date Sat, 04 Apr 2020 06:15:00 GMT


Hive QA commented on HIVE-23128:

Here are the results of testing the latest attachment:

{color:red}ERROR:{color} -1 due to no test(s) being added or modified.

{color:red}ERROR:{color} -1 due to 1 failed/errored test(s), 18173 tests executed
*Failed tests:*
org.apache.hadoop.hive.cli.TestTezPerfConstraintsCliDriver.testCliDriver[cbo_query16] (batchId=307)

Test results:
Console output:
Test logs:

Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.YetusPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
Tests exited with: TestsFailedException: 1 tests failed

This message is automatically generated.

ATTACHMENT ID: 12998754 - PreCommit-HIVE-Build

> SHOW CREATE TABLE Creates Incorrect Syntax When Database Specified
> ------------------------------------------------------------------
>                 Key: HIVE-23128
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 2.4.0, 3.1.2
>            Reporter: David Mollitor
>            Assignee: David Mollitor
>            Priority: Major
>         Attachments: HIVE-23128.1.patch, HIVE-23128.2.patch
> {code:sql}
> show create table `sample_07`;
> show create table `default`.`sample_07`;
> show create table `default.sample_07`;
> {code}
> {code:none|title=Results}
> CREATE TABLE `sample_07`(...)
> CREATE TABLE `default.sample_07`(...)
> CREATE TABLE `default.sample_07`(...);
> {code}
> 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."
> {quote}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 ``.
>  * []{quote}

This message was sent by Atlassian Jira

View raw message