Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-3397

AssertionError for interpreter multiset

    XMLWordPrintableJSON

Details

    Description

      when interpretering sql 

      select multiset['a', 'b', 'c']

      got,

      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)
      

      Reproduce this with test case in InterpreterTest

      @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]]");
        }
      

      Attachments

        Issue Links

          Activity

            People

              danny0405 Danny Chen
              yanlin-Lynn Wang Yanlin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m