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

Query hangs in planing

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

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

    Description

      The query is stuck seems blocked on planning (pending)

      View :

      create or replace view View1 AS (
      SELECT 
      B1.columns[0] c0,
      B1.columns[1] c1
      FROM dfs.tmp.`TEST\B1.csv` B1
      LEFT OUTER JOIN dfs.tmp.`TEST\BK.csv` BK
      ON B1.columns[1] = BK.columns[0]
      WHERE BK.columns[0] is null AND trim(B1.columns[1]) <> ''
      );
      
      create or replace view View2 AS (
      SELECT 
      View1.c0,
      View1.c1
      FROM View1
      LEFT OUTER JOIN dfs.tmp.`TEST\BK.csv` BK
      ON View1.c1 = BK.columns[0]
      WHERE BK.columns[0] is null AND trim(View1.c1) <> ''
      );
      

      Query :

      select * FROM dfs.tmp.View2 
      

      => Infinite Pending

      data set :

      B1

      A;
      B;F
      C;A
      D;E
      E;
      F;C

      BK

      A;1
      B;2
      F;4

      Attachments

        Issue Links

        Activity

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

          People

            volodymyr Vova Vysotskyi
            borischmiel boris chmiel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment