Class Bug
Cleanup items
The following is a list of cleanup items. They are not bugs per se: functionality is not wrong, just the organization of the code. If they were bugs, they would be in jira. It makes sense to have the list here, so that referenced class, method and variable names show up as uses in code searches.- Obsolete
Id.Segment
- Replace it by
IdentifierSegment
. LikewiseId.Quoting
withQuoting
. Should wait until after the mondrian 4 'big bang', because there are ~300 uses of Segment in the code.
- Since:
- Oct 11, 2006
- Author:
- jhyde
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
Whether bug MONDRIAN-1001, "Tests disabled due to property trigger issues" is fixed.static final boolean
Whether MONDRIAN-207, "IS EMPTY and IS NULL" is fixed.static final boolean
Whether MONDRIAN-229, "NON EMPTY when hierarchy's default member is not 'all'" is fixed.static final boolean
static final boolean
Whether bug MONDRIAN-1001, "Tests disabled due to property trigger issues" is fixed.static final boolean
static final boolean
Whether bug MONDRIAN-314, "Predicate sometimes has null RolapStar.Column" is fixed.static final boolean
static final boolean
Whether bug MONDRIAN-361, "Aggregate Tables not working with Shared Dimensions" is fixed.static final boolean
Whether bug MONDRIAN-441, "Parent-child hierarchies: <Join> used in dimension" is fixed.static final boolean
Whether bug MONDRIAN-446, "Make Native NonEmpty consistant with MSAS" is fixed.static final boolean
Whether bug MONDRIAN-486, "HighCardinalityTest test cases disabled" is fixed.static final boolean
Whether bug MONDRIAN-495, "Table filter concept does not support dialects." is fixed.static final boolean
Whether bug MONDRIAN-503, "RolapResultTest disabled" is fixed.static final boolean
Whether bug MONDRIAN-555, "Compound slicer counts cells twice in certain cases" is fixed.static final boolean
static final boolean
static final boolean
static final boolean
Whether bug MONDRIAN-687, "Format treats negative numbers differently than SSAS" is fixed.static final boolean
static final boolean
static final boolean
Whether bug MONDRIAN-785, "Native evaluation does not respect ordering" is fixed.static final boolean
Whether RolapCubeMember and RolapMember have been fully segregated; any piece of code should be working with one or the other, not both.static final boolean
static final boolean
Whether Mondrian is 100% compatible with Microsoft Analysis Services 2005. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
avoidMemoryOverflow
(Dialect dialect) Returns whether to avoid a test because the memory monitor may cause it to fail.static boolean
avoidSlowTestOnLucidDB
(Dialect dialect) Returns true if we are running againstDialect.DatabaseProduct.LUCIDDB
and we wish to avoid slow tests.static boolean
olap4jUpgrade
(String reason) If you want to tag a piece of code in mondrian that needs to be changed when we upgrade to a future version of olap4j, reference this function.
-
Field Details
-
Ssas2005Compatible
public static final boolean Ssas2005CompatibleWhether Mondrian is 100% compatible with Microsoft Analysis Services 2005. We know that it is not, so this constant isfalse
.Use this field to flag test cases whose behavior is intentionally different from SSAS. If the behavior is unintentionally different and something we want to fix, log a bug, add a new
BugMondrianXxxFixed
constant to this class, and make the test case conditional on that constant instead.See also the property
MondrianProperties.SsasCompatibleNaming
, which allows the user to choose certain behaviors which are compatible with SSAS 2005 but incompatible with Mondrian's previous behavior.- See Also:
-
BugMondrian229Fixed
public static final boolean BugMondrian229FixedWhether MONDRIAN-229, "NON EMPTY when hierarchy's default member is not 'all'" is fixed.- See Also:
-
Checkin7641UseOptimizer
public static final boolean Checkin7641UseOptimizer- See Also:
-
BugMondrian207Fixed
public static final boolean BugMondrian207FixedWhether MONDRIAN-207, "IS EMPTY and IS NULL" is fixed.- See Also:
-
BugMondrian446Fixed
public static final boolean BugMondrian446FixedWhether bug MONDRIAN-446, "Make Native NonEmpty consistant with MSAS" is fixed.- See Also:
-
BugMondrian313Fixed
public static final boolean BugMondrian313Fixed- See Also:
-
BugMondrian314Fixed
public static final boolean BugMondrian314FixedWhether bug MONDRIAN-314, "Predicate sometimes has null RolapStar.Column" is fixed.- See Also:
-
BugMondrian328Fixed
public static final boolean BugMondrian328Fixed- See Also:
-
BugMondrian361Fixed
public static final boolean BugMondrian361FixedWhether bug MONDRIAN-361, "Aggregate Tables not working with Shared Dimensions" is fixed.- See Also:
-
BugMondrian441Fixed
public static final boolean BugMondrian441FixedWhether bug MONDRIAN-441, "Parent-child hierarchies: <Join> used in dimension" is fixed.- See Also:
-
BugMondrian486Fixed
public static final boolean BugMondrian486FixedWhether bug MONDRIAN-486, "HighCardinalityTest test cases disabled" is fixed.- See Also:
-
BugMondrian495Fixed
public static final boolean BugMondrian495FixedWhether bug MONDRIAN-495, "Table filter concept does not support dialects." is fixed.- See Also:
-
BugMondrian503Fixed
public static final boolean BugMondrian503FixedWhether bug MONDRIAN-503, "RolapResultTest disabled" is fixed.- See Also:
-
BugMondrian555Fixed
public static final boolean BugMondrian555FixedWhether bug MONDRIAN-555, "Compound slicer counts cells twice in certain cases" is fixed. If a set in the slicer contains the same member more than once, or more generally, if the regions overlap, then mondrian counts the overlaps twice, whereas SSAS 2005 does not.- See Also:
-
BugMondrian584Fixed
public static final boolean BugMondrian584FixedWhether bug MONDRIAN-584, "Native evaluation returns enumerated members in the wrong order" is fixed. A query that includes { Gender.M, Gender.F } should return results where the Gender.M values are returned before the Gender.F values.- See Also:
-
BugMondrian641Fixed
public static final boolean BugMondrian641Fixed- See Also:
-
BugMondrian648Fixed
public static final boolean BugMondrian648FixedWhether bug MONDRIAN-648, "AS operator has lower precedence than required by MDX specification" is fixed.- See Also:
-
BugMondrian687Fixed
public static final boolean BugMondrian687FixedWhether bug MONDRIAN-687, "Format treats negative numbers differently than SSAS" is fixed.- See Also:
-
BugMondrian747Fixed
public static final boolean BugMondrian747FixedWhether bug bug MONDRIAN-747, "When joining a shared dimension into a cube at a level other than its leaf level, Mondrian gives wrong results" is fixed.- See Also:
-
BugMondrian759Fixed
public static final boolean BugMondrian759FixedWhether bug MONDRIAN-759, "use dynamic parameters and PreparedStatement for frequently executed SQL patterns" is fixed.- See Also:
-
BugMondrian785Fixed
public static final boolean BugMondrian785FixedWhether bug MONDRIAN-785, "Native evaluation does not respect ordering" is fixed.- See Also:
-
BugMondrian1001Fixed
public static final boolean BugMondrian1001FixedWhether bug MONDRIAN-1001, "Tests disabled due to property trigger issues" is fixed.- See Also:
-
BugMondrian2452Fixed
public static final boolean BugMondrian2452FixedWhether bug MONDRIAN-1001, "Tests disabled due to property trigger issues" is fixed.- See Also:
-
BugMondrian2440Fixed
public static final boolean BugMondrian2440FixedWhether bug MONDRIAN-1001, "Error when using aggregation tables with a hierarchy that has a visible level behind restricted" is fixed.- See Also:
-
BugSegregateRolapCubeMemberFixed
public static final boolean BugSegregateRolapCubeMemberFixedWhether RolapCubeMember and RolapMember have been fully segregated; any piece of code should be working with one or the other, not both.- See Also:
-
-
Constructor Details
-
Bug
public Bug()
-
-
Method Details
-
olap4jUpgrade
If you want to tag a piece of code in mondrian that needs to be changed when we upgrade to a future version of olap4j, reference this function. It will always return false. -
avoidMemoryOverflow
Returns whether to avoid a test because the memory monitor may cause it to fail.Some tests fail if memory monitor is switched on, and Access and Derby tend to use a lot of memory because they are embedded.
- Parameters:
dialect
- Dialect- Returns:
- Whether to avoid a test
-
avoidSlowTestOnLucidDB
Returns true if we are running againstDialect.DatabaseProduct.LUCIDDB
and we wish to avoid slow tests.This is because some tests involving parent-child hierarchies are very slow. If we are running performance tests (indicated by the
mondrian.test.PerforceTest
logger set atorg.apache.log4j.Level#DEBUG
or higher), we expect the suite to take a long time, so we enable the tests.Fixing either
MONDRIAN-759
or FRG-400, "rewrite statements containing literals to use internally-managed dynamic parameters instead" would solve the problem.- Returns:
- Whether we are running LucidDB and we wish to avoid slow tests.
-