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

Join on CASE causes AssertionError in RelToSqlConverter

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.26.0
    • 1.27.0
    • jdbc-adapter
    • None

    Description

      Basically  CALCITE-4610  but this time with a CASE WHEN. 

      I can provide a repro test if needed, but any join with a condition like in that same test

      CASE WHEN a = 'some_literal' THEN true ELSE c = 'some_other_literal' END

      The CASE travels through the pipeline, and the RelToSqlConverter crashes on it in convertConditionToSqlNode.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            julianhyde Julian Hyde
            swtalbot Steven Talbot
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment