-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix Array/Map/RowVector::copyRanges for UNKNOWN source #6607
Conversation
✅ Deploy Preview for meta-velox canceled.
|
becf0b5
to
a50f8b5
Compare
a50f8b5
to
415ad04
Compare
@mbasmanova has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
if (leafVector->isConstantEncoding()) { | ||
// A null constant does not have a value vector, so wrappedVector | ||
// returns the constant. | ||
VELOX_CHECK(leafVector->isNullAt(0)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: VELOX_USER_CHECK?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is not a user error, but rather a bug inside Velox as it should not allow creating vectors that would trigger this check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mbasmanova LGTM. Thanks!
@mbasmanova merged this pull request in 63fa93a. |
Conbench analyzed the 1 benchmark run on commit There were no benchmark performance regressions. 🎉 The full Conbench report has more details. |
…ator#6607) Summary: Fix crashes when copying from TypeKind::UNKNOWN vector in the following methods: - Map/Array/RowVector::copyRanges - FlatVector<StringView>::copyRanges - FlatVector<bool>::copy(source, rows, toSourceRow) - RowVector::copy(source, rows, toSourceRow) Fixes facebookincubator#6606 Pull Request resolved: facebookincubator#6607 Reviewed By: xiaoxmeng Differential Revision: D49348224 Pulled By: mbasmanova fbshipit-source-id: 57598428a36787ee3c57a1b7c9f6cffd11206bf6
…ator#6607) Summary: Fix crashes when copying from TypeKind::UNKNOWN vector in the following methods: - Map/Array/RowVector::copyRanges - FlatVector<StringView>::copyRanges - FlatVector<bool>::copy(source, rows, toSourceRow) - RowVector::copy(source, rows, toSourceRow) Fixes facebookincubator#6606 Pull Request resolved: facebookincubator#6607 Reviewed By: xiaoxmeng Differential Revision: D49348224 Pulled By: mbasmanova fbshipit-source-id: 57598428a36787ee3c57a1b7c9f6cffd11206bf6
…ator#6607) Summary: Fix crashes when copying from TypeKind::UNKNOWN vector in the following methods: - Map/Array/RowVector::copyRanges - FlatVector<StringView>::copyRanges - FlatVector<bool>::copy(source, rows, toSourceRow) - RowVector::copy(source, rows, toSourceRow) Fixes facebookincubator#6606 Pull Request resolved: facebookincubator#6607 Reviewed By: xiaoxmeng Differential Revision: D49348224 Pulled By: mbasmanova fbshipit-source-id: 57598428a36787ee3c57a1b7c9f6cffd11206bf6
…ator#6607) Summary: Fix crashes when copying from TypeKind::UNKNOWN vector in the following methods: - Map/Array/RowVector::copyRanges - FlatVector<StringView>::copyRanges - FlatVector<bool>::copy(source, rows, toSourceRow) - RowVector::copy(source, rows, toSourceRow) Fixes facebookincubator#6606 Pull Request resolved: facebookincubator#6607 Reviewed By: xiaoxmeng Differential Revision: D49348224 Pulled By: mbasmanova fbshipit-source-id: 57598428a36787ee3c57a1b7c9f6cffd11206bf6
Fix crashes when copying from TypeKind::UNKNOWN vector in the following methods:
Fixes #6606