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

Query match join error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 5.0-alpha
    • None
    • 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

          People

            pfzhan pengfei.zhan
            pfzhan pengfei.zhan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: