LuciferYang opened a new pull request, #13692:
URL: https://github.com/apache/gluten/pull/13692

   ## What changes are proposed in this pull request?
   
   `ExpressionMappings.expressionsMap` and `blacklistExpressionMap` merged the 
default signatures with the backend's `extraExpressionMappings` and partitioned 
them by the expression blacklist on every call. They now keep the last result 
and reuse it while the blacklist and the extra mappings are unchanged.
   
   Planning a TPC-H query calls this about 98 times. On Spark 3.5 with the 
Velox backend, one call drops from about 21 µs to under 1 µs.
   
   Fixes #13691.
   
   ## How was this patch tested?
   
   Added `expression mappings are reused until the blacklist changes` to 
`GlutenExpressionMappingSuite`. It checks that two calls with the same 
blacklist return the same map instance, that a blacklist change takes effect on 
the next call, and that clearing it restores the original mappings. The first 
check fails on the old code.
   
   ## Was this patch authored or co-authored using generative AI tooling?
   
   Yes. Generated-by: Claude Opus.
   


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