You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by ja...@apache.org on 2018/05/09 20:24:38 UTC
[6/7] phoenix git commit: PHOENIX-4678 ndexScrutinyTool generates
malformed query due to incorrect table name(s) (Josh Elser)
PHOENIX-4678 ndexScrutinyTool generates malformed query due to incorrect table name(s) (Josh Elser)
Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/6b5130d2
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/6b5130d2
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/6b5130d2
Branch: refs/heads/4.x-HBase-1.1
Commit: 6b5130d29f5605509ffad07a7c9d8c0e406a527b
Parents: d17dc04
Author: James Taylor <jt...@salesforce.com>
Authored: Wed May 9 12:50:22 2018 -0700
Committer: James Taylor <jt...@salesforce.com>
Committed: Wed May 9 13:23:13 2018 -0700
----------------------------------------------------------------------
phoenix-core/src/main/java/org/apache/phoenix/util/SchemaUtil.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/phoenix/blob/6b5130d2/phoenix-core/src/main/java/org/apache/phoenix/util/SchemaUtil.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/util/SchemaUtil.java b/phoenix-core/src/main/java/org/apache/phoenix/util/SchemaUtil.java
index a73467a..153b377 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/util/SchemaUtil.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/util/SchemaUtil.java
@@ -1103,7 +1103,7 @@ public class SchemaUtil {
* @return the byte representation of the HTable
*/
public static String getQualifiedTableName(String schemaName, String tableName) {
- if (schemaName != null) {
+ if (schemaName != null && !schemaName.isEmpty()) {
return String.format("%s.%s", normalizeIdentifier(schemaName),
normalizeIdentifier(tableName));
} else {