Skip to content

Commit

Permalink
MONDRIAN: Fix Access test for distinct-count.
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//open/mondrian/": change = 8787]
  • Loading branch information
julianhyde committed Feb 26, 2007
1 parent 90a2f66 commit 7ece54c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions testsrc/main/mondrian/rolap/TestAggregationManager.java
Expand Up @@ -302,7 +302,7 @@ public void testNonEmptyCrossJoinLoneAxis() {
};
// For derby, the TestAggregationManager.testNonEmptyCrossJoinLoneAxis
// test fails if the non-empty crossjoin optimizer is used.
// With it on one gets a recursive call coming through the
// With it on one gets a recursive call coming through the
// RolapEvaluator.getCachedResult.
SqlQuery.Dialect d = TestContext.instance().getDialect();
int opSize = 0;
Expand Down Expand Up @@ -351,9 +351,9 @@ public void testCountDistinctAggMiss() {
new SqlPattern(
SqlPattern.ACCESS_DIALECT,
"select" +
" d0 as `c0`," +
" d1 as `c1`," +
" count(m0) as `c2` " +
" `d0` as `c0`," +
" `d1` as `c1`," +
" count(`m0`) as `c2` " +
"from (" +
"select distinct `time_by_day`.`the_year` as `d0`, " +
"`time_by_day`.`quarter` as `d1`, " +
Expand All @@ -366,7 +366,7 @@ public void testCountDistinctAggMiss() {
"`time_by_day`.`the_year` = 1997 and " +
"`time_by_day`.`quarter` = 'Q1'" +
") as `dummyname` " +
"group by d0, d1",
"group by `d0`, `d1`",
26
),
new SqlPattern(
Expand Down Expand Up @@ -455,10 +455,10 @@ public void testCountDistinctCannotRollup() {
new SqlPattern(
SqlPattern.ACCESS_DIALECT,
"select" +
" d0 as `c0`," +
" d1 as `c1`," +
" d2 as `c2`," +
" count(m0) as `c3` " +
" `d0` as `c0`," +
" `d1` as `c1`," +
" `d2` as `c2`," +
" count(`m0`) as `c3` " +
"from (" +
"select distinct `time_by_day`.`the_year` as `d0`," +
" `time_by_day`.`quarter` as `d1`," +
Expand All @@ -474,7 +474,7 @@ public void testCountDistinctCannotRollup() {
" and `sales_fact_1997`.`product_id` = `product`.`product_id`" +
" and `product`.`product_class_id` = `product_class`.`product_class_id`" +
" and `product_class`.`product_family` = 'Food') as `dummyname` " +
"group by d0, d1, d2",
"group by `d0`, `d1`, `d2`",
23)
};

Expand Down

0 comments on commit 7ece54c

Please sign in to comment.