zratkai commented on code in PR #5541:
URL: https://github.com/apache/hive/pull/5541#discussion_r1904081530


##########
ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java:
##########
@@ -966,15 +967,10 @@ protected List<Order> getColumnNamesOrder(ASTNode ast) 
throws SemanticException
       ASTNode child = (ASTNode) ast.getChild(i);
       int directionCode = 
DirectionUtils.tokenToCode(child.getToken().getType());
       child = (ASTNode) child.getChild(0);
-      if (child.getToken().getType() != HiveParser.TOK_NULLS_FIRST && 
directionCode == DirectionUtils.ASCENDING_CODE) {
-        throw new SemanticException(
-                "create/alter bucketed table: not supported NULLS LAST for 
SORTED BY in ASC order");
-      }
-      if (child.getToken().getType() != HiveParser.TOK_NULLS_LAST && 
directionCode == DirectionUtils.DESCENDING_CODE) {
-        throw new SemanticException(
-                "create/alter bucketed table: not supported NULLS FIRST for 
SORTED BY in DESC order");
-      }
-      colList.add(new 
Order(unescapeIdentifier(child.getChild(0).getText()).toLowerCase(), 
directionCode));
+      Order order = new 
Order(unescapeIdentifier(child.getChild(0).getText()).toLowerCase(), 
directionCode);
+      order.setNullOrdering(child.getToken().getType()== 
HiveParser.TOK_NULLS_FIRST?

Review Comment:
   Not relevant anymore.



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