Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-831

NOT-IN query returns wrong results if right side is empty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.4.0
    • None
    • None

    Description

      0: jdbc:drill:zk=local> select count from region r1 where r1.r_regionkey not in (select r2.r_regionkey from region r2 where r2.r_regionkey = 10);
      --

       

      --
      --
      No rows selected

      This correct result is 5 rows since right side of the NOT IN produces 0 rows.

      Attachments

        Activity

          People

            amansinha100 Aman Sinha
            amansinha100 Aman Sinha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: