You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see, Mondrian decided for some reason that "fact2" row contains only values of "1", which is wrong - it leads to all data being ignored from rows where "fact1" is 3, and for some data where "fact1" differs from 3.
Removing "fact2dim" from schema file leads to the results being correct once again (EXPECTED):
For me that seems like a bug, but maybe it is some expected/undefined behavior? I could not find any mention of it anywhere.
The text was updated successfully, but these errors were encountered:
kamil-sita
changed the title
Mondrian ignores rows on dimensions not present in MDX but present in schema due to optimizations
Mondrian ignores rows on dimensions not present in MDX but present in schema
Aug 10, 2020
SETUP
Mondrian version 9.2.0.0-6, but I'm pretty sure it's reproducible on all versions.
I have created this rather simple database with one table:
(database is PostgreSQL 12.2 64bit, but I'm sure it's not related as this problem appears with other databases as well).
With following schema file and basic code:
PROBLEM
Running the code results in the following:
With final SQL query being:
Which seems correct. However, changing the query from:
to
without changing schema file results in the following (FACTUAL):
With final SQL query being:
As you can see, Mondrian decided for some reason that "fact2" row contains only values of "1", which is wrong - it leads to all data being ignored from rows where "fact1" is 3, and for some data where "fact1" differs from 3.
Removing "fact2dim" from schema file leads to the results being correct once again (EXPECTED):
which is what I would expect from query that does not use dimensions that exist in schema file. SQL query for this query was:
For me that seems like a bug, but maybe it is some expected/undefined behavior? I could not find any mention of it anywhere.
The text was updated successfully, but these errors were encountered: