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

SqlImplementor (RelToSql) doesn't handle join cond same as filter

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None

      Description

      If I have a join condition with an arbitrary expression, e.g.

        LogicalJoin(condition=[AND(=($0, $7), NOT(LIKE($2, ||('%', 'xyz', '%'))))], joinType=[inner])
      

      I get an AssertionError in convertConditionToSqlNode(). This method should pass the rel node to toSql() so it can't be handled the same is it would be in a filter over the join.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jbalint@gmail.com Jess Balint
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: