[ 
https://issues.apache.org/jira/browse/CALCITE-3397?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Danny Chen updated CALCITE-3397:
--------------------------------
    Component/s: core

> AssertionError for interpreter multiset
> ---------------------------------------
>
>                 Key: CALCITE-3397
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3397
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>            Reporter: Wang Yanlin
>            Assignee: Danny Chen
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.22.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> when interpretering sql 
> *select multiset['a', 'b', 'c']*
> got,
> {code:java}
> java.lang.AssertionError: interpreter: no implementation for class 
> org.apache.calcite.rel.core.Collect
>       at 
> org.apache.calcite.interpreter.Interpreter$CompilerImpl.visit(Interpreter.java:460)
>       at 
> org.apache.calcite.interpreter.Nodes$CoreCompiler.visit(Nodes.java:43)
>       at org.apache.calcite.rel.BiRel.childrenAccept(BiRel.java:46)
>       at 
> org.apache.calcite.interpreter.Interpreter$CompilerImpl.visit(Interpreter.java:447)
>       at 
> org.apache.calcite.interpreter.Nodes$CoreCompiler.visit(Nodes.java:43)
>       at org.apache.calcite.rel.SingleRel.childrenAccept(SingleRel.java:72)
>       at 
> org.apache.calcite.interpreter.Interpreter$CompilerImpl.visit(Interpreter.java:447)
>       at 
> org.apache.calcite.interpreter.Nodes$CoreCompiler.visit(Nodes.java:43)
>       at 
> org.apache.calcite.interpreter.Interpreter$CompilerImpl.visitRoot(Interpreter.java:405)
>       at 
> org.apache.calcite.interpreter.Interpreter.<init>(Interpreter.java:88)
>       at 
> org.apache.calcite.test.InterpreterTest.testInterpretMultiset(InterpreterTest.java:127)
> {code}
> Reproduce this with test case in InterpreterTest
> {code:java}
> @Test public void testInterpretMultiset() throws Exception {
>     final String sql = "select multiset['a', 'b', 'c']";
>     SqlNode parse = planner.parse(sql);
>     SqlNode validate = planner.validate(parse);
>     RelNode convert = planner.rel(validate).project();
>     final Interpreter interpreter = new Interpreter(dataContext, convert);
>     assertRows(interpreter, "[[a, b, c]]");
>   }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to