You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The lock is introduced in #4827 to address race conditions, however, it creates bottleneck in the pipeline.
The correct way to handle this is to introduce LocalState into ScalarFunction and each function instance (e.g., gen_random_uuid in each thread) would have its own RandomEngine with a unique seed generated from the randomEngine under ClientContext.
This requires rework of the interface and implementation of ScalarFunction and ExpressionEvaluator.
The text was updated successfully, but these errors were encountered:
Description
The lock is introduced in #4827 to address race conditions, however, it creates bottleneck in the pipeline.
The correct way to handle this is to introduce
LocalState
intoScalarFunction
and each function instance (e.g.,gen_random_uuid
in each thread) would have its ownRandomEngine
with a unique seed generated from therandomEngine
underClientContext
.This requires rework of the interface and implementation of
ScalarFunction
andExpressionEvaluator
.The text was updated successfully, but these errors were encountered: