Skip to content

Commit

Permalink
MONDRIAN: Fixes a failing test. The previous test query was relying o…
Browse files Browse the repository at this point in the history
…n the fact that a Filter function with the MATCHES operator would not be evaluated natively. Instead, we can define the calculated sets as straight out empty sets.

[git-p4: depot-paths = "//open/mondrian/": change = 14362]
  • Loading branch information
lucboudreau committed Jun 8, 2011
1 parent f4e350e commit db81914
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testsrc/main/mondrian/rolap/NonEmptyTest.java
Expand Up @@ -1156,9 +1156,9 @@ public void testExpandWithTwoEmptyInputs() {
"With "
+ "Set [*NATIVE_CJ_SET] as 'NonEmptyCrossJoin([*BASE_MEMBERS_Gender],[*BASE_MEMBERS_Product])' "
+ "Set [*BASE_MEMBERS_Measures] as '{[Measures].[*FORMATTED_MEASURE_0]}' "
+ "Set [*BASE_MEMBERS_Gender] as 'Filter([Gender].[Gender].Members,[Gender].CurrentMember.Name Matches (\"abc\"))' "
+ "Set [*BASE_MEMBERS_Gender] as '{}' "
+ "Set [*NATIVE_MEMBERS_Gender] as 'Generate([*NATIVE_CJ_SET], {[Gender].CurrentMember})' "
+ "Set [*BASE_MEMBERS_Product] as 'Filter([Product].[Product Name].Members, [Product].[Product Name].CurrentMember.Name Matches (\"abc\"))' "
+ "Set [*BASE_MEMBERS_Product] as '{}' "
+ "Set [*NATIVE_MEMBERS_Product] as 'Generate([*NATIVE_CJ_SET], {[Product].CurrentMember})' "
+ "Member [Measures].[*FORMATTED_MEASURE_0] as '[Measures].[Unit Sales]', FORMAT_STRING = '#,##0', SOLVE_ORDER=400 "
+ "Select "
Expand Down

0 comments on commit db81914

Please sign in to comment.