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

Handle expressions that result in top-level case statements in Search… #7331

Closed
wants to merge 1 commit into from

Conversation

tuespetre
Copy link
Contributor

…ConditionTranslatingVisitor

Addresses #7271

@dnfclas
Copy link

dnfclas commented Dec 30, 2016

Hi @tuespetre, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.

TTYL, DNFBOT;

@divega divega added this to the 2.0.0 milestone Dec 30, 2016

if (_isSearchCondition)
if (expression.IsLogicalOperation())
Copy link
Contributor

Choose a reason for hiding this comment

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

simplify this as _isSearchCondition = expression.IsLogicalOperation()

.Where(o => o.OrderID > 54321 | o.OrderID > 98765 | o.OrderID > 1234567));
}

[ConditionalFact]
Copy link
Contributor

Choose a reason for hiding this comment

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

Just for coverage - Test for binary and with binary and.

@@ -2029,6 +2029,43 @@ public virtual void Where_Is_on_same_type()
}

[ConditionalFact]
Copy link
Contributor

Choose a reason for hiding this comment

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

Also add same tests in AsyncQueryTestBase. You don't need to assert SQL gen for those.

@smitpatel
Copy link
Contributor

@tuespetre - Please update PR with requested changes and rebase it on latest dev.

@rowanmiller
Copy link
Contributor

@tuespetre are you planning to address the feedback on this PR?

@tuespetre
Copy link
Contributor Author

Oh, sorry -- I forgot to reply. Yes, I am planning to.

@tuespetre
Copy link
Contributor Author

@smitpatel looks like this is obsoleted by your new PR, want me to close this one?

@tuespetre tuespetre closed this Feb 7, 2017
@smitpatel
Copy link
Contributor

@tuespetre - Thank you for your efforts. We had been pending doing a refactor in that part of query pipeline to improve accuracy since we had seen good incoming traffic of bugs in that area. Due to being closer to correct solution, the underlying issue was getting resolved in refactoring. Since the refactored code was different approach from the one outlined in this PR (which is along the line of older code), we couldn't take this in as refactoring would be changing all of it. Though thank you for your help.

@tuespetre
Copy link
Contributor Author

Anytime!

@ajcvickers ajcvickers removed this from the 2.0.0-preview1 milestone Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants