PHOENIX-4935 - IndexTool should use empty catalog instead of null

Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/97dabfad
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/97dabfad
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/97dabfad

Branch: refs/heads/4.14-HBase-1.1
Commit: 97dabfadeb49fde393cb6f0d6f56ec5ba276f7b8
Parents: c05403c
Author: Geoffrey <[email protected]>
Authored: Mon Oct 1 15:04:02 2018 -0700
Committer: Vincent Poon <[email protected]>
Committed: Wed Oct 17 11:54:03 2018 -0700

----------------------------------------------------------------------
 .../main/java/org/apache/phoenix/mapreduce/index/IndexTool.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/97dabfad/phoenix-core/src/main/java/org/apache/phoenix/mapreduce/index/IndexTool.java
----------------------------------------------------------------------
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/mapreduce/index/IndexTool.java 
b/phoenix-core/src/main/java/org/apache/phoenix/mapreduce/index/IndexTool.java
index ac0be01..15d41ea 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/mapreduce/index/IndexTool.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/mapreduce/index/IndexTool.java
@@ -737,7 +737,7 @@ public class IndexTool extends Configured implements Tool {
 
         ResultSet rs = null;
         try {
-            rs = dbMetaData.getIndexInfo(null, schemaName, tableName, false, 
false);
+            rs = dbMetaData.getIndexInfo("", schemaName, tableName, false, 
false);
             while (rs.next()) {
                 final String indexName = rs.getString(6);
                 if (indexTable.equalsIgnoreCase(indexName)) {

Reply via email to