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

Add test for RelMdPredicates pull up predicate from UNION when it's input predicates include NULL VALUE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.39.0
    • None

    Description

      The RelNode:

      LogicalUnion(all=[true])
        LogicalValues(tuples=[[{ NULL }]])
        LogicalValues(tuples=[[{ 131 }]])

       The predicate is '$0 == 131'

      LogicalUnion(all=[true])
        LogicalValues(tuples=[[{ 11 }]])
        LogicalValues(tuples=[[{ 131 }]])
      {pulled[SEARCH($0, Sarg[11, 131])]}

      The Predicate is SEARCH($0, Sarg[11, 131]).

      So the first RelNode's Predicate should be NONE or SEARCH($0, Sarg[null, 131]) or (NULL, =($0, 5)).

      Attachments

        Issue Links

          Activity

            People

              nobigo xiong duan
              nobigo xiong duan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: