You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "fwojciec (via GitHub)" <gi...@apache.org> on 2025/04/10 21:09:56 UTC
[I] PostgreSQL `dbapi.connect` ignores `conn_kwargs` and `db_kwargs` [arrow-adbc]
fwojciec opened a new issue, #2696:
URL: https://github.com/apache/arrow-adbc/issues/2696
### What happened?
PostgreSQL driver `dbapi.connect` accepts `conn_kwargs` and `db_kwargs` as a params, but the implementation of that function ignores both values:
`db_kwargs` are never passed to the `adbc_driver_postgresql.connect` function: https://github.com/apache/arrow-adbc/blob/9ba6bdb8bd42e35237dadfae758419846e6c442c/python/adbc_driver_postgresql/adbc_driver_postgresql/dbapi.py#L121
`conn_kwargs` are never passed to the `adbc_driver_manager.dbapi.Connection` call: https://github.com/apache/arrow-adbc/blob/9ba6bdb8bd42e35237dadfae758419846e6c442c/python/adbc_driver_postgresql/adbc_driver_postgresql/dbapi.py#L122
Is this intended? Or a bug? Is there another way to pass things like keepalive settings etc. to the underlying Connection?
If this is a bug, I'd be happy to make a PR to fix it, but wanted to check here first.
### Stack Trace
N/A
### How can we reproduce the bug?
N/A
### Environment/Setup
N/A
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] PostgreSQL `dbapi.connect` ignores `conn_kwargs` and `db_kwargs` [arrow-adbc]
Posted by "fwojciec (via GitHub)" <gi...@apache.org>.
fwojciec commented on issue #2696:
URL: https://github.com/apache/arrow-adbc/issues/2696#issuecomment-2799277176
Hi @lidavidm - I made a PR, but run into some problems. Looks like there is currently only one option that could be theoretically set using `conn_kwargs` - specifically `adbc.connection.db_schema`, but trying to set it using `conn_kwargs` results in a segfault that seems to be specific to this setting... More details in the PR description.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] PostgreSQL `dbapi.connect` ignores `conn_kwargs` and `db_kwargs` [arrow-adbc]
Posted by "fwojciec (via GitHub)" <gi...@apache.org>.
fwojciec commented on issue #2696:
URL: https://github.com/apache/arrow-adbc/issues/2696#issuecomment-2797621798
Thanks! Will work on it this weekend.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] PostgreSQL `dbapi.connect` ignores `conn_kwargs` and `db_kwargs` [arrow-adbc]
Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm closed issue #2696: PostgreSQL `dbapi.connect` ignores `conn_kwargs` and `db_kwargs`
URL: https://github.com/apache/arrow-adbc/issues/2696
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] PostgreSQL `dbapi.connect` ignores `conn_kwargs` and `db_kwargs` [arrow-adbc]
Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm commented on issue #2696:
URL: https://github.com/apache/arrow-adbc/issues/2696#issuecomment-2795398080
It's an oversight - a PR would be appreciated!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org