GitHub user dhatchayani opened a pull request: https://github.com/apache/carbondata/pull/2806
[CARBONDATA-2998] Refresh column schema for old store(before V3) for SORT_COLUMNS option **Problem:** For old store, store before V3, SORT_COLUMN option is not set in ColumnSchema, but considered as SORT_COLUMNS. So, while refreshing the table it will try to read from the thrift and make it as no sort column in ColumnSchema as it is not set before. **Solution:** While refreshing the table, check for the SORT_COLUMN property in the table properties and if nothing is set, then by default take all the dimension columns as SORT_COLUMNS. - [ ] Any interfaces changed? - [ ] Any backward compatibility impacted? - [ ] Document update required? - [ ] Testing done - [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA. You can merge this pull request into a Git repository by running: $ git pull https://github.com/dhatchayani/carbondata CARBONDATA-2998 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/carbondata/pull/2806.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #2806 ---- commit 69609e3ed42e8e3a675d36479ffd7506f0d832ab Author: dhatchayani <dhatcha.official@...> Date: 2018-10-09T12:04:42Z [CARBONDATA-2998] Refresh column schema for old store(before V3) for SORT_COLUMNS option ---- ---