Krisztian Kasa created HIVE-25063:
-------------------------------------

             Summary: Enforce hive.default.nulls.last when enforce bucketing
                 Key: HIVE-25063
                 URL: https://issues.apache.org/jira/browse/HIVE-25063
             Project: Hive
          Issue Type: Bug
            Reporter: Krisztian Kasa
            Assignee: Krisztian Kasa


When creating ReduceSink operator for bucketing the sort key null sort order is 
hardcoded:
{code}
      for (int sortOrder : sortOrders) {
        order.append(DirectionUtils.codeToSign(sortOrder));
        nullOrder.append(sortOrder == DirectionUtils.ASCENDING_CODE ? 'a' : 
'z');
      }
{code}

It should depend on both the setting hive.default.nulls.last and the order 
direction.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to