public class FilterTest extends BatchTestCase
BatchTestCase.Bomb, BatchTestCase.CellRequestConstraint, BatchTestCase.TestCase, BatchTestCase.TestListenercubeNameSales, fieldGender, fieldProductDepartment, fieldProductFamily, fieldValueProductDepartment, fieldValuesGender, fieldValuesProductFamily, fieldValuesYear, fieldYear, measureUnitSales, tableCustomer, tableProductClass, tableTimepropSaver| Constructor and Description |
|---|
FilterTest() |
FilterTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
void |
testBug779()
Tests the bug MONDRIAN-779.
|
void |
testBugMondrian706()
|
void |
testCachedNativeSetUsingFilters() |
void |
testCmNativeFilter()
Executes a Filter() whose condition contains a calculated member.
|
void |
testInFilterAND() |
void |
testInFilterNonNative()
Here the filter is above (rather than as inputs to) the NECJ.
|
void |
testInFilterSimple() |
void |
testIsFilterSimple() |
void |
testMixedInIsFilters() |
void |
testMultiValueInWithNullVals()
http://jira.pentaho.com/browse/MONDRIAN-1458
When using a multi value IN clause which includes null values
against a collapsed field on an aggregate table, the dimension table
field was referenced as the column expression, causing sql errors.
|
void |
testNativeFilter() |
void |
testNativeFilterNonEmpty()
Verify that filter with Not IsEmpty(storedMeasure) can be natively
evaluated.
|
void |
testNativeFilterWithNullMeasure() |
void |
testNonNativeFilterWithCalcMember() |
void |
testNonNativeFilterWithNullMeasure() |
void |
testNotInFilterExcludeNullMember()
Test that if Null member is explicitly excluded, then the native filter
SQL should filter out null members.
|
void |
testNotInFilterKeepNullMember()
Test that if Null member is not explicitly excluded, then the native
filter SQL should not filter out null members.
|
void |
testNotInFilterSimple() |
void |
testNotInMultiLevelMemberConstraintMixedNullNonNullParent()
Test that null members are included when the filter explicitly excludes
certain members that contain nulls.
|
void |
testNotInMultiLevelMemberConstraintNonNullParent()
Test that null members are included when the filter excludes members
that contain multiple levels, but none being null.
|
void |
testNotInMultiLevelMemberConstraintNonNullSameParent()
Test that null members are included when the filter excludes members
that contain multiple levels, but none being null.
|
void |
testNotInMultiLevelMemberConstraintSingleNullParent()
Test that null members are included when the filter explicitly excludes
a single member that has a null.
|
void |
testNotIsFilterSimple() |
void |
testTopCountOverInFilter() |
assertNative, assertNoQuerySql, assertNotNative, assertQuerySql, assertQuerySql, assertQuerySql, assertQuerySqlOrNot, assertRequestSql, assertRequestSql, checkNative, checkNative, checkNative, checkNotNative, checkNotNative, checkNotNative, clearAndHardenCache, createBatch, createBatch, createRequest, createRequest, createRequest, createRequest, dialectize, executeQuery, getCube, getFoodMartConnection, getGroupingSet, getMeasure, getRegistry, makeConstraintCountryState, makeConstraintProductFamilyDepartment, makeConstraintYearQuarterMonth, mysqlPattern, sqlPatternallMember, assertAxisReturns, assertAxisThrows, assertBooleanExprReturns, assertExprReturns, assertExprThrows, assertQueriesReturnSimilarResults, assertQueryReturns, assertQueryThrows, assertSize, cubeByName, execute, executeExpr, executeQuery, executeSingletonAxis, genderMembersIncludingAll, getConnection, getDimensionWithName, getTestContext, isDefaultNullMemberRepresentation, isGroupingSetsSupported, member, productMembersPotScrubbersPotsAndPans, storeMembersCAAndOR, storeMembersUsaAndCanada, tearDown, verifySameNativeAndNot, warehouseMembersCanadaMexicoUsacountTestCases, createResult, getName, run, run, runBare, runTest, setName, toStringassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, failpublic FilterTest()
public FilterTest(String name)
protected void setUp()
throws Exception
setUp in class junit.framework.TestCaseExceptionpublic void testInFilterNonNative()
throws Exception
To expand on this case, RolapNativeFilter needs to be improved so it knows how to represent the dimension filter constraint. Currently the FilterConstraint is only used for filters on measures.
Exceptionpublic void testNotInFilterKeepNullMember()
throws Exception
Exceptionpublic void testNotInFilterExcludeNullMember()
throws Exception
Exceptionpublic void testNotInMultiLevelMemberConstraintNonNullParent()
public void testNotInMultiLevelMemberConstraintNonNullSameParent()
public void testNotInMultiLevelMemberConstraintMixedNullNonNullParent()
public void testNotInMultiLevelMemberConstraintSingleNullParent()
public void testCachedNativeSetUsingFilters()
throws Exception
Exceptionpublic void testNativeFilter()
public void testCmNativeFilter()
public void testNonNativeFilterWithNullMeasure()
public void testNativeFilterWithNullMeasure()
public void testNonNativeFilterWithCalcMember()
public void testNativeFilterNonEmpty()
public void testBugMondrian706()
public void testBug779()
MemberListCrossJoinArg
was not considering the 'exclude' attribute in its hash code.
This resulted in two filters being chained within two different
named sets to register a cache element with the same key, even
though they were the different because of the added "NOT" keyword.public void testMultiValueInWithNullVals()