Closed squalou closed 2 years ago
Hi @squalou your example is at the dbapi layer, please test using SQLAlchemy with a driver that supports it's dialect:
From the docs (https://github.com/daneshpatel/sqlalchemy-jdbcapi):
from sqlalchemy import create_engine
engine = create_engine('jdbcapi+pgjdbc://{}:{}@{}/{}'.format(username, password, <ip:host>', <database name>))
rows = engine.connect().execute(
"select * from some_table LIMIT 10"
)
print([row for row in rows])
I've read a bit more about sqlalchemy etc... and indeed, no miracle can occur : I would need a dedicated dialect to begin with :) (I mean : jdbc driver is not enough)
Is your feature request related to a problem? Please describe.
I use some DB that are not yet supported by superset or sqlalchemy. BUT jdbc drivers are available.
This project seems to bridge the gap between jdbc and sqlalchemy
more specifically .... jaydebeapi does.
https://pypi.org/project/sqlalchemy-jdbcapi/
Would be a great news to have this supported
Describe the solution you'd like
Support jdbc connectors provided suiting jar is given.
Describe alternatives you've considered
for my specific case right now, see #12544 but I feel like its' even worse.
Additional context
I'm running Superset inside a container in which I installed jaydebeapi ith pip and a jre
This snippet works.
I did not manage to use the supposedly working sqlalchemy project I mentioned.
Would be incredibly great to be able to use theses connexions, no idea how