-
Notifications
You must be signed in to change notification settings - Fork 103
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
Skip query result from rewritten queries #4633
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4633 +/- ##
==========================================
- Coverage 87.46% 86.53% -0.93%
==========================================
Files 1370 1369 -1
Lines 57912 57962 +50
Branches 7210 7210
==========================================
- Hits 50651 50157 -494
- Misses 7092 7637 +545
+ Partials 169 168 -1 ☔ View full report in Codecov by Sentry. |
Benchmark ResultMaster commit hash:
|
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.
Add tests if possible.
src/include/parser/statement.h
Outdated
@@ -38,6 +41,7 @@ class Statement { | |||
|
|||
private: | |||
common::StatementType statementType; | |||
bool skipResult_; |
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.
I would call this internal_
. And also comment, internal statements are those rewritten from input and whose result should not be rendered on client side.
There isn’t an easy way to test this at the moment. Currently, it has to go through the shell tests, which I don’t believe is the appropriate category for it. I’d like to refactor the end-to-end tests to execute via query while disabling encoded join and plan enumeration. |
Benchmark ResultMaster commit hash:
|
Description
Query results from rewritten queries should only be kept as internal one, but not exposed as query result to users.