-
Notifications
You must be signed in to change notification settings - Fork 454
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
[GLUTEN-6803]Init ExpressionUtil.extendedExpressionTransformer in executor side #6837
Conversation
Run Gluten Clickhouse CI |
@@ -354,6 +354,5 @@ object ExpressionMappings { | |||
.toMap[Class[_], String] | |||
} | |||
|
|||
var expressionExtensionTransformer: ExpressionExtensionTrait = | |||
DefaultExpressionExtensionTransformer() | |||
var expressionExtensionTransformer: ExpressionExtensionTrait = _ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest to use getter and setters to avoid directly accessing the variable.
In the setter, we can do a check to make sure it was not set.
Similarly in the getter, we can do a check to make sure it was set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zhztheplayer Added the get and set method.
Run Gluten Clickhouse CI |
Run Gluten Clickhouse CI |
private var expressionExtensionTransformer: Option[ExpressionExtensionTrait] = None | ||
|
||
def getExpressionExtensionTransformer: ExpressionExtensionTrait = { | ||
expressionExtensionTransformer.getOrElse(new DefaultExpressionExtensionTransformer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we throw when it's none? Otherwise we don't make it sure whether the change (setting it in executor side) takes effect. Say if we throw when none, then we must set it in both driver and executor sides otherwise the application will fail by error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zhztheplayer Yes. Updated.
Run Gluten Clickhouse CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
This PR was auto-closed because it has been stalled for 10 days with no activity. Please feel free to reopen if it is still valid. Thanks. |
What changes were proposed in this pull request?
Follow up #6803.
Init ExpressionUtil.extendedExpressionTransformer in GlutenExecutorPlugin side
How was this patch tested?
local verified.