phoenix-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [phoenix] swaroopak commented on a change in pull request #517: PHOENIX-5211 Consistent Immutable Global Indexes for Non-Transactiona…
Date Wed, 12 Jun 2019 05:58:36 GMT
swaroopak commented on a change in pull request #517: PHOENIX-5211 Consistent Immutable Global
Indexes for Non-Transactiona…
URL: https://github.com/apache/phoenix/pull/517#discussion_r292748953
 
 

 ##########
 File path: phoenix-core/src/main/java/org/apache/phoenix/util/IndexUtil.java
 ##########
 @@ -294,13 +295,32 @@ private static boolean isEmptyKeyValue(PTable table, ColumnReference
ref) {
                             .getLength()) == 0);
     }
 
+
+    public static boolean isGlobalIndexCheckerEnabled(PhoenixConnection connection, PName
index) {
+        TableDescriptor desc = null;
+        try {
+            desc = connection.getQueryServices().getTableDescriptor(index.getBytes());
+        } catch (SQLException ex) {
+            //logger.warn("Error during getTableDescriptor ", ex);
 
 Review comment:
   nit: commented code.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message