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

Projection using a scalar subquery causes zero rows to be returned by statement

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.10.0
    • None
    • Server
    • None
    • Drill 1.10

    Description

      When C3 is included in the projection zero rows are returned versus the expected 3 rows

      select TJOIN1.RNUM, TJOIN1.C1, case when 10 in ( select C1 from ( values (1) ) T(C1) ) then 'yes' else 'no' end C3 from
      (
      values
      ( 0, 10, 15),
      ( 1, 20, 25),
      ( 2, cast(NULL as integer), 50)
      ) TJOIN1 (RNUM, C1, C2)

      Attachments

        Activity

          People

            Unassigned Unassigned
            the6campbells N Campbell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: