Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-24188

CTLT from MM to External or External to MM are failing with hive.strict.managed.tables & hive.create.as.acid

    XMLWordPrintableJSON

Details

    Description

      Repro steps

       

      set hive.support.concurrency=true;
      set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager;
      create table test_mm(age int, name string) partitioned by(dept string) stored as orc tblproperties('transactional'='true', 'transactional_properties'='default');
      create external table test_external like test_mm LOCATION '${system:test.tmp.dir}/create_like_mm_to_external';
      

      Fails with below exception

      Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:default.test_external cannot be declared transactional because it's an external table) (state=08S01,code=1)

      Attachments

        Issue Links

          Activity

            People

              nareshpr Naresh P R
              nareshpr Naresh P R
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h