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

Extend _type_map with Array #19

Open
bonedi opened this issue Mar 14, 2022 · 1 comment
Open

Extend _type_map with Array #19

bonedi opened this issue Mar 14, 2022 · 1 comment

Comments

@bonedi
Copy link

bonedi commented Mar 14, 2022

I have some tables containing Array columns in a database. When DremioDialect.get_columns() is called ctype = _type_map[col[1]] throws an KEYERROR 'ARRAY'.
This can be solved with extending _type_map in base.py and query.py with:

_type_map = {
     ...
    'ARRAY': types.ARRAY,
    'array': types.ARRAY,
}
@villebro
Copy link
Contributor

villebro commented May 2, 2022

I also ran into this today. @narendrans if it's ok I'll open a PR to get this fix in

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

2 participants