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

expression: implement vectorized evaluation for 'builtinDurationAnyValueSig' #12605

Merged
merged 8 commits into from
Oct 11, 2019
Merged

expression: implement vectorized evaluation for 'builtinDurationAnyValueSig' #12605

merged 8 commits into from
Oct 11, 2019

Conversation

tsthght
Copy link
Contributor

@tsthght tsthght commented Oct 10, 2019

What problem does this PR solve?

Implement vectorized evaluation for builtinDurationAnyValueSig, for #12176

What is changed and how it works?

BenchmarkVectorizedBuiltinMiscellaneousCasesFunc/builtinDurationAnyValueSig-VecBuiltinFunc-8        20000000	       115 ns/op	       0 B/op	       0 allocs/op
BenchmarkVectorizedBuiltinMiscellaneousCasesFunc/builtinDurationAnyValueSig-NonVecBuiltinFunc-8       100000	     20525 ns/op	       0 B/op	       0 allocs/op

Check List

Tests

  • Unit test

@sre-bot sre-bot added the contribution This PR is from a community contributor. label Oct 10, 2019
@tsthght
Copy link
Contributor Author

tsthght commented Oct 10, 2019

/rebuild

}

func (b *builtinDurationAnyValueSig) vecEvalDuration(input *chunk.Chunk, result *chunk.Column) error {
return errors.Errorf("not implemented")
if err := b.args[0].VecEvalDuration(b.ctx, input, result); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

use b.args[0].VecEvalDuration(b.ctx, input, result) for shortly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok~

@codecov
Copy link

codecov bot commented Oct 10, 2019

Codecov Report

Merging #12605 into master will decrease coverage by 0.0169%.
The diff coverage is 100%.

@@               Coverage Diff               @@
##             master     #12605       +/-   ##
===============================================
- Coverage   79.8924%   79.8754%   -0.017%     
===============================================
  Files           460        460               
  Lines        103533     103391      -142     
===============================================
- Hits          82715      82584      -131     
+ Misses        14752      14746        -6     
+ Partials       6066       6061        -5

Copy link
Contributor

@SunRunAway SunRunAway left a comment

Choose a reason for hiding this comment

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

LGTM

wshwsh12
wshwsh12 previously approved these changes Oct 10, 2019
Copy link
Contributor

@wshwsh12 wshwsh12 left a comment

Choose a reason for hiding this comment

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

LGTM

@wshwsh12 wshwsh12 added status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. labels Oct 10, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Oct 10, 2019

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Oct 10, 2019

@tsthght merge failed.

@tsthght
Copy link
Contributor Author

tsthght commented Oct 10, 2019

/run-all-tests

@XuHuaiyu
Copy link
Contributor

/run-unit-test

@qw4990
Copy link
Contributor

qw4990 commented Oct 11, 2019

/run-all-tests

@qw4990
Copy link
Contributor

qw4990 commented Oct 11, 2019

/run-unit-test

@qw4990
Copy link
Contributor

qw4990 commented Oct 11, 2019

@tsthght Please format the file builtin_miscellaneous_vec_test to pass the check.

@qw4990
Copy link
Contributor

qw4990 commented Oct 11, 2019

@tsthght Please format expression/builtin_miscellaneous_vec_test.go 🤣

@qw4990 qw4990 merged commit 394505b into pingcap:master Oct 11, 2019
XiaTianliang pushed a commit to XiaTianliang/tidb that referenced this pull request Dec 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/expression contribution This PR is from a community contributor. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants