You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
options=ArrowFlight::CallOptions.newsql_client.prepare("... SQL ...",options)do |statement|
# ...# statement.close is called automatically without the "options" but# the "options" is used like statement.close(options).end
Component(s)
FlightRPC, Ruby
The text was updated successfully, but these errors were encountered:
kou
changed the title
[Ruby][FlightSQL] Arrow::Flight::CallOptions isn't used for auto prepared close request
[Ruby][FlightSQL] Arrow::Flight::CallOptions isn't used for auto prepared statement close request
Aug 18, 2023
kou
added a commit
to kou/arrow
that referenced
this issue
Aug 18, 2023
…atement close request (#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: #37257
Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
…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>
Describe the enhancement requested
Component(s)
FlightRPC, Ruby
The text was updated successfully, but these errors were encountered: