Repository navigation
GH-31521: [C++][Flight] Migrate Flight SQL client to Result - #36559
Conversation
|
|
eb57e88 to
5d62d76
Compare
|
I picked this up because the parent task was labeled as a good first issue! |
|
Ah I still need to test (and update) language bindings. I think Python definitely needs updating at the very least. |
|
@github-actions autotune |
|
There are no Python Flight SQL bindings, fwiw |
Oh, that's easy! I just built and ran the pyarrow flight tests w/o any issue. |
|
The code needs to be clang-formatted (FWIW, I don't think autotune actually works. Maybe for R only.) |
|
Will update now! Looking at the github history, you're right that autotune doesn't seem to kick off a CI job. |
|
Conbench analyzed the 6 benchmark runs on commit There were 10 benchmark results indicating a performance regression:
The full Conbench report has more details. |
| @@ -364,25 +364,15 @@ class ARROW_FLIGHT_SQL_EXPORT FlightSqlClient { | |||
| Status Close(); | |||
|
|
|||
| protected: | |||
There was a problem hiding this comment.
@lidavidm would it be a problem to make these method public? It would solve a problem I'm having and it would enable people to also be able to extend`` the FlightSqlClient by composition and not just inheritance.
There was a problem hiding this comment.
These are here basically only for testing, so that GMock can mock them out for something else. What is the problem?
There was a problem hiding this comment.
I want to create a wrapper/helper that can't live in the header (as private method) but it needs to call DoPut and DoGet.
Additionally: given that these are just for testing and FlightClient is injectable I think a level of indirection can be removed by mocking the FlightClient instead of the FlightSqlClient.
There was a problem hiding this comment.
In C++ that requires declaring everything as virtual, though, and FlightClient wasn't really meant as an interface. (Perhaps that could be changed.)
There was a problem hiding this comment.
and FlightClient wasn't really meant as an interface
Oh, right. I will figure something. At the moment it's very confusing that some of the wrapper methods are virtual while others aren't.
Rationale for this change
Arrow introduced a
Resultreturn object that can be used in place of passing output parameters. Most of Flight has already been migrated.Are these changes tested?
C++ tests pass, which involve the sqlite and acero example servers. Any other testing we would like to see?
Are there any user-facing changes?
Yes. The protected methods DoPut, DoGet, and DoAction for the SQL client have been updated. DoGet already exposed a public API and that has been updated to be virtual.