deniskuzZ commented on code in PR #5541: URL: https://github.com/apache/hive/pull/5541#discussion_r1883902669
########## ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java: ########## @@ -14119,12 +14120,19 @@ ASTNode analyzeCreateTable( partColNames = getColumnNames(child); break; case HiveParser.TOK_ALTERTABLE_BUCKETS: - bucketCols = getColumnNames((ASTNode) child.getChild(0)); - if (child.getChildCount() == 2) { - numBuckets = Integer.parseInt(child.getChild(1).getText()); - } else { - sortCols = getColumnNamesOrder((ASTNode) child.getChild(1)); - numBuckets = Integer.parseInt(child.getChild(2).getText()); + switch(child.getChildCount()){ + case 1: + sortCols = getColumnNamesOrder((ASTNode) child.getChild(0)); Review Comment: why it's under TOK_ALTERTABLE_BUCKETS? -- 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