You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ng...@apache.org on 2020/08/26 19:27:37 UTC
[hive] branch master updated: HIVE-24076:
MetastoreDirectSql.getDatabase() needs a space in query string (Naveen
Gangam, reviewed by Yongzhi Chen)
This is an automated email from the ASF dual-hosted git repository.
ngangam pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/master by this push:
new ece58ff HIVE-24076: MetastoreDirectSql.getDatabase() needs a space in query string (Naveen Gangam, reviewed by Yongzhi Chen)
ece58ff is described below
commit ece58fff1b53ea451bfc524c4c15f63ee12eca00
Author: Naveen Gangam <ng...@cloudera.com>
AuthorDate: Wed Aug 26 08:22:44 2020 -0400
HIVE-24076: MetastoreDirectSql.getDatabase() needs a space in query string (Naveen Gangam, reviewed by Yongzhi Chen)
---
.../main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java
index 78b4f1e..b0ea48f 100644
--- a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java
+++ b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java
@@ -375,7 +375,7 @@ class MetaStoreDirectSql {
String queryTextDbSelector= "select "
+ "\"DB_ID\", \"NAME\", \"DB_LOCATION_URI\", \"DESC\", "
+ "\"OWNER_NAME\", \"OWNER_TYPE\", \"CTLG_NAME\" , \"CREATE_TIME\", \"DB_MANAGED_LOCATION_URI\""
- + "FROM "+ DBS
+ + " FROM "+ DBS
+ " where \"NAME\" = ? and \"CTLG_NAME\" = ? ";
Object[] params = new Object[] { dbName, catName };
queryDbSelector = pm.newQuery("javax.jdo.query.SQL", queryTextDbSelector);