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

Snowflake Connector doesn't support VARIANT type with CONVERT_TO_VARCHAR option #21102

Closed
ChrisSandison opened this issue Mar 15, 2024 · 2 comments

Comments

@ChrisSandison
Copy link

Error message

com.google.common.util.concurrent.UncheckedExecutionException: com.google.common.util.concurrent.UncheckedExecutionException: com.google.common.base.VerifyException: Unsupported type handling is set to CONVERT_TO_VARCHAR, but toColumnMapping() returned empty for JdbcTypeHandle{jdbcType=12, jdbcTypeName=VARIANT, columnSize=0, decimalDigits=0}

The snowflake data type is VARIANT. It looks like the case may just need to be handled here

public Optional<ColumnMapping> toColumnMapping(ConnectorSession session, Connection connection, JdbcTypeHandle typeHandle)

@ChrisSandison
Copy link
Author

Also seeing a similar error with OBJECT types

@ebyhr
Copy link
Member

ebyhr commented Mar 16, 2024

Closing as duplicate of #20977

@ebyhr ebyhr closed this as not planned Won't fix, can't repro, duplicate, stale Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants