Details

    • New Feature
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • Optimizer
    • None

    Description

      In further development of MDEV-8320 make such conditions sargable:

      • YEAR(column) = const1 AND MONTH(column) <=> const2
      • YEAR(column) = const1 AND MONTH(column) BETWEEN const1 AND const2
      • YEAR(column) BETWEEN const1 AND const2
      • DATE(column) BETWEEN const1 AND const2

      Attachments

        Issue Links

          Activity

            It is fairly straightforward to extend the approach for MDEV-8320 to handle YEAR|DATE BETWEEN const AND const.

            Handling MONTH(...) is harder. In order to handle it, we need to know if YEAR() is fixed (or has a limited number of matching values)...

            psergei Sergei Petrunia added a comment - It is fairly straightforward to extend the approach for MDEV-8320 to handle YEAR|DATE BETWEEN const AND const . Handling MONTH(...) is harder. In order to handle it, we need to know if YEAR() is fixed (or has a limited number of matching values)...
            ahfa92 Ahmad Faruk added a comment -

            What will happen if the datetime column contains micro or miliseconds?

            ahfa92 Ahmad Faruk added a comment - What will happen if the datetime column contains micro or miliseconds?

            People

              psergei Sergei Petrunia
              oleg.smirnov Oleg Smirnov
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.