You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Denys Ordynskiy (Jira)" <ji...@apache.org> on 2020/01/13 18:12:00 UTC

[jira] [Created] (DRILL-7527) DROP METADATA doesn't work with table name starting with '/' inside workspace

Denys Ordynskiy created DRILL-7527:
--------------------------------------

             Summary: DROP METADATA doesn't work with table name starting with '/' inside workspace
                 Key: DRILL-7527
                 URL: https://issues.apache.org/jira/browse/DRILL-7527
             Project: Apache Drill
          Issue Type: Bug
    Affects Versions: 1.17.0
            Reporter: Denys Ordynskiy


*Description:*
- create parquet table with CTAS: CREATE TABLE dfs.tmp.`folder/file` AS SELECT * FROM cp.`employee.json`;
- refresh metadata for table: ANALYZE TABLE dfs.tmp.`folder/file` REFRESH METADATA;
- drop metadata: ANALYZE TABLE dfs.tmp.`/folder/file` DROP METADATA [IF EXISTS];

*Expexted result:*
Metadata for table [folder/file] dropped.
*Actual result:*
Error: VALIDATION ERROR: Metadata for table [/folder/file] not found.

Shoud work as DROP TABLE:
DROP TABLE dfs.tmp.`/folder/file`;
Table [folder/file] dropped



--
This message was sent by Atlassian Jira
(v8.3.4#803005)