a34729t opened a new issue, #19279:
URL: https://github.com/apache/pinot/issues/19279

   The value-based segment pruners (`ColumnValueSegmentPruner` and 
`BloomFilterSegmentPruner`) skip segment pruning for `IN (...)` predicates when 
the clause  contains more than `inpredicate.threshold` values. The default is 
10 (`Server.DEFAULT_VALUE_PRUNER_IN_PREDICATE_THRESHOLD`).
   
   For queries with large IN lists the current behavior is that pruners are 
bypassed entirely and every segment is scanned, which is slow and in large 
Pinot cluster, reduces overall capacity for other queries.  The only way to 
raise the threshold today is the per-server config
    `pinot.server.query.executor.pruner.<pruner>.inpredicate.threshold`, which 
requires  restarting the servers, which can take a while.
   
   I propose adding a boolean query option like so:
   ```
   SET forceInPredicatePruning=true;
   ```
   When true, the value pruners always attempt to prune segments for `IN` 
predicates regardless of the clause size. Default is false, preserving existing 
behavior.


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