vikramahuja1001 commented on code in PR #6013: URL: https://github.com/apache/hive/pull/6013#discussion_r2276317188
########## parser/src/java/org/apache/hadoop/hive/ql/parse/AlterClauseParser.g: ########## @@ -104,6 +104,7 @@ alterTblPartitionStatementSuffix[boolean partition] | alterStatementSuffixRenameCol | alterStatementSuffixAddCol | alterStatementSuffixDropCol + | alterStatementSuffixSetDefaultPartition Review Comment: Yes, makes sense. Changed the same. ########## ql/src/java/org/apache/hadoop/hive/ql/ddl/table/partition/PartitionUtils.java: ########## @@ -191,4 +192,17 @@ public static void addTablePartsOutputs(Hive db, Set<WriteEntity> outputs, Table } } } + + public static String getDefaultPartitionName(Map<String, String> tableParams, HiveConf conf) { + return getDefaultPartitionName(tableParams, HiveConf.getVar(conf, HiveConf.ConfVars.DEFAULT_PARTITION_NAME)); + } + + public static String getDefaultPartitionName(Map<String, String> tableParams, String defaultPartitionName) { Review Comment: Yes, unified it. -- 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