jackjlli commented on a change in pull request #3336: Add metadata info and
metric when querying non-existing columns
URL: https://github.com/apache/incubator-pinot/pull/3336#discussion_r237222545
##########
File path:
pinot-core/src/main/java/com/linkedin/pinot/core/query/executor/ServerQueryExecutorV1Impl.java
##########
@@ -143,6 +147,22 @@ public DataTable processQuery(ServerQueryRequest
queryRequest, ExecutorService e
metadata.put(DataTable.NUM_ENTRIES_SCANNED_POST_FILTER_METADATA_KEY,
"0");
metadata.put(DataTable.NUM_SEGMENTS_PROCESSED, "0");
metadata.put(DataTable.NUM_SEGMENTS_MATCHED, "0");
+
+ // adds pruning reasons to metadata.
+ StringBuilder pruningReasons = new StringBuilder();
+ for (SegmentPruner segmentPruner : matchedSegmentPruners) {
+ // emits metric when querying non-existing columns.
+ if ("DataSchemaSegmentPruner".equals(segmentPruner.toString())) {
Review comment:
Yeah, putting the check to broker side seems to be the right place.
In that case, `DataSchemaSegmentPruner` would be useless.
----------------------------------------------------------------
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]