deniskuzZ commented on code in PR #5173:
URL: https://github.com/apache/hive/pull/5173#discussion_r1546415961


##########
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/misc/truncate/TruncateTableAnalyzer.java:
##########
@@ -87,7 +87,7 @@ public void analyzeInternal(ASTNode root) throws 
SemanticException {
     ASTNode tableNode = (ASTNode) root.getChild(0); // TOK_TABLE_PARTITION
     String tableNameString = getUnescapedName((ASTNode) tableNode.getChild(0));
     Table table = getTable(tableNameString, true);
-    TableName tableName = HiveTableName.of(table);
+    TableName tableName = HiveTableName.ofNullable(table.getTableName(), 
table.getDbName(), table.getSnapshotRef());

Review Comment:
   i think we should add snapshot ref to HiveTableName.of



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to