[ 
https://issues.apache.org/jira/browse/DRILL-7527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17020509#comment-17020509
 ] 

ASF GitHub Bot commented on DRILL-7527:
---------------------------------------

vvysotskyi commented on pull request #1958: DRILL-7527: DROP METADATA doesn't 
work with table name starting with '/' inside workspace
URL: https://github.com/apache/drill/pull/1958
 
 
   # [DRILL-7527](https://issues.apache.org/jira/browse/DRILL-7527): DROP 
METADATA doesn't work with table name starting with '/' inside workspace
   
   ## Description
   
   Removed leading slash characters from table name in TableInfo since such 
table names are equivalent. Cleaned up the code.
   
   ## Documentation
   NA
   
   ## Testing
   Added unit test, checked that other tests passed.
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> 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
>            Assignee: Vova Vysotskyi
>            Priority: Major
>             Fix For: 1.18.0
>
>
> *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)

Reply via email to