You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2022/03/12 11:23:05 UTC

[GitHub] [pinot] xiangfu0 commented on a change in pull request #8343: Timestamp type index

xiangfu0 commented on a change in pull request #8343:
URL: https://github.com/apache/pinot/pull/8343#discussion_r825287132



##########
File path: pinot-core/src/main/java/org/apache/pinot/core/query/pruner/DataSchemaSegmentPruner.java
##########
@@ -35,7 +38,9 @@ public void init(PinotConfiguration config) {
 
   @Override
   public boolean prune(IndexSegment segment, QueryContext query) {
-    return !segment.getColumnNames().containsAll(query.getColumns());
+    Set<String> columns =
+        query.getColumns().stream().map(col -> StringUtils.split(col, "$", 2)[0]).collect(Collectors.toSet());

Review comment:
       Agreed, I will add those columns to the schema




-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org