Skip to content

vertica_python not working with SQLAlchemy #4

@anilmcmt

Description

@anilmcmt

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions