GH-46584: [C++][FlightRPC] Iterate over endpoints in ODBC driver#47991
GH-46584: [C++][FlightRPC] Iterate over endpoints in ODBC driver#47991lidavidm merged 2 commits intoapache:mainfrom
Conversation
|
|
64e84f5 to
488ff8e
Compare
cpp/src/arrow/flight/sql/odbc/odbc_impl/flight_sql_stream_chunk_buffer.h
Outdated
Show resolved
Hide resolved
| void VerifyArraysContainIntsOnly(std::shared_ptr<Array> intArray) { | ||
| for (int64_t i = 0; i < intArray->length(); ++i) { | ||
| // null values are accepted | ||
| if (!intArray->IsNull(i)) { | ||
| auto scalar_data = intArray->GetScalar(i).ValueOrDie(); | ||
| std::string scalar_str = ConvertToJson(*scalar_data); | ||
| ASSERT_TRUE(std::all_of(scalar_str.begin(), scalar_str.end(), ::isdigit)); | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Can't you just check the array type?
| std::unique_ptr<FlightClient> temp_flight_client; | ||
| util::ThrowIfNotOK(FlightClient::Connect(endpoint_locations[0], client_options) | ||
| .Value(&temp_flight_client)); | ||
| temp_flight_sql_client.reset(new FlightSqlClient(std::move(temp_flight_client))); |
| return boost::make_optional( | ||
| is_not_ok || is_not_empty, | ||
| std::make_pair(std::move(result), temp_flight_sql_client)); |
There was a problem hiding this comment.
Since boost-optional is blocking the MSVC CI (for some reason it doesn't block my local MSVC build), I will remove boost-optional in #48067
|
@lidavidm Please take another look. |
4d34c4c to
4da0d4a
Compare
|
|
||
| using arrow::internal::checked_pointer_cast; | ||
| using std::nullopt; | ||
| using std::optional; |
There was a problem hiding this comment.
not necessarily a blocker here but generally I think we avoid using types from std.
|
@alinaliBQ can you rebase here? |
Address more feedback Avoid using "using" in Headers Add `server->Wait` call Co-Authored-By: justing-bq <justin.gossett@improving.com>
4da0d4a to
70ba716
Compare
|
@lidavidm Thanks and rebased |
|
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 82324f0. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. |
Rationale for this change
GH-46584
What changes are included in this PR?
Iterate over endpoints to get data
Are these changes tested?
Tested in CI and locally on Windows MSVC. Test
flight_sql_stream_chunk_buffer_test.ccis addedAre there any user-facing changes?
N/A