Class DruidDateRangeRulesTest


  • public class DruidDateRangeRulesTest
    extends java.lang.Object
    Unit tests for DateRangeRules algorithms.
    • Constructor Detail

      • DruidDateRangeRulesTest

        public DruidDateRangeRulesTest()
    • Method Detail

      • testExtractYearAndMonthFromDateColumn

        public void testExtractYearAndMonthFromDateColumn()
      • testRangeCalc

        public void testRangeCalc()
      • testExtractYearAndDayFromDateColumn

        public void testExtractYearAndDayFromDateColumn()
      • testExtractYearMonthDayFromDateColumn

        public void testExtractYearMonthDayFromDateColumn()
      • testExtractYearMonthDayFromTimestampColumn

        public void testExtractYearMonthDayFromTimestampColumn()
      • checkDateRangeNoSimplify

        private void checkDateRangeNoSimplify​(RexImplicationCheckerTest.Fixture f,
                                              org.apache.calcite.rex.RexNode e,
                                              org.hamcrest.Matcher<java.lang.String> intervalMatcher)
      • checkDateRange

        private void checkDateRange​(RexImplicationCheckerTest.Fixture f,
                                    org.apache.calcite.rex.RexNode e,
                                    org.hamcrest.Matcher<java.lang.String> intervalMatcher)