Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-7439

CREATE DATABASE creates a catalog entry with empty location field

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Impala 3.1.0
    • Catalog
    • None
    • ghx-label-6

    Description

      'create database foobar' followed by 'describe database foobar' shows no location field for the newly created DB. If you then invalidate metadata, it will load the proper location upon a reload.

      It seems that the code for CREATE TABLE is currently working around this as ImpaladCatalog.getTablePath() actually ignores the location stored in the catalog entry and instead goes directly to the HMS to get the database location. It seems we should probably populate the catalog entry correctly upon creation.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tlipcon Todd Lipcon
            tlipcon Todd Lipcon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment