Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MONDRIAN-845: Have RolapNamedSetEvaluator#IterableCollection
implement List, to prevent a copy from iterable -> list when calling .evaluateList() on an expression derived from a NamedSet. This has 2 consequences in the unit test suite: 1) the list returned from .evaluateList() is no longer guaranteed to be mutable. Since there's a ResultStyle.IMMUTABLE_LIST, though, seems like this guarantee was more based on implementation than on the contract? 2) NamedSetTest#testCurrentAndCurrentOrdinal modified to actually return what looks like the desired behavior anyway. Don't entirely understand why the context is now available but wasn't before, but this behavior seems more correct. Contributed by Joe Barnett [git-p4: depot-paths = "//open/mondrian-release/3.2/": change = 14007]
- Loading branch information
1 parent
2b93699
commit fe8e0b7
Showing
3 changed files
with
115 additions
and
44 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