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

[Go][FlightSQL] Allow passing grpc call options to prepared statement methods #33867

Closed
zeroshade opened this issue Jan 25, 2023 · 0 comments · Fixed by #33868
Closed

[Go][FlightSQL] Allow passing grpc call options to prepared statement methods #33867

zeroshade opened this issue Jan 25, 2023 · 0 comments · Fixed by #33868

Comments

@zeroshade
Copy link
Member

Describe the enhancement requested

Currently you cannot pass grpc.CallOptions to Execute/ExecuteUpdate/Close on flightsql.PreparedStatement objects. We should allow passing call options so that they can get propagated, rather than just copying the call options which were used for the Prepare and just propagating those.

Component(s)

Go

zeroshade added a commit to zeroshade/arrow that referenced this issue Jan 25, 2023
zeroshade added a commit that referenced this issue Jan 25, 2023
…Statement methods (#33868)

### Rationale for this change
To allow propagating timeouts among other call options when using PreparedStatements with FlightSQL we need to update the function signatures to allow passing the call options to them.

### Are there any user-facing changes?
The signatures for the methods on PreparedStatement objects have been updated to accept `opts... grpc.CallOption` as their last parameter. This shouldn't break any existing usage of the methods (since they are optional) but would cause a problem if consumers set up interfaces based on them.

* Closes: #33867

Authored-by: Matt Topol <zotthewizard@gmail.com>
Signed-off-by: Matt Topol <zotthewizard@gmail.com>
@zeroshade zeroshade added this to the 12.0.0 milestone Jan 25, 2023
sjperkins pushed a commit to sjperkins/arrow that referenced this issue Feb 10, 2023
…eparedStatement methods (apache#33868)

### Rationale for this change
To allow propagating timeouts among other call options when using PreparedStatements with FlightSQL we need to update the function signatures to allow passing the call options to them.

### Are there any user-facing changes?
The signatures for the methods on PreparedStatement objects have been updated to accept `opts... grpc.CallOption` as their last parameter. This shouldn't break any existing usage of the methods (since they are optional) but would cause a problem if consumers set up interfaces based on them.

* Closes: apache#33867

Authored-by: Matt Topol <zotthewizard@gmail.com>
Signed-off-by: Matt Topol <zotthewizard@gmail.com>
gringasalpastor pushed a commit to gringasalpastor/arrow that referenced this issue Feb 17, 2023
…eparedStatement methods (apache#33868)

### Rationale for this change
To allow propagating timeouts among other call options when using PreparedStatements with FlightSQL we need to update the function signatures to allow passing the call options to them.

### Are there any user-facing changes?
The signatures for the methods on PreparedStatement objects have been updated to accept `opts... grpc.CallOption` as their last parameter. This shouldn't break any existing usage of the methods (since they are optional) but would cause a problem if consumers set up interfaces based on them.

* Closes: apache#33867

Authored-by: Matt Topol <zotthewizard@gmail.com>
Signed-off-by: Matt Topol <zotthewizard@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment