I'd appreciate some help with the JIRA below. I'm using Hook.TRIMMED to expose materialized views to the adapter and a test which checks that the view can be used for query rewriting is failing about 50% of the time. I don't see why there should be any non-determinism here so any ideas appreciated :)
https://issues.apache.org/jira/browse/CALCITE-2423 -- Michael Mior mm...@apache.org