-
Notifications
You must be signed in to change notification settings - Fork 435
feat(bigtable): add support for Prepared and Bound query #15650
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
feat(bigtable): add support for Prepared and Bound query #15650
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15650 +/- ##
========================================
Coverage 93.10% 93.10%
========================================
Files 2433 2439 +6
Lines 223834 223934 +100
========================================
+ Hits 208402 208504 +102
+ Misses 15432 15430 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Seems unrelated to this PR. |
google/cloud/bigtable/query_test.cc
Outdated
| // | ||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||
| // you may not use this file except in compliance with the License. | ||
| // You may |
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.
nit: remove extra newline
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.
Done
google/cloud/bigtable/query_test.cc
Outdated
| namespace { | ||
| using ::google::bigtable::v2::PrepareQueryResponse; | ||
|
|
||
| class BasicInputs { |
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 recognize that some of this setup is repeated for each test, but tests should have their inputs/expected values within the body of the test case to improve readability when just looking at a single test. Let's remove this class entirely and put the necessary setup in each test case as needed, even if it means some duplication.
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 agree it's more readable. Done.
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.
Let's split these classes and their tests into separate sets of files: prepared_query(_test)?.[h|cc] and bound_query(_test)?.[h|cc].
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.
Now we have separate files. Thanks.
Have you had a chance to rebase since I submitted #15649? |
be62a56 to
b11b3a5
Compare
I just rebased it. Thank you. |
|
Converting back to draft as there are failing targets |
Adds a new
query.[h|cc]file with implementations both forBoundQueryandPreparedQuery.Not all of the functionality is implemented as other parts will enable further development.
Notably,
QueryPlan's refresh function has been defined with dummy behavior.Additionally,
PreparedQuery's private constructor has been made public for testing purposes in the meantime.