I have discovered CALCITE-760. That would seem to explain the problem: your estimate of row count for the inventory_fact_1997 table was 86837, should have been 4070. I fixed the row count and now the test suite completes. Will commit shortly.
I also changed the planner to disregard tiles (i.e. materialized views that are part of a lattice) when matching materialized views based on tables. Otherwise a huge number of materialized views are added to the search space. Tiles are considered later, using a more efficient algorithm.