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

Interrupted CTAS should not succeed & should not create physical file on disk

    XMLWordPrintableJSON

Details

    Description

      We should not allow CTAS to succeed (i.e create physical file on disk ) in the case where it was interrupted. (vis Ctrl-C)

      Drill 1.9.0
      git commit ID : db30854

      Consider the below CTAS that was interrupted using Ctrl-C

      0: jdbc:drill:schema=dfs.tmp> create table temp_t1 as select * from `twoKeyJsn.json`; 
      [ issue Ctrl-C while the above CTAS is running ]
      No rows affected (7.694 seconds)
      

      I verified that physical file was created on disk, even though the above CTAS was Canceled

      [root@centos-01 ~]# hadoop fs -ls /tmp/temp_t1*
      -rwxr-xr-x   3 root root   36713198 2016-11-14 10:51 /tmp/temp_t1/0_0_0.parquet
      

      We are able to do a select on the CTAS table (above) that was Canceled.

      0: jdbc:drill:schema=dfs.tmp> select count(*) from temp_t1;
      +----------+
      |  EXPR$0  |
      +----------+
      | 3747840  |
      +----------+
      1 row selected (0.183 seconds)
      

      Attachments

        Issue Links

          Activity

            People

              arina Arina Ielchiieva
              khfaraaz Khurram Faraaz
              Padma Penumarthy Padma Penumarthy
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: