Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-9734

Correlating expression cannot contain unqualified column references

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.14.0
    • 1.2.0
    • SQL
    • None

    Description

      The following valid ISO-SQL constructs will not parse

      Unsupported SubQuery Expression 'c1': Correlating expression cannot contain unqualified column references

      The statement will parse if the predicate is changed to where tjoin1.c1 in ( ....)

      select tjoin1.rnum, tjoin1.c1, tjoin1.c2 from tjoin1 where c1 in ( select c1 from tjoin1)

      select tjoin1.rnum, tjoin1.c1, tjoin1.c2 from tjoin1 where c1 in ( select tjoin1.c1 from tjoin1)

      select tjoin1.rnum, tjoin1.c1, tjoin1.c2 from tjoin1 where c1 in ( select x.c1 from tjoin1 x)

      Attachments

        1. HIVE-9734.2.patch.txt
          18 kB
          Navis Ryu
        2. HIVE-9734.1.patch.txt
          18 kB
          Navis Ryu

        Issue Links

          Activity

            People

              navis Navis Ryu
              the6campbells N Campbell
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: