-
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: Explicit handle null pattern and escape in like function. #6894
Conversation
✅ Deploy Preview for meta-velox canceled.
|
This pull request was exported from Phabricator. Differential Revision: D49917874 |
…ookincubator#6894) Summary: When value at constant vector is null we shall not call valueAt(). This added check in ConstantVector and also make sure like function handles null explicitly. Differential Revision: D49917874
d809692
to
312326e
Compare
This pull request was exported from Phabricator. Differential Revision: D49917874 |
…ookincubator#6894) Summary: When value at constant vector is null we shall not call valueAt(). This added check in ConstantVector and also make sure like function handles null explicitly. Differential Revision: D49917874
312326e
to
2f41f2e
Compare
This pull request was exported from Phabricator. Differential Revision: D49917874 |
…ookincubator#6894) Summary: When value at constant vector is null we shall not call valueAt(). This added check in ConstantVector and also make sure like function handles null explicitly. Differential Revision: D49917874
2f41f2e
to
71d9d6d
Compare
This pull request was exported from Phabricator. Differential Revision: D49917874 |
…ookincubator#6894) Summary: When value at constant vector is null we shall not call valueAt(). This added check in ConstantVector and also make sure like function handles null explicitly. Differential Revision: D49917874
71d9d6d
to
f2db3ef
Compare
This pull request was exported from Phabricator. Differential Revision: D49917874 |
…ookincubator#6894) Summary: When value at constant vector is null we shall not call valueAt(). This added check in ConstantVector and also make sure like function handles null explicitly. Differential Revision: D49917874
f2db3ef
to
c883bf4
Compare
This pull request was exported from Phabricator. Differential Revision: D49917874 |
c883bf4
to
f96d098
Compare
…ookincubator#6894) Summary: When value at constant vector is null we shall not call valueAt(). This added check in ConstantVector and also make sure like function handles null explicitly. Differential Revision: D49917874
This pull request was exported from Phabricator. Differential Revision: D49917874 |
velox/functions/lib/Re2Functions.cpp
Outdated
@@ -470,6 +470,18 @@ class OptimizedLikeWithMemcmp final : public VectorFunction { | |||
vector_size_t reducedPatternLength_; | |||
}; | |||
|
|||
// This functions is constructed when the input is a constant null. | |||
class AlwaysNull final : public VectorFunction { |
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.
There is AlwaysFailingVectorFunction in VectorFunction.h. If this one doesn't work, let's add a new one in the same place so it can be reused.
…ookincubator#6894) Summary: When value at constant vector is null we shall not call valueAt(). When i added a check in ConstantVector valueAt that value is not null i got other faluires I will address them in seperate PR then add the check. Differential Revision: D49917874
f96d098
to
a5792a9
Compare
This pull request was exported from Phabricator. Differential Revision: D49917874 |
velox/expression/VectorFunction.h
Outdated
// This functions is used when we know a function will never be called because | ||
// it is default null with a literal null input value. For example like(c0, | ||
// null). | ||
class AlwaysNullDefaultNull final : public VectorFunction { |
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.
This name is a bit confusing to me. Wondering if we could renaming to something easier to understand. Maybe, NeverCalled? CC: @bikramSingh91
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.
NeverCalledDefaultNull? @mbasmanova is that good name ?
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.
Thanks.
…ookincubator#6894) Summary: When value at constant vector is null we shall not call valueAt(). When i added a check in ConstantVector valueAt that value is not null i got other faluires I will address them in seperate PR then add the check. Reviewed By: mbasmanova Differential Revision: D49917874
a5792a9
to
0950cda
Compare
This pull request was exported from Phabricator. Differential Revision: D49917874 |
This pull request has been merged in 37d8984. |
Conbench analyzed the 1 benchmark run on commit There were no benchmark performance regressions. 🎉 The full Conbench report has more details. |
…ookincubator#6894) Summary: Pull Request resolved: facebookincubator#6894 When value at constant vector is null we shall not call valueAt(). When i added a check in ConstantVector valueAt that value is not null i got other faluires I will address them in seperate PR then add the check. Reviewed By: mbasmanova Differential Revision: D49917874 fbshipit-source-id: db210ee2a777f1c4a1378d5d049a58389b08e646
Summary:
When value at constant vector is null we shall not call valueAt().
When i added a check in ConstantVector valueAt that value is not null i got other faluires
I will address them in seperate PR then add the check.
Differential Revision: D49917874