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

Support INTERSECTION set operation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • SQL
    • None

    Description

      Support a INTERSECTION operation as <qb1> INTERSECTION <qb2> .

      Common requirement of queries to project two sets where you want result set which contains only those rows returned by both queries.

      The following sample statement combines the results with the INTERSECT operator, which returns only those rows returned by both queries:

      SELECT * FROM tableA
      INTERSECT
      SELECT * FROM tableB;

      current exception:
      FAILED: ParseException line :* missing EOF at 'SELECT' near 'INTERSECT'

      Attachments

        Activity

          People

            Unassigned Unassigned
            sanjiv singh sanjiv singh
            Votes:
            3 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: