cecemei commented on code in PR #19613:
URL: https://github.com/apache/druid/pull/19613#discussion_r3456423960


##########
processing/src/main/java/org/apache/druid/segment/projections/Projections.java:
##########
@@ -161,35 +174,42 @@ public static ProjectionMatch matchAggregateProjection(
   )
   {
     if 
(!queryCursorBuildSpec.isCompatibleOrdering(projection.getOrderingWithTimeColumnSubstitution()))
 {
+      logTrace(queryCursorBuildSpec.getQueryContext(), 
"matchAggregateProjection: projection [%s] rejected — incompatible ordering", 
projection.getName());
       return null;
     }
     if 
(CollectionUtils.isNullOrEmpty(queryCursorBuildSpec.getPhysicalColumns())) {
+      logTrace(queryCursorBuildSpec.getQueryContext(), 
"matchAggregateProjection: projection [%s] rejected — no physical columns in 
query", projection.getName());
       return null;
     }
 
     if (isUnalignedInterval(projection, queryCursorBuildSpec, dataInterval)) {
+      logTrace(queryCursorBuildSpec.getQueryContext(), 
"matchAggregateProjection: projection [%s] rejected — unaligned interval", 
projection.getName());
       return null;
     }
     ProjectionMatchBuilder matchBuilder = new ProjectionMatchBuilder();
 
     // match virtual columns first, which will populate the 'remapColumns' of 
the match builder
     matchBuilder = matchQueryVirtualColumns(projection, queryCursorBuildSpec, 
physicalColumnChecker, matchBuilder);
     if (matchBuilder == null) {
+      logTrace(queryCursorBuildSpec.getQueryContext(), 
"matchAggregateProjection: projection [%s] rejected — virtual column mismatch", 
projection.getName());

Review Comment:
   yea it would be suboptimal if logging for a lot of segments, maybe could be 
helpful in the case when only several segments out of all are missing proper 
projections, it gives some amount of visibility and operatibility to projection 
at least.  



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to