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

describe on an ARRAY or OBJECT column incorrectly returns VARIANT #26

Open
tekumara opened this issue Dec 28, 2023 · 1 comment
Open

Comments

@tekumara
Copy link
Owner

result metadata for an ARRAY or OBJECT column incorrectly returns a type_code of 5 (VARIANT) but should be:

  • 9 for OBJECT
  • 10 for ARRAY

as per https://docs.snowflake.com/en/user-guide/python-connector-api.html#type-codes

@tekumara
Copy link
Owner Author

solving this will require new duckdb logical types that work as json.

json itself is a logical type of varchar, so these new types should map to varchar. The new types will be treated a varchar by the json functions.

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

1 participant