Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(reasoner): add config in UdfMng #391

Merged
merged 20 commits into from
Nov 6, 2024
Merged

Conversation

wangsff
Copy link
Collaborator

@wangsff wangsff commented Nov 5, 2024

No description provided.

@@ -54,6 +54,8 @@ public class UdfMngImpl implements UdfMng {

private static volatile UdfMngImpl instance = null;

public static ThreadLocal<Boolean> allowUDFThrowException = ThreadLocal.withInitial(() -> false);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议还是搞成场景配置Map,这样兼容的情况更多。
因为这次是抛异常,也许下次会有其他场景对udf行为的控制。

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed to ThreadLocal<Map<String, Object>> sceneConfigMap`

Copy link
Collaborator

@youdonghai youdonghai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wangsff wangsff merged commit 84b9209 into master Nov 6, 2024
6 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants