stoty commented on code in PR #1631:
URL: https://github.com/apache/phoenix/pull/1631#discussion_r1235710952


##########
phoenix-core/src/main/java/org/apache/phoenix/compile/ProjectionCompiler.java:
##########
@@ -505,7 +505,15 @@ public static RowProjector compile(StatementContext 
context, SelectStatement sta
         } else {
             isProjectEmptyKeyValue = where == null || 
LiteralExpression.isTrue(where) || where.requiresFinalEvaluation();
             for (byte[] family : projectedFamilies) {
-                projectColumnFamily(table, scan, family);
+                try {
+                    if (table.getColumnFamily(family) != null) {
+                        projectColumnFamily(table, scan, family);
+                    }
+                } catch (ColumnFamilyNotFoundException e) {
+                    if (!(tableRef.getTable().getIndexType() == 
IndexType.LOCAL || isHintedGlobalIndex(tableRef))) {
+                        throw e;
+                    }

Review Comment:
   This is again synced from 5.2, which does not have a debug statement there.
   This applies to all server merged columns, so it would generate a log line 
for each merged column, which sounds excessive.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to