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: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org