You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "gianm (via GitHub)" <gi...@apache.org> on 2025/01/09 19:45:17 UTC

[PR] Expr: Collect BindingAnalysis in bulk rather than one at a time. (druid)

gianm opened a new pull request, #17613:
URL: https://github.com/apache/druid/pull/17613

   Speeds up analysis of functions with large numbers of arguments, such as CASE statements with many branches. The prior code would call "with" for each argument on the accumulated analysis so far, which needlessly re-created the sets of variables over and over.


-- 
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@druid.apache.org

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


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


Re: [PR] Expr: Collect BindingAnalysis in bulk rather than one at a time. (druid)

Posted by "gianm (via GitHub)" <gi...@apache.org>.
gianm commented on PR #17613:
URL: https://github.com/apache/druid/pull/17613#issuecomment-2581361999

   FYI, for a test query I was looking at involving a `CASE` with hundreds of branches, this sped up SQL planning from ~4s to 250ms.


-- 
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@druid.apache.org

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


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


Re: [PR] Expr: Collect BindingAnalysis in bulk rather than one at a time. (druid)

Posted by "gianm (via GitHub)" <gi...@apache.org>.
gianm merged PR #17613:
URL: https://github.com/apache/druid/pull/17613


-- 
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@druid.apache.org

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


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