Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MONDRIAN: Fix MONDRIAN-1063, "Various issues preventing analyzer from…
… moving to olap4j". Here are the changes made, relating to the numbered issues listed in that case: > 5. Add support for annotations Added method "Map<String, Object> XmlaHandler.XmlaExtra.getAnnotationMap(MetadataElement)". I also made the implementations of org.olap4j.metadata.MetadataElement in MondrianOlap4jDriver (MondrianOlap4jCube, MondrianOlap4jDimension etc.) implement org.olap4j.OlapWrapper. Therefore you can call ((OlapWrapper) cube).unwrap(mondrian.olap.Annotated.class).get("foo") MetadataElement won't implement org.olap4j.OlapWrapper or java.sql.Wrapper until olap4j-1.1. That is a change that will break existing drivers. > 6. No format string on StandardMemberProperty > > 15. Need access to mondrian.olap.Property.FORMAT_EXP from within a Cell and > Member > > 7. Level member properties Added a new property "FORMAT_EXP", and made sure that it comes through the olap4j driver. You should specify 'DIMENSION PROPERTIES FORMAT_EXP' if you want it. > 10. Does level.getMembers include calculated members Fixed the javadoc. > 12. How to tell if a cell is drillable? Added cell property "ACTION_TYPE". You will have to ask for it in the CELL PROPERTIES clause of the query. The result is an integer bitmask. Bit MDACTION_TYPE_DRILLTHROUGH (0x100), will be set if you can drill through. > 13. Drill-through count. Added cell property "DRILLTHROUGH_COUNT". Value will be -1 if not drillable. You will have to ask for it in the CELL PROPERTIES clause of the query. Use with caution; may be expensive to evaluate. > 17. OlapException needs to pass through the underlying > ResourceLimitExceededException, QueryTimeoutException and > MondrianEvaluationException. The underlying exception is there, if you call getCause(). Furthermore, getSQLState() in these cases will return "ResourceLimitExceeded", "QueryTimeout", "EvaluationException". [git-p4: depot-paths = "//open/mondrian/": change = 14886]
- Loading branch information
1 parent
f96086a
commit ed40aed
Showing
26 changed files
with
577 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.