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

CTLT with hive.create.as.external.legacy as true creates managed table instead of external table

    XMLWordPrintableJSON

Details

    Description

      When CTLT is used with the config hive.create.as.external.legacy=true, it still creates managed table by default. Use below to reproduce.

      create external table test_ext(empno int, name string) partitioned by(dept string) stored as orc;
      desc formatted test_ext;

      set hive.create.as.external.legacy=true;

      create table test_external like test_ext;
      desc formatted test_external;

      Attachments

        Issue Links

          Activity

            People

              rameshkumar Ramesh Kumar Thangarajan
              rameshkumar Ramesh Kumar Thangarajan
              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 20m
                  2h 20m