Class RexExecutorTest


  • public class RexExecutorTest
    extends java.lang.Object
    Unit test for RexExecutorImpl.
    • Field Detail

      • PLUS_RANDOM

        private static final org.apache.calcite.sql.SqlBinaryOperator PLUS_RANDOM
    • Constructor Detail

      • RexExecutorTest

        public RexExecutorTest()
    • Method Detail

      • check

        protected void check​(RexExecutorTest.Action action)
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testVariableExecution

        public void testVariableExecution()
                                   throws java.lang.Exception
        Tests an executor that uses variables stored in a DataContext. Can change the value of the variable and execute again.
        Throws:
        java.lang.Exception
      • testConstant

        public void testConstant()
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testConstant2

        public void testConstant2()
                           throws java.lang.Exception
        Reduces several expressions to constants.
        Throws:
        java.lang.Exception
      • checkConstant

        private void checkConstant​(java.lang.Object operand,
                                   java.util.function.Function<org.apache.calcite.rex.RexBuilder,​org.apache.calcite.rex.RexNode> function)
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSubstring

        public void testSubstring()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBinarySubstring

        public void testBinarySubstring()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDeterministic1

        public void testDeterministic1()
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDeterministic2

        public void testDeterministic2()
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDeterministic3

        public void testDeterministic3()
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSelfPopulatingList30

        public void testSelfPopulatingList30()