Skip to content

Commit

Permalink
load-data sort-columns fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NamanRastogi committed Jan 31, 2019
1 parent 9006224 commit ea52aca
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -206,7 +206,7 @@ case class CarbonLoadDataCommand(
* 4. Session property CARBON_OPTIONS_SORT_SCOPE
* 5. Default Sort Scope LOAD_SORT_SCOPE
*/
if (StringUtils.isBlank(tableProperties.get(CarbonCommonConstants.SORT_COLUMNS))) {
if (table.getNumberOfSortColumns == 0) {
// If tableProperties.SORT_COLUMNS is null
optionsFinal.put(CarbonCommonConstants.SORT_SCOPE,
SortScopeOptions.SortScope.NO_SORT.name)
Expand Down

0 comments on commit ea52aca

Please sign in to comment.