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

Incorrect assignment of NULL checking predicate through an outer join of a nested collection.

    XMLWordPrintableJSON

Details

    Description

      The number of NULLS in this query is 57:

      SELECT
      a2.pos, count(*)
      FROM table_1.field_19 a1
      LEFT JOIN a1.value.item.field_22.item.field_36.field_38 a2
      group by a2.pos
      order by 1, 2
      

      However, when we add a WHERE predicate, this causes the number of NULL to increase to 94:

      SELECT
      a2.pos, count(*)
      FROM table_1.field_19 a1
      LEFT JOIN a1.value.item.field_22.item.field_36.field_38 a2
      WHERE
      (a2.pos) <=> (a2.item)
      group by a2.pos
      order by 1, 2
      

      To reproduce:

      ssh dev@vd0206.halxg.cloudera.com -p 22222 (pw: cloudera)
      Impala db name: random_nested_db_0
      

      Attachments

        Issue Links

          Activity

            People

              alex.behm Alexander Behm
              tarasbob Taras Bobrovytsky
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: