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

Prevent reading union inputs after cancellation request

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.19.0
    • 1.20.0
    • None
    • None

    Description

      When running a union all query that has right side operators like join or aggregate, and limit on top of the union, such query will fail for the case when right input shouldn't read because the left one had required number of records for limit.

      Example of such failing query (thanks to James Turton for helping to minimize it):

      WITH foo AS
        (SELECT 1 AS a
         FROM cp.`/tpch/nation.parquet`
         UNION ALL SELECT 1 AS a
         FROM cp.`/tpch/nation.parquet`
         WHERE n_nationkey >
             (SELECT 1) )
      SELECT *
      FROM foo
      LIMIT 1
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            volodymyr Vova Vysotskyi
            volodymyr Vova Vysotskyi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment