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

Unable to plan right outer join when select is constant NULL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • impala 2.3
    • None
    • Frontend

    Description

      Query: explain select *
      from (select null x from alltypessmall) a
      right outer join (select id + null y from alltypestiny) b
      on (a.x = b.y)
      +-----------------------------------------------------------+
      | Explain String                                            |
      +-----------------------------------------------------------+
      | Estimated Per-Host Requirements: Memory=160.00MB VCores=2 |
      |                                                           |
      | 04:EXCHANGE [UNPARTITIONED]                               |
      | |                                                         |
      | 02:NESTED LOOP JOIN [LEFT OUTER JOIN, BROADCAST]          |
      | |  join predicates: (NULL = id + NULL)                    |
      | |                                                         |
      | |--03:EXCHANGE [BROADCAST]                                |
      | |  |                                                      |
      | |  00:SCAN HDFS [functional.alltypessmall]                |
      | |     partitions=4/4 files=4 size=6.32KB                  |
      | |                                                         |
      | 01:SCAN HDFS [functional.alltypestiny]                    |
      |    partitions=4/4 files=4 size=460B                       |
      +-----------------------------------------------------------+
      
      Query: explain select *
      from (select null x from alltypessmall) a
      right outer join (select null y from alltypestiny) b
      on (a.x = b.y)
      ERROR: NotImplementedException: Error generating a valid execution plan for
      this query. A RIGHT OUTER JOIN type with no equi-join predicates can only be
      executed with a single node plan.
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jbapple Jim Apple
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: