[ https://issues.apache.org/jira/browse/HIVE-24906?focusedWorklogId=582309&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-582309 ]
ASF GitHub Bot logged work on HIVE-24906: ----------------------------------------- Author: ASF GitHub Bot Created on: 14/Apr/21 09:11 Start Date: 14/Apr/21 09:11 Worklog Time Spent: 10m Work Description: deniskuzZ commented on a change in pull request #2089: URL: https://github.com/apache/hive/pull/2089#discussion_r613076327 ########## File path: standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HMSHandler.java ########## @@ -2419,9 +2419,9 @@ private void create_table_core(final RawStore ms, final CreateTableRequest req) } if (!TableType.VIRTUAL_VIEW.toString().equals(tbl.getTableType())) { - if (tbl.getSd().getLocation() == null - || tbl.getSd().getLocation().isEmpty()) { - tblPath = wh.getDefaultTablePath(db, tbl); + if (tbl.getSd().getLocation() == null || tbl.getSd().getLocation().isEmpty()) { + String relPath = tbl.getTableName() + (tbl.isSetTxnId() ? "_v" + tbl.getTxnId() : ""); Review comment: I think, <TABLE_NAME>/v_<TXN_ID> would be even more confusing + we would need to take care of the <TABLE_NAME> folder if 0 versions remained: ><WAREHOUSE_ROOT>/<DB_NAME>.db/<TABLE_NAME>/v_12/delta_000013_000015 ><WAREHOUSE_ROOT>/<DB_NAME>.db/<TABLE_NAME>/delta_00001_000011 -- 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: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 582309) Time Spent: 1h 10m (was: 1h) > Suffix the table location with UUID/txnId > ----------------------------------------- > > Key: HIVE-24906 > URL: https://issues.apache.org/jira/browse/HIVE-24906 > Project: Hive > Issue Type: Sub-task > Reporter: Denys Kuzmenko > Assignee: Denys Kuzmenko > Priority: Major > Labels: pull-request-available > Time Spent: 1h 10m > Remaining Estimate: 0h > > Suffixing the table location during create table with UUID/txnId can help in > deleting the data in asynchronous fashion. -- This message was sent by Atlassian Jira (v8.3.4#803005)