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

Fix: Explicit handle null pattern and escape in like function. #6894

Closed

Conversation

laithsakka
Copy link
Contributor

@laithsakka laithsakka commented Oct 4, 2023

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

@netlify
Copy link

netlify bot commented Oct 4, 2023

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 0950cda
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/652475845d6eb200081bdb97

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Oct 4, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49917874

laithsakka added a commit to laithsakka/velox that referenced this pull request Oct 4, 2023
…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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49917874

laithsakka added a commit to laithsakka/velox that referenced this pull request Oct 4, 2023
…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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49917874

laithsakka added a commit to laithsakka/velox that referenced this pull request Oct 4, 2023
…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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49917874

laithsakka added a commit to laithsakka/velox that referenced this pull request Oct 4, 2023
…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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49917874

laithsakka added a commit to laithsakka/velox that referenced this pull request Oct 4, 2023
…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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49917874

laithsakka added a commit to laithsakka/velox that referenced this pull request Oct 5, 2023
…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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49917874

@@ -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 {
Copy link
Contributor

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.

laithsakka added a commit to laithsakka/velox that referenced this pull request Oct 5, 2023
…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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49917874

@laithsakka laithsakka requested a review from mbasmanova October 5, 2023 16:45
// 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 {
Copy link
Contributor

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

Copy link
Contributor Author

@laithsakka laithsakka Oct 5, 2023

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 ?

Copy link
Contributor

@mbasmanova mbasmanova left a 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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49917874

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 37d8984.

@conbench-facebook
Copy link

Conbench analyzed the 1 benchmark run on commit 37d89848.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

ericyuliu pushed a commit to ericyuliu/velox that referenced this pull request Oct 12, 2023
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants