Skip to content

Add support for MAP type to SQLAlchemy dialect #397

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

Closed
1 task
dudu-upstream opened this issue Aug 1, 2023 · 0 comments · Fixed by #448
Closed
1 task

Add support for MAP type to SQLAlchemy dialect #397

dudu-upstream opened this issue Aug 1, 2023 · 0 comments · Fixed by #448

Comments

@dudu-upstream
Copy link
Contributor

Expected behavior

Im trying to describe some table schema that contains a column that is MAP data type but getting the following exception:

sqlalchemy.exc.CompileError: (in table 'MY_TABLE', column 'SOME_COLUMN'): Compiler <trino.sqlalchemy.compiler.TrinoTypeCompiler object at 0x110fb7d30> can't render element of type MAP

AttributeError: 'TrinoTypeCompiler' object has no attribute 'visit_MAP'

Actual behavior

AttributeError: 'TrinoTypeCompiler' object has no attribute 'visit_MAP'

Steps To Reproduce

create a new db connection and try to get a table schema

Log output

No response

Operating System

MacOS

Trino Python client version

0.326.0

Trino Server version

419

Python version

Python 3.9.17

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@hashhar hashhar changed the title getting can't render element of type MAP exception Add support for MAP type to SQLAlchemy dialect Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant