-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
ARROW-16032: [C++] Migrate FlightClient API to Result<> #12719
Conversation
cpp/src/arrow/flight/integration_tests/test_integration_client.cc
Outdated
Show resolved
Hide resolved
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.
Thanks, let's just make sure we keep the GLib code consistently formatted
c_glib/arrow-flight-glib/client.cpp
Outdated
arrow::Result<std::unique_ptr<arrow::flight::FlightClient>> result = arrow::flight::FlightClient::Connect(*flight_location, | ||
*flight_options); | ||
status = std::move(result).Value(&flight_client); |
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.
A few things:
There's an extra space at the beginning of the line.
Why not use auto
as before and keep things aligned, in a consistent style with everything else?
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.
For formatting, I thought archery would fix these things. Does it not check GLib code?
The explicit type was left over from when I was debugging why the original suggestion wouldn't work, I'll change it back
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.
GLib doesn't use an auto-formatter, unfortunately. So, sorry for the nit-picking here :(
@kou have we considered automated formatting for the GLib code?
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.
We have considered it a few times but we didn't do any actions for it.
It may be a good time to work on it: https://issues.apache.org/jira/browse/ARROW-16137
Benchmark runs are scheduled for baseline = 8eaa995 and contender = 9e08c50. 9e08c50 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
@github-actions crossbow submit verify-rc-source-cpp-linux-ubuntu-18.04-amd64 |
Revision: 9518ca7 Submitted crossbow builds: ursacomputing/crossbow @ actions-1836
|
@zagto It seems that this breaks a CI job on Ubuntu 18.04: https://github.com/ursacomputing/crossbow/runs/5953173410?check_suite_focus=true#step:5:8623
Could you confirm this? |
Thank you @kou. I can confirm this. I filed ARROW-16162/#12856. |
Closes apache#12719 from zagto/flight-api-result-client Authored-by: Tobias Zagorni <tobias@zagorni.eu> Signed-off-by: David Li <li.davidm96@gmail.com>
No description provided.