Skip to content

feat: test parameter stream binding - #306

Merged
Mandukhai-Alimaa merged 1 commit into
adbc-drivers:mainfrom
fornwall:bind-more
Sep 18, 2026
Merged

Mandukhai-Alimaa merged 1 commit into
adbc-drivers:mainfrom
fornwall:bind-more

Conversation

@fornwall

Copy link
Copy Markdown
Contributor

Add tests for binding SQL parameters from Arrow streams.

Closes #133

@fornwall
fornwall force-pushed the bind-more branch 2 times, most recently from c8b9cfc to 1cc5c8a Compare September 18, 2026 10:05
Add tests for binding SQL parameters from Arrow streams.

Signed-off-by: Fredrik Fornwall <fredrik@fornwall.net>
@Mandukhai-Alimaa
Mandukhai-Alimaa merged commit 3c67c7b into adbc-drivers:main Sep 18, 2026
3 checks passed
@fornwall
fornwall deleted the bind-more branch September 19, 2026 07:18
Comment thread tests/test_query.py

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this really necessary? I can see the argument for testing the tests, but I think the approach there needs some consideration, vs just throwing mocks at things

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

(And, while I don't know what was used here, I have found that LLMs really really want to spam out tests like this when I use them with this codebase.)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

What do you think about some form of snapshot testing? Perhaps using https://15r10nk.github.io/inline-snapshot/latest/?

So we have some test setups against perhaps sqlite, and create snapshots of what SQL queries that gets run and which assertion are made, which can be inspected and updated? Trade-offs as always, but perhaps a good fit here?

Perhaps create a "decide on testing strategy/ambitions" issue.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah, again, I'd like to understand why it's necessary to test this in the first place.

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.

Test multi-batch binding

3 participants