mirror of
https://github.com/apache/impala.git
synced 2026-01-31 18:00:17 -05:00
This change lets the user set the managed location path in new databases, e.g. CREATE DATABASE db MANAGEDLOCATION 'some url'; This property sets the location where the database's tables with table property 'transactional'='true' will be placed. The change also adds managedlocation to DESCRIBE DATABASE's output. Example: DESCRIBE DATABASE db; +------------------+-----------------------------------------+---------+ | name | location | comment | +------------------+-----------------------------------------+---------+ | db | hdfs://localhost:20500/test-warehouse/a | | | managedlocation: | hdfs://localhost:20500/test-warehouse/b | | +------------------+-----------------------------------------+---------+ DESCRIBE DATABASE EXTENDED db6; +------------------+-----------------------------------------+---------+ | name | location | comment | +------------------+-----------------------------------------+---------+ | db | hdfs://localhost:20500/test-warehouse/a | | | managedlocation: | hdfs://localhost:20500/test-warehouse/b | | | Owner: | | | | | csringhofer | USER | +------------------+-----------------------------------------+---------+ Note that Impala's output for DESCRIBE DATABASE (EXTENDED) is different than Hive's, where a new column was added for each extra piece of information, while Impala adds a new row to keep the 3 column format. Changing to Hive's format would be preferable in my opinion, but is a potentially breaking change. See IMPALA-6686 for further discussion. Testing: - added FE and EE tests - ran relevant tests Change-Id: I925632a43ff224f762031e89981896722e453399 Reviewed-on: http://gerrit.cloudera.org:8080/16529 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
6.4 KiB
6.4 KiB