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

feat(go/adbc/driver/flightsql): enable incremental queries #1457

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

lidavidm
Copy link
Member

@lidavidm lidavidm commented Jan 12, 2024

Requires apache/arrow#39575.

Closes #1451.

@github-actions github-actions bot added this to the ADBC Libraries 0.10.0 milestone Jan 12, 2024
@lidavidm lidavidm force-pushed the gh1451 branch 4 times, most recently from 579d656 to 7b7477e Compare January 12, 2024 19:42
@lidavidm lidavidm marked this pull request as ready for review January 12, 2024 20:46
lidavidm added a commit to apache/arrow that referenced this pull request Jan 19, 2024
### Rationale for this change

It's impossible to use the current bindings with PollFlightInfo. Required for apache/arrow-adbc#1457.

### What changes are included in this PR?

Add new methods that expose PollFlightInfo.

### Are these changes tested?

Yes

### Are there any user-facing changes?

Adds new methods.
* Closes: #39574

Authored-by: David Li <[email protected]>
Signed-off-by: David Li <[email protected]>
@lidavidm lidavidm force-pushed the gh1451 branch 2 times, most recently from 470db9a to f2accba Compare January 19, 2024 19:34
@lidavidm
Copy link
Member Author

CC @zeroshade

@@ -132,6 +153,9 @@ type statement struct {
prepared *flightsql.PreparedStatement
queueSize int
timeouts timeoutOption
// TODO: this needs to be cleared at appropriate times
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we create a corresponding issue to make sure we don't forget to do this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I meant to do this before opening it, thanks. I've updated it so that entrypoints reset the incremental execution state where appropriate.

Comment on lines 553 to 589
if s.prepared != nil {
poll, err = s.prepared.ExecutePoll(ctx, s.incrementalState.retryDescriptor, grpc.Header(&header), grpc.Trailer(&trailer), s.timeouts)
} else {
poll, err = s.query.poll(ctx, s.cnxn, s.incrementalState.retryDescriptor, grpc.Header(&header), grpc.Trailer(&trailer), s.timeouts)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It feels like this would be better as a helper method on s to make this easier to read

Code: adbc.StatusInternal,
}
}
info = &flight.FlightInfo{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zeroshade
Copy link
Member

Looks good in general other than a few comments / nitpicks

Copy link
Member

@zeroshade zeroshade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lidavidm lidavidm merged commit 0bd45fd into apache:main Jan 22, 2024
48 checks passed
@lidavidm lidavidm deleted the gh1451 branch January 22, 2024 17:17
soumyadsanyal pushed a commit to soumyadsanyal/arrow-adbc that referenced this pull request Jan 31, 2024
dgreiss pushed a commit to dgreiss/arrow that referenced this pull request Feb 19, 2024
### Rationale for this change

It's impossible to use the current bindings with PollFlightInfo. Required for apache/arrow-adbc#1457.

### What changes are included in this PR?

Add new methods that expose PollFlightInfo.

### Are these changes tested?

Yes

### Are there any user-facing changes?

Adds new methods.
* Closes: apache#39574

Authored-by: David Li <[email protected]>
Signed-off-by: David Li <[email protected]>
zanmato1984 pushed a commit to zanmato1984/arrow that referenced this pull request Feb 28, 2024
### Rationale for this change

It's impossible to use the current bindings with PollFlightInfo. Required for apache/arrow-adbc#1457.

### What changes are included in this PR?

Add new methods that expose PollFlightInfo.

### Are these changes tested?

Yes

### Are there any user-facing changes?

Adds new methods.
* Closes: apache#39574

Authored-by: David Li <[email protected]>
Signed-off-by: David Li <[email protected]>
thisisnic pushed a commit to thisisnic/arrow that referenced this pull request Mar 8, 2024
### Rationale for this change

It's impossible to use the current bindings with PollFlightInfo. Required for apache/arrow-adbc#1457.

### What changes are included in this PR?

Add new methods that expose PollFlightInfo.

### Are these changes tested?

Yes

### Are there any user-facing changes?

Adds new methods.
* Closes: apache#39574

Authored-by: David Li <[email protected]>
Signed-off-by: David Li <[email protected]>
kou pushed a commit to apache/arrow-go that referenced this pull request Aug 30, 2024
### Rationale for this change

It's impossible to use the current bindings with PollFlightInfo. Required for apache/arrow-adbc#1457.

### What changes are included in this PR?

Add new methods that expose PollFlightInfo.

### Are these changes tested?

Yes

### Are there any user-facing changes?

Adds new methods.
* Closes: #39574

Authored-by: David Li <[email protected]>
Signed-off-by: David Li <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

go/adbc/driver/flightsql: support new PollFlightInfo
2 participants