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

parser, evaluator: support mysql builtin functions ln(), log(), log2(), log10() #2258

Merged
merged 1 commit into from
Dec 16, 2016

Conversation

hamo
Copy link
Contributor

@hamo hamo commented Dec 15, 2016

basic support for mysql builtin functions ln(), log(), log2() and log10()


This change is Reviewable

@CLAassistant
Copy link

CLAassistant commented Dec 15, 2016

CLA assistant check
All committers have signed the CLA.

}

if x <= 0 {
d.SetNull()
Copy link
Member

Choose a reason for hiding this comment

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

d is null by default, we don't need to call SetNull, just return will do.

@coocood
Copy link
Member

coocood commented Dec 15, 2016

@hamo
Please add type infer at plan/typeinferer.go and plan/typeiferer_test.go.

@tiancaiamao
Copy link
Contributor

Good job! Please also add ln, log, log2, log10 to this table:

unreservedKws := []string{

@hamo
Copy link
Contributor Author

hamo commented Dec 15, 2016

PTAL @tiancaiamao @coocood

@tiancaiamao
Copy link
Contributor

LGTM

Copy link
Member

@shenli shenli left a comment

Choose a reason for hiding this comment

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

LGTM

@shenli shenli merged commit 8eb2bbd into pingcap:master Dec 16, 2016
@shenli
Copy link
Member

shenli commented Dec 16, 2016

@hamo Thank your very much!

@sre-bot sre-bot added the contribution This PR is from a community contributor. label Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution This PR is from a community contributor.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants