Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vertica_python not working with SQLAlchemy #4

Open
anilmcmt opened this issue Mar 17, 2023 · 3 comments
Open

vertica_python not working with SQLAlchemy #4

anilmcmt opened this issue Mar 17, 2023 · 3 comments

Comments

@anilmcmt
Copy link

When I try to connect with latest version of sqlalchemy 2.0, we have faced the issue, Older version it's fine.

import sqlalchemy as sa
engine = sa.create_engine('vertica+vertica_python://:data@****:5433/')

conn = engine.connect()

sqlalchemy.exc.ObjectNotExecutableError: Not an executable object: 'select version()'

SQLAlchemy Version in Use
2.0.2

DBAPI (i.e. the database driver)
python_vertica

Database Vendor and Major Version
Vertica 10.1.0

Python Version
3.11

Operating system
Window/Linux
To Reproduce
import sqlalchemy as sa

create engine

engine = sa.create_engine('vertica+vertica_python://:data@****:5433/')
conn = engine.connect()

@sitingren
Copy link
Member

Are you using vertica's official sqlalchemy dialect?

@sitingren sitingren transferred this issue from vertica/vertica-python Apr 18, 2023
@narphu
Copy link
Collaborator

narphu commented May 30, 2023

The dialect currently only supports SQLAlchemy 1.x versions.

@kriko
Copy link

kriko commented Aug 1, 2024

We have implementeted SQLAlchemy 2 support with also support for TLS connections. https://github.com/porkoaiv/vertica-sqlalchemy-dialect

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

No branches or pull requests

4 participants