mirror of
https://github.com/apache/impala.git
synced 2026-01-21 15:03:35 -05:00
Previously, when creating a new database, the CatalogOpExecutor would create an HMS Database object, issue the HMS createDatabase call, and then create a Catalog entry from that same Database object. The resulting Catalog entry would be missing certain fields that are auto-created by the HMS itself, most importantly the location field. The code for CTAS seems to have contained a workaround for this issue ever since catalogd was first introduced: rather than using the location stored in the Db object, it would re-fetch the Database from HMS. Now that this is fixed, that workaround could be removed and some code simplified. A new test verifies that a newly-created database has the appropriate location, and existing CTAS tests verify that functionality didn't regress. Change-Id: I13df31cee1e5768b073e0e35c4c16ebf1892be23 Reviewed-on: http://gerrit.cloudera.org:8080/11229 Reviewed-by: Vuk Ercegovac <vercegovac@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
3.3 KiB
3.3 KiB