You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by jc...@apache.org on 2017/11/15 23:14:11 UTC
hive git commit: HIVE-18069: MetaStoreDirectSql to get tables has
misplaced comma (Jesus Camacho Rodriguez, reviewed by Aihua Xu)
Repository: hive
Updated Branches:
refs/heads/master 404993a98 -> fcb0fe9da
HIVE-18069: MetaStoreDirectSql to get tables has misplaced comma (Jesus Camacho Rodriguez, reviewed by Aihua Xu)
Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/fcb0fe9d
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/fcb0fe9d
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/fcb0fe9d
Branch: refs/heads/master
Commit: fcb0fe9da9bc9d12fc1c4641e1a4da47ee0fd373
Parents: 404993a
Author: Jesus Camacho Rodriguez <jc...@apache.org>
Authored: Wed Nov 15 15:13:53 2017 -0800
Committer: Jesus Camacho Rodriguez <jc...@apache.org>
Committed: Wed Nov 15 15:14:06 2017 -0800
----------------------------------------------------------------------
.../java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hive/blob/fcb0fe9d/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java
index db60ff2..14653b4 100644
--- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java
+++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java
@@ -391,7 +391,7 @@ class MetaStoreDirectSql {
*/
public List<String> getTables(String db_name, TableType tableType) throws MetaException {
List<String> ret = new ArrayList<String>();
- String queryText = "SELECT " + TBLS + ".\"TBL_NAME\","
+ String queryText = "SELECT " + TBLS + ".\"TBL_NAME\""
+ " FROM " + TBLS + " "
+ " INNER JOIN " + DBS + " ON " + TBLS + ".\"DB_ID\" = " + DBS + ".\"DB_ID\" "
+ " WHERE " + DBS + ".\"NAME\" = ? "