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
It seems when using a shared dimension, the values get cached for one of the dimensions, causing the results for the other dimension to be wrong.
This occurs in Mondrian 4.x, but seems ok in Mondrian 3.x. I tested this on 4.7.0.0-12.
Consider the following data
CREATE TABLE people (id INT AUTO_INCREMENT PRIMARY KEY, firstname VARCHAR(30) NOT NULL);
CREATE TABLE sales (id INT AUTO_INCREMENT PRIMARY KEY, amount INT, manager INT, assistant INT);
INSERT INTO people (firstname) values ('amber'),('ben'),('sam');
INSERT INTO sales (amount,manager,assistant) values (100,1,2),(200,2,3),(150,2,1);
It seems when using a shared dimension, the values get cached for one of the dimensions, causing the results for the other dimension to be wrong.
This occurs in Mondrian 4.x, but seems ok in Mondrian 3.x. I tested this on 4.7.0.0-12.
Consider the following data
And the following Mondrian Schema
And the following sample code
The output of which is:
We can see that after the Assistant dimension is used, filtering by the Manager dimension starts returning the wrong results.
The text was updated successfully, but these errors were encountered: