Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-14133 Improve batch sql and hive integrate performance milestone-1
  3. FLINK-14789

extends max/min type in ColumnStats from Number to Comparable

    XMLWordPrintableJSON

Details

    Description

      Many tpc-ds queries have predicates on date, like d_date between '1999-02-01' and (cast('1999-02-01' as date) + INTERVAL '60' day), It's very useful to find a better plan if the planner knows the max/min values of date. However, max/min in ColumnStats only support Number type currently. This issue aims to extend max/min type from Number to Comparable, and then Date, Time, Timestamp even String could be supported.

      Attachments

        Issue Links

          Activity

            People

              godfreyhe godfrey he
              godfreyhe godfrey he
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 20m
                  20m