Uploaded image for project: 'Tajo'
  1. Tajo
  2. TAJO-754

failure of INSERT INTO may remove the target table.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 0.8.0, 0.9.0
    • Fix Version/s: 0.8.0, 0.9.0
    • Component/s: QueryMaster
    • Labels:
      None

      Description

      Currently, INSERT INTO is not supported yet. But, the failure of INSERT INTO may remove the target table. This is a critical bug.

      default> insert into table4 (id, name) select l_orderkey::int4, l_returnflag from tpch.lineitem;
      Internal error!
      java.io.IOException: The output directory 'hdfs://127.0.0.1:8020/tajo/warehouse/default/table4 already exists.
      	at org.apache.tajo.master.querymaster.QueryMasterTask.initStagingDir(QueryMasterTask.java:412)
      	at org.apache.tajo.master.querymaster.QueryMasterTask.init(QueryMasterTask.java:154)
      	at org.apache.tajo.master.querymaster.QueryMaster$QueryStartEventHandler.handle(QueryMaster.java:379)
      	at org.apache.tajo.master.querymaster.QueryMaster$QueryStartEventHandler.handle(QueryMaster.java:372)
      	at org.apache.tajo.master.TajoAsyncDispatcher.dispatch(TajoAsyncDispatcher.java:137)
      	at org.apache.tajo.master.TajoAsyncDispatcher$1.run(TajoAsyncDispatcher.java:79)
      	at java.lang.Thread.run(Thread.java:744)
      
      

        Attachments

          Activity

            People

            • Assignee:
              hyunsik Hyunsik Choi
              Reporter:
              hyunsik Hyunsik Choi
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: