Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-37932

Analyzer can fail when join left side and right side are the same view

    XMLWordPrintableJSON

Details

    Description

      See the attachment for details, including SQL and the exception information.

      • sql1, there is a normal filter (LO_SUPPKEY > 10) in the right side subquery, Analyzer works as expected;
      • sql2, there is a HAVING filter(HAVING COUNT(DISTINCT LO_SUPPKEY) > 1) in the right side subquery, Analyzer failed with "Resolved attribute(s) LO_SUPPKEY#337 missing ...".

            From the debug info, the problem seems to be occurred after the rule DeduplicateRelations is applied.

      Attachments

        1. sql_and_exception
          6 kB
          Feng Zhu

        Activity

          People

            chen Zhixiong Chen
            fishcus Feng Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: