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

Inferred predicates not assigned to Kudu scan nodes.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: Impala 2.8.0
    • Fix Version/s: Impala 2.8.0
    • Component/s: Frontend
    • Labels:

      Description

      Predicates inferred based on slot equivalences are not assigned to Kudu scan nodes. This is a simple oversight in the code of KuduScanNode.init(). We should generate inferred predicates by also calling Analyzer.getBoundPredicates().

      Example:

      select count(*) from functional_kudu.alltypes a
      join functional_kudu.alltypes b
      on a.id = b.id
      where a.int_col < 10
      

      In the example above we can generate 'b.int_col < 10' and assign it to the scan of b.

        Activity

        Hide
        alex.behm Alexander Behm added a comment -

        commit b656f570e9d395129b820506a5e92ffb92b452f4
        Author: Alex Behm <alex.behm@cloudera.com>
        Date: Mon Dec 5 13:43:36 2016 -0800

        IMPALA-4578: Pick up bound predicates for Kudu scan nodes.

        The bug was a simple oversight. In KuduScanNiode.init()
        we forgot to call Analyzer.getBoundPredicates().

        Change-Id: I19a38d6ea8cc0d2b0ddc3808d1f9ffef5ce306a8
        Reviewed-on: http://gerrit.cloudera.org:8080/5365
        Reviewed-by: Alex Behm <alex.behm@cloudera.com>
        Tested-by: Internal Jenkins

        Show
        alex.behm Alexander Behm added a comment - commit b656f570e9d395129b820506a5e92ffb92b452f4 Author: Alex Behm <alex.behm@cloudera.com> Date: Mon Dec 5 13:43:36 2016 -0800 IMPALA-4578 : Pick up bound predicates for Kudu scan nodes. The bug was a simple oversight. In KuduScanNiode.init() we forgot to call Analyzer.getBoundPredicates(). Change-Id: I19a38d6ea8cc0d2b0ddc3808d1f9ffef5ce306a8 Reviewed-on: http://gerrit.cloudera.org:8080/5365 Reviewed-by: Alex Behm <alex.behm@cloudera.com> Tested-by: Internal Jenkins

          People

          • Assignee:
            alex.behm Alexander Behm
            Reporter:
            alex.behm Alexander Behm
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development