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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.22.0
    • core
    • 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

              Unassigned Unassigned
              jbalint@gmail.com Jess Balint
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: