-
Notifications
You must be signed in to change notification settings - Fork 3.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
[5.0.1] Query: Correctly compute ordering to be copied from outer in collection join #23273
Conversation
@smitpatel Tactics feedback on, "While adding additional test coverages," is that we should bring this back if we have customer reports. If we are very confident that this is something we should fix even without customer reports, then we should make the case for that. Either way we can bring back to tactics when we have more info. |
According to #23276 this is causing incorrect results to customer which will corrupt database without noticing. Let's discuss in triage. I am also fine waiting for a customer to hit the issue. |
Approved by Tactics for 5.0.1. However, we should loop back with Tactics once we have customer reports on this to confirm this was the correct choice. |
830d823
to
02c13d5
Compare
Hello @smitpatel! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
@msftbot merge this after 1 hour |
Hello @smitpatel! Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:
If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you". |
Apologies, while this PR appears ready to be merged, it looks like |
2 similar comments
Apologies, while this PR appears ready to be merged, it looks like |
Apologies, while this PR appears ready to be merged, it looks like |
Are there any limitations to this fix, like a certain depth in the object graph? |
@smarts - There are no limitations to this fix. Though the error msg which arises from this bug is generic and can happen in other totally different scenarios too. Please file a new issue with repro code so that we can investigate. |
Resolves #23211
Resolves #23276
Adding quirk in a separate commit
Description
Same root cause results in two bugs:
Customer impact
Either exception of data corruption when using new split query feature with owned reference types.
How found
We found this while adding MQ test coverage for owned types. It has not been customer reported yet, but we believe that customers will hit this when they start using split queries (which is expected to get very high adoption) and may suffer data corruption.
Test coverage
This PR includes test for the affected scenario. A more thorough testing is being added in #23212
Regression?
No, split query was added in 5.0 only
Risk
Low. The fix only expands scope of pattern match so previously working queries would continue working.