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

managedlocation is missing in SHOW CREATE DATABASE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      The output of SHOW CREATE DATABASE contains location, but doesn't contain managed location, so the database it would create would be actually different.

      To reproduce:
      create database db1 location "/test-warehouse/a" managedlocation "test-warehouse/b";
      show create database db1;
      result:
      ----------------------------------------------

      createdb_stmt

      ----------------------------------------------

      CREATE DATABASE `db1`
      LOCATION
      'hdfs://localhost:20500/test-warehouse/a'

      ----------------------------------------------

      Attachments

        Issue Links

          Activity

            People

              mgergely Miklos Gergely
              csringhofer Csaba Ringhofer
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 20m
                  20m