Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-1417

In RelBuilder, simplify "CAST(literal TO type)" to a literal when possible

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.11.0
    • None
    • None

    Description

      In CALCITE-1357 we added some logic (in DruidDateTimeUtils.leafToRanges) to recognize various combinations of literals, casts of literals and comparison operators, and I feel that logic would be simpler if we moved the logic into RexUtil and flattened the casts of literals to just plain literals. jcamachorodriguez, what do you think?

      Attachments

        Issue Links

          Activity

            People

              julianhyde Julian Hyde
              julianhyde Julian Hyde
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: