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

refactor builtin #250

Merged
merged 7 commits into from
Sep 23, 2015
Merged

refactor builtin #250

merged 7 commits into from
Sep 23, 2015

Conversation

siddontang
Copy link
Member

move builtin function into builtin package

@ngaut
Copy link
Member

ngaut commented Sep 23, 2015

LGTM

1 similar comment
@shenli
Copy link
Member

shenli commented Sep 23, 2015

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"
Copy link
Member

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?

Copy link
Member Author

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()
Copy link
Member

Choose a reason for hiding this comment

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

Why herecreateDistinct ?

@siddontang
Copy link
Member Author

PTAL @qiuyesuifeng

qiuyesuifeng added a commit that referenced this pull request Sep 23, 2015
@qiuyesuifeng qiuyesuifeng merged commit 2ca339d into master Sep 23, 2015
@qiuyesuifeng qiuyesuifeng deleted the siddontang/refactor-builtin branch September 23, 2015 08:57
xhebox pushed a commit to xhebox/tidb that referenced this pull request Sep 28, 2021
xhebox pushed a commit to xhebox/tidb that referenced this pull request Oct 8, 2021
okJiang pushed a commit to okJiang/tidb that referenced this pull request Oct 19, 2021
CabinfeverB pushed a commit to CabinfeverB/tidb that referenced this pull request Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants