From 5ffb4e8e94b67ba749414b393980483e8373d326 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Mon, 9 Oct 2006 15:05:35 +0000 Subject: Add rule to check user preferences as index selection tie-breaker. --- .../amazon/carbonado/qe/TestUnionQueryAnalyzer.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/test/java/com/amazon/carbonado') diff --git a/src/test/java/com/amazon/carbonado/qe/TestUnionQueryAnalyzer.java b/src/test/java/com/amazon/carbonado/qe/TestUnionQueryAnalyzer.java index 7c92772..21d0b0c 100644 --- a/src/test/java/com/amazon/carbonado/qe/TestUnionQueryAnalyzer.java +++ b/src/test/java/com/amazon/carbonado/qe/TestUnionQueryAnalyzer.java @@ -385,7 +385,7 @@ public class TestUnionQueryAnalyzer extends TestCase { exec.printPlan(buf, 0, null); String plan = buf.toString(); - String expexted = + String expected = "union\n" + " sort: [+id]\n" + " index scan: com.amazon.carbonado.stored.StorableTestBasic\n" + @@ -399,7 +399,7 @@ public class TestUnionQueryAnalyzer extends TestCase { " ...range filter: id > ?\n"; // Test test will fail if the format of the plan changes. - assertEquals(expexted, plan); + assertEquals(expected, plan); } public void testComplexUnionPlan2() throws Exception { @@ -427,7 +427,7 @@ public class TestUnionQueryAnalyzer extends TestCase { exec.printPlan(buf, 0, null); String plan = buf.toString(); - String expexted = + String expected = "union\n" + " sort: [+stringProp]\n" + " index scan: com.amazon.carbonado.stored.StorableTestBasic\n" + @@ -438,7 +438,7 @@ public class TestUnionQueryAnalyzer extends TestCase { " ...identity filter: stringProp = ?\n"; // Test test will fail if the format of the plan changes. - assertEquals(expexted, plan); + assertEquals(expected, plan); } public void testComplexUnionPlan3() throws Exception { @@ -464,7 +464,7 @@ public class TestUnionQueryAnalyzer extends TestCase { exec.printPlan(buf, 0, null); String plan = buf.toString(); - String expexted = + String expected = "union\n" + " index scan: com.amazon.carbonado.stored.StorableTestBasic\n" + " ...index: {properties=[+stringProp, +doubleProp], unique=true}\n" + @@ -474,7 +474,7 @@ public class TestUnionQueryAnalyzer extends TestCase { " ...identity filter: stringProp = ?[2]\n"; // Test test will fail if the format of the plan changes. - assertEquals(expexted, plan); + assertEquals(expected, plan); } public void testComplexUnionPlan4() throws Exception { @@ -502,7 +502,7 @@ public class TestUnionQueryAnalyzer extends TestCase { exec.printPlan(buf, 0, null); String plan = buf.toString(); - String expexted = + String expected = "union\n" + " sort: [+id]\n" + " index scan: com.amazon.carbonado.stored.StorableTestBasic\n" + @@ -518,7 +518,7 @@ public class TestUnionQueryAnalyzer extends TestCase { " ...range filter: id > ?\n"; // Test test will fail if the format of the plan changes. - assertEquals(expexted, plan); + assertEquals(expected, plan); } public void testComplexUnionPlan5() throws Exception { @@ -546,7 +546,7 @@ public class TestUnionQueryAnalyzer extends TestCase { exec.printPlan(buf, 0, null); String plan = buf.toString(); - String expexted = + String expected = "union\n" + " index scan: com.amazon.carbonado.stored.StorableTestBasic\n" + " ...index: {properties=[+stringProp, +doubleProp], unique=true}\n" + @@ -560,6 +560,6 @@ public class TestUnionQueryAnalyzer extends TestCase { " ...range filter: id > ?\n"; // Test test will fail if the format of the plan changes. - assertEquals(expexted, plan); + assertEquals(expected, plan); } } -- cgit v1.2.3