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: fix the bug of vectorized case when #17879

Closed
wants to merge 2 commits into from

Conversation

fzhedu
Copy link
Contributor

@fzhedu fzhedu commented Jun 9, 2020

What problem does this PR solve?

Issue Number: close #17725

Problem Summary: the vectorized execution runs each branch, some of them cause unnecessary errors.

What is changed and how it works?

What's Changed: record all errors, and add a parameter to avoid the warning.

Related changes

  • Need to cherry-pick to the release branch

Check List

Tests

  • Unit test (TODO)

Side effects

  • TO check compatibility

Release note

  • fix the bug of vectorized case when expression

@@ -64,7 +66,8 @@ func (b *builtinCaseWhen{{ .TypeName }}Sig) vecEval{{ .TypeName }}(input *chunk.
thensSlice := make([][]{{.TypeNameGo}}, l/2)
var eLseSlice []{{.TypeNameGo}}
{{- end }}

allErrs := make([][]error,l/2)
Copy link
Member

Choose a reason for hiding this comment

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

incorrect indentation?

@fzhedu
Copy link
Contributor Author

fzhedu commented Aug 21, 2020

#19367 close this.

@fzhedu fzhedu closed this Aug 21, 2020
@@ -82,30 +85,111 @@ func (b *builtinCaseWhen{{ .TypeName }}Sig) vecEval{{ .TypeName }}(input *chunk.
return err
Copy link
Contributor Author

Choose a reason for hiding this comment

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

VecEvalInt() dose not return error[]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

expression: short-cut expressions cause unnecessary warnings, which even causes errors in update statements.
2 participants