-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
plan, expression: move constant fold to NewFunction #3868
Conversation
FuncName: model.NewCIStr(funcName), | ||
RetType: retType, | ||
Function: f, | ||
}, nil | ||
} | ||
return FoldConstant(sf), nil |
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.
If we fold Constant in here, so maybe no needs to use the recursive function FoldConstant, because the scalarFunction will have only one level here, use PlainFoldConstant is better? @hanfei1991
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.
We can change it step by step :)
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.
Okay...LGTM
What's the benefit? |
LGTM |
This is the preparation of #3780
@winkyao