-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
refactor builtin #250
refactor builtin #250
Conversation
LGTM |
1 similar comment
LGTM |
// ExprAggDone is the key indicating that aggregate function is done. | ||
ExprAggDone = "$aggDone" | ||
// ExprEvalArgAggEmpty is the key to evaluate the aggregate function for empty table. | ||
ExprEvalArgAggEmpty = "$agg0" |
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.
$agg0
is not good, rename another value?
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.
It is the old code, change it in another PR if possible.
@@ -123,14 +126,38 @@ func (c *Call) Eval(ctx context.Context, args map[interface{}]interface{}) (v in | |||
a[i] = v | |||
} | |||
|
|||
c.createDistinct() |
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.
Why herecreateDistinct
?
PTAL @qiuyesuifeng |
…p#250) close pingcap#41485 Co-authored-by: Yexiang Zhang <[email protected]> Co-authored-by: iosmanthus <[email protected]> Co-authored-by: zzm <[email protected]>
move builtin function into builtin package