Skip to content
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

GH-37257: [Ruby][FlightSQL] Use the same options for auto prepared statement close request #37258

Merged
merged 3 commits into from
Aug 23, 2023

Conversation

kou
Copy link
Member

@kou kou commented Aug 18, 2023

Rationale for this change

If we don't pass the same options for auto prepared statement close request, the close request may be failed.
For example, it's caused when authentication information in the options.

What changes are included in this PR?

ArrowFlightSQL::Client#prepare change is the main change to use the given options for auto prepared statement close request too.

Other changes (gaflight_server_call_context_foreach_incoming_header() and related changes) are for testing the above change.

Are these changes tested?

Yes.

Are there any user-facing changes?

Yes.

@github-actions
Copy link

⚠️ GitHub issue #37257 has been automatically assigned in GitHub to PR creator.

@kou
Copy link
Member Author

kou commented Aug 23, 2023

+1

@kou kou merged commit 7da0bff into apache:main Aug 23, 2023
8 checks passed
@kou kou deleted the ruby-flight-sql-prepare-close-options branch August 23, 2023 01:12
@kou kou removed the awaiting committer review Awaiting committer review label Aug 23, 2023
@conbench-apache-arrow
Copy link

After merging your PR, Conbench analyzed the 5 benchmarking runs that have been run so far on merge-commit 7da0bff.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about possible false positives for unstable benchmarks that are known to sometimes produce them.

loicalleyne pushed a commit to loicalleyne/arrow that referenced this pull request Nov 13, 2023
…red statement close request (apache#37258)

### Rationale for this change

If we don't pass the same options for auto prepared statement close request, the close request may be failed.
For example, it's caused when authentication information in the options. 

### What changes are included in this PR?

`ArrowFlightSQL::Client#prepare` change is the main change to use the given options for auto prepared statement close  request too.

Other changes (`gaflight_server_call_context_foreach_incoming_header()` and related changes) are for testing the above change.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

Yes.
* Closes: apache#37257

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Ruby][FlightSQL] Arrow::Flight::CallOptions isn't used for auto prepared statement close request
1 participant