I was trying some examples, the first being the EndToEndExampleBindable:
https://github.com/zabetak/calcite/blob/demo-january-2021/core/src/test/java/org/apache/calcite/examples/foodmart/java/EndToEndExampleBindable.java

This worked fine for me, but when I attempted to use the pattern in
EndToEndExampleEnumerable:
https://github.com/zabetak/calcite/blob/demo-january-2021/core/src/test/java/org/apache/calcite/examples/foodmart/java/EndToEndExampleEnumerable.java

I am getting the following error message:
Suppressed: java.lang.UnsupportedOperationException: null
at
org.apache.calcite.adapter.enumerable.EnumerableProject.implement(EnumerableProject.java:91)
at
org.apache.calcite.adapter.enumerable.EnumerableRelImplementor.implementRoot(EnumerableRelImplementor.java:114)
... 53 common frames omitted

from the line:
Bindable<Object[]> executablePlan = EnumerableInterpretable.toBindable(
        new HashMap<>(),
        null,
        (EnumerableRel) phyPlan,
        EnumerableRel.Prefer.ARRAY);

I'm confused how the EnumerableProject implement method has this
java.lang.UnsupportedOperationException, and what am I missing. I'm not
quite connecting the dots on this, and how it should look.

Thank you!
Eric

Reply via email to