Skip to content

Conversation

@diegomarquezp
Copy link
Collaborator

@diegomarquezp diegomarquezp commented Oct 21, 2025

Adds a new query.[h|cc] file with implementations both for BoundQuery and PreparedQuery.
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.

@product-auto-label product-auto-label bot added the api: bigtable Issues related to the Bigtable API. label Oct 21, 2025
@codecov
Copy link

codecov bot commented Oct 21, 2025

Codecov Report

❌ Patch coverage is 97.97980% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.10%. Comparing base (f149191) to head (15935d5).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
google/cloud/bigtable/bound_query_test.cc 96.07% 2 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@diegomarquezp
Copy link
Collaborator Author

64/146 Test #1017: licensemanager_quickstart .............***Failed

Seems unrelated to this PR.

@diegomarquezp diegomarquezp marked this pull request as ready for review October 21, 2025 23:15
@diegomarquezp diegomarquezp requested a review from a team as a code owner October 21, 2025 23:15
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may
Copy link
Member

Choose a reason for hiding this comment

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

nit: remove extra newline

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

namespace {
using ::google::bigtable::v2::PrepareQueryResponse;

class BasicInputs {
Copy link
Member

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.

Copy link
Collaborator Author

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.

Copy link
Member

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].

Copy link
Collaborator Author

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.

@scotthart
Copy link
Member

64/146 Test #1017: licensemanager_quickstart .............***Failed

Seems unrelated to this PR.

Have you had a chance to rebase since I submitted #15649?

@diegomarquezp
Copy link
Collaborator Author

64/146 Test #1017: licensemanager_quickstart .............***Failed
Seems unrelated to this PR.

Have you had a chance to rebase since I submitted #15649?

I just rebased it. Thank you.

@diegomarquezp diegomarquezp marked this pull request as draft October 23, 2025 00:13
@diegomarquezp
Copy link
Collaborator Author

Converting back to draft as there are failing targets

@diegomarquezp diegomarquezp marked this pull request as ready for review October 23, 2025 15:55
@diegomarquezp diegomarquezp merged commit 66b9132 into googleapis:main Oct 23, 2025
66 of 67 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigtable Issues related to the Bigtable API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants