Class RexBuilderTest


  • public class RexBuilderTest
    extends java.lang.Object
    Test for RexBuilder.
    • Constructor Detail

      • RexBuilderTest

        public RexBuilderTest()
    • Method Detail

      • testEnsureTypeWithAny

        public void testEnsureTypeWithAny()
        Test RexBuilder.ensureType()
      • testEnsureTypeWithItself

        public void testEnsureTypeWithItself()
        Test RexBuilder.ensureType()
      • testEnsureTypeWithDifference

        public void testEnsureTypeWithDifference()
        Test RexBuilder.ensureType()
      • testTimestampLiteral

        public void testTimestampLiteral()
        Tests RexBuilder.makeTimestampLiteral(TimestampString, int).
      • checkTimestamp

        private void checkTimestamp​(org.apache.calcite.rex.RexNode node)
      • testTimestampWithLocalTimeZoneLiteral

        public void testTimestampWithLocalTimeZoneLiteral()
        Tests RexBuilder.makeTimestampWithLocalTimeZoneLiteral(TimestampString, int).
      • checkTimestampWithLocalTimeZone

        private void checkTimestampWithLocalTimeZone​(org.apache.calcite.rex.RexNode node)
      • testTimeLiteral

        public void testTimeLiteral()
        Tests RexBuilder.makeTimeLiteral(TimeString, int).
      • checkTime

        private void checkTime​(org.apache.calcite.rex.RexNode node)
      • testDateLiteral

        public void testDateLiteral()
        Tests RexBuilder.makeDateLiteral(DateString).
      • checkDate

        private void checkDate​(org.apache.calcite.rex.RexNode node)
      • testDateStringYearError

        public void testDateStringYearError()
        Tests DateString year range.
      • testDateStringMonthError

        public void testDateStringMonthError()
        Tests DateString month range.
      • testDateStringDayError

        public void testDateStringDayError()
        Tests DateString day range.
      • testTimeStringHourError

        public void testTimeStringHourError()
        Tests TimeString hour range.
      • testTimeStringMinuteError

        public void testTimeStringMinuteError()
        Tests TimeString minute range.
      • testTimeStringSecondError

        public void testTimeStringSecondError()
        Tests TimeString second range.
      • testStringLiteral

        public void testStringLiteral()
        Test string literal encoding.
      • testBigDecimalLiteral

        public void testBigDecimalLiteral()
        Tests RexBuilder.makeExactLiteral(java.math.BigDecimal).
      • testCopyOver

        public void testCopyOver()
        Tests RexCopier.visitOver(RexOver)
      • testCopyCorrelVariable

        public void testCopyCorrelVariable()
        Tests RexCopier.visitCorrelVariable(RexCorrelVariable)
      • testCopyLocalRef

        public void testCopyLocalRef()
        Tests RexCopier.visitLocalRef(RexLocalRef)
      • testCopyDynamicParam

        public void testCopyDynamicParam()
        Tests RexCopier.visitDynamicParam(RexDynamicParam)
      • testCopyRangeRef

        public void testCopyRangeRef()
        Tests RexCopier.visitRangeRef(RexRangeRef)
      • checkBigDecimalLiteral

        private void checkBigDecimalLiteral​(org.apache.calcite.rex.RexBuilder builder,
                                            java.lang.String val)