junit.framework.AssertionFailedError: expected result from cache when query runs twice


Solutions on the web422

Solution icon of github
expected result from cache when query runs twice

Solution icon of github
expected result from cache when query runs twice

Solution icon of github
expected query [select `customer`.`gender` as `c0` from `customer` as `customer`, `sales_fact_1997` as `sales_fact_1997` where `sales_fact_1997`.`customer_id` = `customer`.`customer_id` group by `customer`.`gender` order by ISNULL(`c0`) ASC, `c0` ASC] did not occur

Solution icon of github
expected query [select `customer`.`gender` as `c0` from `customer` as `customer`, `sales_fact_1997` as `sales_fact_1997` where `sales_fact_1997`.`customer_id` = `customer`.`customer_id` group by `customer`.`gender` order by ISNULL(`c0`) ASC, `c0` ASC] did not occur

Solution icon of github
via GitHub by lucboudreau
, 9 months ago
expected query [select `customer`.`gender` as `c0` from `customer` as `customer`, `sales_fact_1997` as `sales_fact_1997` where `sales_fact_1997`.`customer_id` = `customer`.`customer_id` group by `customer`.`gender` order by ISNULL('c0') ASC, `c0` ASC] did not occur

Solution icon of github
expected query [select `customer`.`gender` as `c0` from `customer` as `customer`, `sales_fact_1997` as `sales_fact_1997` where `sales_fact_1997`.`customer_id` = `customer`.`customer_id` group by `customer`.`gender` order by ISNULL(`c0`) ASC, `c0` ASC] did not occur

Solution icon of github
Validation of file succeeded when it should have failed expected:<false> but was:<true>

Solution icon of github
expected query [select `store`.`store_country` as `c0`, `store`.`store_state` as `c1` from `store` as `store` group by `store`.`store_country`, `store`.`store_state` having UPPER(c1) REGEXP '.*CA.*' order by ISNULL(`store`.`store_country`) ASC, `store`.`store_country` ASC, ISNULL(`store`.`store_state`) ASC, `store`.`store_state` ASC] did not occur

Stack trace

junit.framework.AssertionFailedError: expected result from cache when query runs twice
	at junit.framework.Assert.fail(Assert.java:47)
	at mondrian.rolap.BatchTestCase.checkNative(BatchTestCase.java:936)
	at mondrian.rolap.BatchTestCase.checkNative(BatchTestCase.java:997)
	at mondrian.olap.fun.NativizeSetFunDefTest.checkNative(NativizeSetFunDefTest.java:1501)
	at mondrian.olap.fun.NativizeSetFunDefTest.testRedundantLevelMembersFirst(NativizeSetFunDefTest.java:627)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

2 times, 6 months ago
5 times, 8 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
9 times, 8 months ago
Once, 9 months ago
28 more bugmates