-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Support explain verification #15101
Merged
Merged
Support explain verification #15101
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
caithagoras
changed the title
[WIP Support explain verification
[WIP] Support explain verification
Sep 1, 2020
caithagoras
force-pushed
the
s1
branch
12 times, most recently
from
September 1, 2020 04:58
06c39a0
to
1811342
Compare
caithagoras
changed the title
[WIP] Support explain verification
Support explain verification
Sep 1, 2020
caithagoras
force-pushed
the
s1
branch
7 times, most recently
from
September 2, 2020 00:21
9879ca9
to
10ad3bf
Compare
caithagoras
requested review from
sujay-jain
and removed request for
bhhari,
tdcmeehan and
yingsu00
September 3, 2020 09:14
caithagoras
force-pushed
the
s1
branch
2 times, most recently
from
September 8, 2020 04:57
8d87536
to
340ecf9
Compare
sujay-jain
reviewed
Sep 9, 2020
...to-verifier/src/main/java/com/facebook/presto/verifier/framework/DataVerificationConfig.java
Outdated
Show resolved
Hide resolved
Still reviewing - first 2 commits LGTM |
caithagoras
force-pushed
the
s1
branch
5 times, most recently
from
September 10, 2020 09:43
3e07ba0
to
5dd8d16
Compare
sujay-jain
reviewed
Sep 10, 2020
presto-verifier/src/main/java/com/facebook/presto/verifier/framework/AbstractVerification.java
Show resolved
Hide resolved
sujay-jain
reviewed
Sep 10, 2020
...to-verifier/src/main/java/com/facebook/presto/verifier/event/DeterminismAnalysisDetails.java
Outdated
Show resolved
Hide resolved
sujay-jain
approved these changes
Sep 10, 2020
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.
LGTM
@mbasmanova This PR is ready now. Thank you for helping! |
Convert MatchResult to an interface and move the data-verification- specific implementation of the MatchResult to DataMatchResult.
QueryBundle contained a field tableName, but not all query rewrites result in queries with a target table. Move the field to a subclass DataQueryBundle.
Add a new functionality to the verifier to allow explain verification. For each query pairs to be verified, explain both control and test, and compare the query plans. Verification is marked as succeeded as long as the test query can be explained. Introduced a new field matchType in the output event, which can be used to indicate whether there is plan difference. For non-DML queries, we don't care much about plan difference and hence the control query and plan comparison are skipped.
This was referenced Oct 6, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a new functionality to the verifier to allow explain verification.
For each query pairs to be verified, explain both control and test, and
compare the query plans. Verification is marked as succeeded as long as
the test query can be explained.
Introduced a new field matchType in the output event, which can be used
to indicate whether there is plan difference.
For non-DML queries, we don't care much about plan difference and hence
the control query and the plan comparison are skipped.