fix(python/adbc_driver_postgresql): handle kwargs in dbapi connect #2700
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #2696
But I've encountered some issues when writing a test for the change:
db_kwargsbeyonddriveranduri- which are set explicitlyconn_kwargs- only two appear to be supported:adbc.connection.autocommit- which is configurable explicitlyadbc.connection.db_schema- which seems to cause a SEGFAULT when I add a test that tries to set this usingconn_kwargsThe SEGFAULT happens only when I'm trying to set this specific option, when I change the key I get the expected
adbc_driver_manager.NotSupportedError: NOT_IMPLEMENTED: [libpq] Unknown option adbc.connection.db_schema2error. All other tests in the suite pass, so I don't think it's a general setup issue.the test is commented out in the
tests/test_dbapi.pyfile. pytest output:I'm wondering if it even makes sense to "fix" this given the above?