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): support reuse-connection location #1594

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

lidavidm
Copy link
Member

@lidavidm lidavidm commented Mar 7, 2024

Fixes #1588.

@github-actions github-actions bot added this to the ADBC Libraries 0.11.0 milestone Mar 7, 2024
@lidavidm lidavidm marked this pull request as ready for review March 7, 2024 18:13
@lidavidm lidavidm requested a review from zeroshade as a code owner March 7, 2024 18:13
Comment on lines +72 to +75
if loc.Uri == flight.LocationReuseConnection {
hasFallback = true
continue
}
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't we break instead of continue? or at least do the same as we do below and attempt to reuse the connection, continuing the loop if it errors, returning if it succeeds?

Copy link
Member Author

Choose a reason for hiding this comment

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

What I'm doing is: first try everything except reuse-connection, then if all other alternatives fail, try the original service

Copy link
Member

Choose a reason for hiding this comment

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

is that correct semantically? We don't want to maintain the order and have it do the reuse-connection before moving on to further locations?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it's always been said that order is unspecified.

Copy link
Member

Choose a reason for hiding this comment

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

Okay then, I'm fine with this :)

@lidavidm lidavidm merged commit e2be3f1 into apache:main Mar 7, 2024
32 of 33 checks passed
@lidavidm lidavidm deleted the gh-1588 branch March 7, 2024 19:07
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: recognize reuse-connection scheme
2 participants