dbwong commented on a change in pull request #419: PHOENIX-4009 Run UPDATE 
STATISTICS command by using MR integration on…
URL: https://github.com/apache/phoenix/pull/419#discussion_r248862620
 
 

 ##########
 File path: 
phoenix-pig/src/main/java/org/apache/phoenix/pig/util/PhoenixPigSchemaUtil.java
 ##########
 @@ -62,7 +62,7 @@ public static ResourceSchema getResourceSchema(final 
Configuration configuration
                 Preconditions.checkNotNull(sqlQuery, "No Sql Query exists 
within the configuration");
                 final SqlQueryToColumnInfoFunction function = new 
SqlQueryToColumnInfoFunction(configuration);
                 columns = function.apply(sqlQuery);
-            } else {
+            } else if (SchemaType.TABLE.equals(schemaType)) {
 
 Review comment:
   I prefer == as you won't accidentally order the equality wrong and risk a 
NPE.

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


With regards,
Apache Git Services

Reply via email to