Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-3058

Runtime filter src and target exprs not always same type

    XMLWordPrintableJSON

Details

    Description

      In TPC-DS Q59, look at the highlighted predicate below:

        where
          d.d_week_seq = wss.d_week_seq
          and ss_store_sk = s_store_sk
          and d_month_seq between 1185 + 12 and 1185 + 23
        ) x
      where
        s_store_id1 = s_store_id2
        and d_week_seq1 = d_week_seq2 - 52 ######### <------
      order by
        s_store_name1,
        s_store_id1,
      

      The source side generates an expr of type BIGINT. The target expr has type INT. The filter produced is not compatible with the target side, and the query gives incorrect results. The frontend needs to ensure that filter expressions are exactly type compatible.

      Attachments

        Activity

          People

            dtsirogiannis Dimitris Tsirogiannis
            henryr Henry Robinson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: