Repository: phoenix
Updated Branches:
  refs/heads/4.14-HBase-1.4 215464f2f -> 19f16a75d


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/19f16a75
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/19f16a75
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/19f16a75

Branch: refs/heads/4.14-HBase-1.4
Commit: 19f16a75d39838b8302a9df31768a2e83eb0cdd9
Parents: 215464f
Author: Geoffrey <[email protected]>
Authored: Mon Oct 1 15:04:02 2018 -0700
Committer: Vincent Poon <[email protected]>
Committed: Wed Oct 17 11:46:28 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/19f16a75/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