Skip to content

fix(python/adbc_driver_manager): pass table_types filter to GetObjects - #4712

Merged
lidavidm merged 1 commit into
apache:mainfrom
fornwall:get-objects-table-types
Aug 24, 2026
Merged

fix(python/adbc_driver_manager): pass table_types filter to GetObjects#4712
lidavidm merged 1 commit into
apache:mainfrom
fornwall:get-objects-table-types

Conversation

@fornwall

@fornwall fornwall commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

The Cython binding accepted table_types but always passed NULL to AdbcConnectionGetObjects, so the DB-API table_types_filter was silently ignored.

Convert the sequence to the null-terminated const char** the C API expects, keeping the encoded strings alive for the duration of the call, and add coverage proving multiple table types reach the driver.

@fornwall
fornwall requested a review from lidavidm as a code owner August 23, 2026 06:29
@fornwall
fornwall force-pushed the get-objects-table-types branch from 8d77f96 to 864a25b Compare August 23, 2026 06:38
The Cython binding accepted table_types but always passed NULL to
AdbcConnectionGetObjects, so the DB-API table_types_filter was silently
ignored. Convert the sequence to the null-terminated const char** the C
API expects, keeping the encoded strings alive for the duration of the
call, and add coverage proving multiple table types reach the driver.

Signed-off-by: Fredrik Fornwall <fredrik@fornwall.net>
@fornwall
fornwall force-pushed the get-objects-table-types branch from 864a25b to 5660845 Compare August 23, 2026 06:45
@lidavidm
lidavidm merged commit ff4f4ae into apache:main Aug 24, 2026
86 of 87 checks passed
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.

2 participants