Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.21.0
Description
It can be reproduced by the following test.
// MaterializationTest.java @Test public void testAggregate7() { try (TryThreadLocal.Memo ignored = Prepare.THREAD_TRIM.push(true)) { MaterializationService.setThreadLocal(); CalciteAssert.that() .withMaterializations( HR_FKUK_MODEL, "m0", "select 11 as \"empno\", 22 as \"sal\", count(*) from \"emps\" group by 11, 22") .query( "select * from\n" + "(select 11 as \"empno\", 22 as \"sal\", count(*)\n" + "from \"emps\" group by 11, 22) tmp\n" + "where \"sal\" = 33") .enableMaterializations(true) .explainContains("EnumerableValues(tuples=[[]])"); } }
Attachments
Issue Links
- links to