You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "wirybeaver (via GitHub)" <gi...@apache.org> on 2024/05/05 19:13:54 UTC

[I] Optimize the Filter Reorder [pinot]

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

   When we ran the explain plan for the following query, we found out that the operator  Filter_Full_Scan is executed among 
    operators of Filter_Inverted_index. It turns out that the existing reorderAndFilterChildOperators brutally assign a static priority value to the AND, OR operator. We should have recursively visit the child operators and use the lowest priority (largest value) of children as the priority of the current operator. In order to avoid walking through the tree twice, the reorder and priority evaluation should get done in the same recursive function. The PR is on the way.
   
   SQL
   ```
   explain plan for
   SELECT id,metadatas FROM rta_m3poc9proportioned WHERE env = 'production' AND (tags_prefixes = 'foo' OR tags_entries = 'bar') AND REGEXP_LIKE(tags_entries, 'bar(a.*|b[^\.]*)') LIMIT 5000
   ```
   
   Explain
   
   Operator | Operator_Id | Parent_Id
   -- | -- | --
   FILTER_INVERTED_INDEX(indexLookUp:inverted_index,operator:EQ,predicate:env = 'production') | 11 | 6
   FILTER_FULL_SCAN(operator:REGEXP_LIKE,predicate:regexp_like(tags_entries,'sourceZZZ('bar(a.*|b[^\.]*)') | 10 | 6
   FILTER_INVERTED_INDEX(indexLookUp:inverted_index,operator:EQ,predicate:tags_entries = 'bar') | 9 | 7
   FILTER_INVERTED_INDEX(indexLookUp:inverted_index,operator:EQ,predicate:tags_prefixes = 'foo') | 8 | 7
   FILTER_OR | 7 | 6
   FILTER_AND | 6 | 5
   DOC_ID_SET | 5 | 4
   
   


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


Re: [I] Optimize the Filter Reorder when the child operator is AND or OR [pinot]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #13081: Optimize the Filter Reorder when the child operator is AND or OR
URL: https://github.com/apache/pinot/issues/13081


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


Re: [I] Optimize the Filter Reorder when the child operator is AND or OR [pinot]

Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang commented on issue #13081:
URL: https://github.com/apache/pinot/issues/13081#issuecomment-2099344606

   You might also want to take a look at this related issue: #9839


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


Re: [I] Optimize the Filter Reorder when the child operator is AND or OR [pinot]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #13081:
URL: https://github.com/apache/pinot/issues/13081#issuecomment-5161130730

   This issue has been closed because it has been inactive for 180 days. If you believe this issue is still relevant, please feel free to reopen it or create a new issue. Thank you!


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