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


##########
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, i think its fine for now, though 'only 1-2 lines' is _per projection, 
per segment_ of the query, so its going to be pretty verbose anywhere that is 
touching more than a few segments if there are any projections at all.



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