GitHub user ravipesala opened a pull request: https://github.com/apache/incubator-carbondata/pull/666
[CARBONDATA-530] Keep the CarbonDecoder on top of limit in case of limit+sort plan There is a new optimization in spark2.1, it can group limit and sort together and get the topN efficiently. so we should put outer decoder above limit to make use of this optimization. You can merge this pull request into a Git repository by running: $ git pull https://github.com/ravipesala/incubator-carbondata limitplan-push Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-carbondata/pull/666.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 #666 ---- commit efc6887306db0eb555607fdcce5c13b9249691cc Author: ravipesala <ravi.pes...@gmail.com> Date: 2017-03-16T19:18:26Z Modified optimizer to place decoder on top of limit in case of sort and limit. ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---