carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ravipesala <>
Subject [GitHub] incubator-carbondata pull request #635: [CARBONDATA-782]support SORT_COLUMNS
Date Mon, 20 Mar 2017 14:06:02 GMT
Github user ravipesala commented on a diff in the pull request:
    --- Diff: processing/src/main/java/org/apache/carbondata/processing/sortandgroupby/sortdata/
    @@ -193,20 +193,42 @@ public void startSorting() throws CarbonSortKeyAndGroupByException
           toSort = new Object[entryCount][];
           System.arraycopy(recordHolderList, 0, toSort, 0, entryCount);
    -      if (parameters.isUseKettle()) {
    -        if (parameters.getNoDictionaryCount() > 0) {
    -          Arrays.sort(toSort, new RowComparator(parameters.getNoDictionaryDimnesionColumn(),
    -              parameters.getNoDictionaryCount()));
    +      if (parameters.getNumberOfSortColumns() == 0) {
    --- End diff --
    I feel, we should not use the old flow.  If user don't specify sort_columns then we should
add all dimensions to sort_columns. In this way in our core/processing always depends upon
sort_columns, so that code would be clear.  We just always depends on the sort_columns in
our core code, please refactor the code in that way.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message