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

Query "insert into table values()" creates the tmp table under the current database

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2.0
    • None
    • Query Planning
    • None

    Description

      The current implementation of "insert into db1.table1 values()" creates a tmp table under the current database while table1 may not be under current database.

      e.g.,

      use default;
      create database db1;
      create table db1.table1(x int);
      insert into db1.table1 values(3);
      

      It will create the tmp table under default database. Now if authorization is turned on and the current user only has access to db1 but not default database, then it will cause access issue.

      We may need to rethink the approach for the implementation.

      Attachments

        Issue Links

          There are no Sub-Tasks for this issue.

          Activity

            People

              aihuaxu Aihua Xu
              aihuaxu Aihua Xu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: