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

CTAS does not clean up when it fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.10.0
    • Storage - Parquet
    • None

    Description

      git.commit.id.abbrev=6676f2d

      Data Set :

      {
        "id" : 1,
        "map":{"rm": [
          {"mapid":"m1","mapvalue":{"col1":1,"col2":[0,1,2,3,4,5]},"rptd": [{ "a": "foo"},{"b":"boo"}]},
          {"mapid":"m2","mapvalue":{"col1":0,"col2":[]},"rptd": [{ "a": "bar"},{"c":1},{"d":4.5}]}
        ]}
      }
      

      The below query fails :

      create table rep_map as select d.map from `temp.json` d;
      Query failed: Query stopped., index: -4, length: 4 (expected: range(0, 16384)) [ d76e3f74-7e2c-406f-a7fd-5efc68227e75 on qa-node190.qa.lab:31010 ]
      

      However drill created a folder 'rep_map' and the folder contained a broken parquet file.

      create table rep_map as select d.map from `temp.json` d;
      +------------+------------+
      |     ok     |  summary   |
      +------------+------------+
      | false      | Table 'rep_map' already exists. |
      

      Drill should clean up properly in case of a failure.

      I raised a different issue for the actual failure.

      Attachments

        Issue Links

          Activity

            People

              khfaraaz Khurram Faraaz
              rkins Rahul Kumar Challapalli
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: