Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-5328

Query match join error

Agile BoardAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 5.0-alpha
    • 5.0-beta
    • Query Engine
    • None

    Description

      Setting `kylin.query.join-match-optimization-enabled=true`, we can use the left join model to answer the inner join query statement. But it encounters a bug.

      For example:

      The model is as follows,

      lineorder
      inner join customer on lineorder.lo_custkey = customer.c_custkey
      left join dates on lineorder.lo_orderdate = dates.d_datekey
      

      The query statement is as follows can match this model,

      select lineorder.lo_linenumber
      from ssb.lineorder
      inner join ssb.customer on lineorder.lo_custkey = customer.c_custkey
      left join ssb.dates on lineorder.lo_orderdate = dates.d_datekey
      

      However, the query statement is as follows cannot match this model,

      select lineorder.lo_linenumber
      from ssb.customer
      inner join ssb.lineorder as lineorder on lineorder.lo_custkey = customer.c_custkey
      left join ssb.dates as dates on lineorder.lo_orderdate = dates.d_datekey
      

      Attachments

        Activity

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

          People

            pfzhan pengfei.zhan
            pfzhan pengfei.zhan

            Dates

              Created:
              Updated:

              Slack

                Issue deployment