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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.11.0
    • Component/s: None
    • Labels:
      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. Jesus Camacho Rodriguez, what do you think?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                julianhyde Julian Hyde
                Reporter:
                julianhyde Julian Hyde
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: