Details
-
Sub-task
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.1.2
-
None
Description
A Mappings.NoElementException happens on an edge condition for a query using a materialized view.
The query contains a "group by" clause which contains fields from both sides of a join. There is no real reason to group by this same field twice, but there is also no reason that this shouldn't succeed.
Attached is a script which causes this failure. The query causing the problem looks like this:
explain extended select sum(1)
from fact inner join dim1
on fact.f1 = dim1.pk1
group by f1, pk1;
Attachments
Attachments
Issue Links
- Is contained by
-
HIVE-23456 Upgrade Calcite version to 1.25.0
- Closed
- relates to
-
CALCITE-3848 Rewriting for materialized view consisting of group by on join keys fails with Mappings$NoElementException
- Closed
-
CALCITE-3862 Materialized view rewriting algorithm throws IndexOutOfBoundsException
- Closed