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

builtin: add elt built-in function #2870

Merged
merged 11 commits into from
Mar 20, 2017
Merged

builtin: add elt built-in function #2870

merged 11 commits into from
Mar 20, 2017

Conversation

hsqlu
Copy link
Contributor

@hsqlu hsqlu commented Mar 17, 2017

@XuHuaiyu
Copy link
Contributor

@hsqlu
Thanks for your PR.
If possible, please check and register the builtin function you determine to implement in issue to let others know, thank you!

@coocood
Copy link
Member

coocood commented Mar 19, 2017

LGTM

@zimulala zimulala added the status/LGT1 Indicates that a PR has LGTM 1. label Mar 20, 2017
@coocood coocood added the contribution This PR is from a community contributor. label Mar 20, 2017
return d, errFunctionNotExists.GenByArgs("elt")
args, err := b.evalArgs(row)
if err != nil {
return types.Datum{}, errors.Trace(err)
Copy link
Contributor

Choose a reason for hiding this comment

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

Return d, errors.Trace(err) is better.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. That would be unified. I've modified.
PTAL. Thanks!

make the error return type unified
@zimulala
Copy link
Contributor

LGTM

@zimulala zimulala merged commit 67e89f3 into pingcap:master Mar 20, 2017
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. status/LGT1 Indicates that a PR has LGTM 1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants