DRILL-1443: Enforce sort order when order by clause is used with select * query. Fix in optiq.
Project: http://git-wip-us.apache.org/repos/asf/incubator-drill/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-drill/commit/10e48476 Tree: http://git-wip-us.apache.org/repos/asf/incubator-drill/tree/10e48476 Diff: http://git-wip-us.apache.org/repos/asf/incubator-drill/diff/10e48476 Branch: refs/heads/master Commit: 10e48476920b57eb8e2ac72d3ba2c48bf158294a Parents: 0f28640 Author: Jinfeng Ni <[email protected]> Authored: Tue Sep 23 16:53:43 2014 -0700 Committer: Steven Phillips <[email protected]> Committed: Tue Sep 30 12:20:04 2014 -0700 ---------------------------------------------------------------------- .../src/test/java/org/apache/drill/TestExampleQueries.java | 4 ++-- pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/10e48476/exec/java-exec/src/test/java/org/apache/drill/TestExampleQueries.java ---------------------------------------------------------------------- diff --git a/exec/java-exec/src/test/java/org/apache/drill/TestExampleQueries.java b/exec/java-exec/src/test/java/org/apache/drill/TestExampleQueries.java index 342bef1..8ac7c7d 100644 --- a/exec/java-exec/src/test/java/org/apache/drill/TestExampleQueries.java +++ b/exec/java-exec/src/test/java/org/apache/drill/TestExampleQueries.java @@ -66,7 +66,7 @@ public class TestExampleQueries extends BaseTestQuery{ @Test public void testSelStarOrderByLimit() throws Exception{ - test("select * from cp.`employee.json` order by employee_id limit 2;"); + test("select * from cp.`employee.json` order by last_name limit 2;"); } @Test @@ -76,7 +76,7 @@ public class TestExampleQueries extends BaseTestQuery{ @Test public void testSelStarWhereOrderBy() throws Exception{ - test("select * from cp.`employee.json` where first_name = 'James' order by employee_id"); + test("select * from cp.`employee.json` where first_name = 'James' order by last_name"); } @Test http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/10e48476/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 3cc4f38..cf28f0c 100644 --- a/pom.xml +++ b/pom.xml @@ -881,7 +881,7 @@ <dependency> <groupId>net.hydromatic</groupId> <artifactId>optiq-core</artifactId> - <version>0.9-drill-r2</version> + <version>0.9-drill-r4</version> <exclusions> <exclusion> <groupId>org.jgrapht</groupId>
