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

fix(go/adbc/driver/flightsql): propagate headers in GetObjects #1996

Merged
merged 3 commits into from
Jul 10, 2024

Conversation

lidavidm
Copy link
Member

@lidavidm lidavidm commented Jul 9, 2024

Fixes #1995.

@lidavidm
Copy link
Member Author

lidavidm commented Jul 9, 2024

I'm going to expand the test here to get more coverage

@lidavidm lidavidm force-pushed the getobjects-header branch from e2f3675 to d07fa47 Compare July 9, 2024 04:31
@lidavidm lidavidm marked this pull request as ready for review July 9, 2024 04:31
@lidavidm lidavidm requested a review from zeroshade as a code owner July 9, 2024 04:31
@github-actions github-actions bot added this to the ADBC Libraries 14 milestone Jul 9, 2024
@@ -225,6 +225,7 @@ func (c *connectionImpl) getSessionOptions(ctx context.Context) (map[string]inte

func (c *connectionImpl) setSessionOptions(ctx context.Context, key string, val interface{}) error {
req := flight.SetSessionOptionsRequest{}
ctx = metadata.NewOutgoingContext(ctx, c.hdrs)
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 use AppendToOutgoingContext instead? Just in case there's already an existing context so that we're appending the headers rather than dropping any existing ones?

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.

Overall LGTM just one nitpick above

@lidavidm lidavidm merged commit 4cc51dd into apache:main Jul 10, 2024
65 checks passed
@lidavidm lidavidm deleted the getobjects-header branch July 10, 2024 02:47
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: headers aren't propagated in GetObjects
2 participants