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

SNOW-1344993: No enum constant net.snowflake.client.jdbc.SnowflakeType.VECTOR #1734

Closed
aiguofer opened this issue Apr 24, 2024 · 3 comments
Closed
Assignees
Labels
enhancement The issue is a request for improvement or a new feature status-triage_done Initial triage done, will be further handled by the driver team

Comments

@aiguofer
Copy link

Please answer these questions before submitting your issue.
In order to accurately debug the issue this information is required. Thanks!

  1. What version of JDBC driver are you using?

3.15.1

  1. What operating system and processor architecture are you using?

N/A

  1. What version of Java are you using?

17

  1. What did you do?

Create a Vector table in our DWH.

Call Connection.getMetaData().getColumns(null, null, null, null) from the JDBC driver.

Get error, relevant stacktrace:

java.lang.IllegalArgumentException: No enum constant net.snowflake.client.jdbc.SnowflakeType.VECTOR
	at java.base/java.lang.Enum.valueOf(Enum.java:273)
	at net.snowflake.client.jdbc.SnowflakeType.valueOf(SnowflakeType.java:23)
	at net.snowflake.client.jdbc.SnowflakeType.fromString(SnowflakeType.java:53)
	at net.snowflake.client.jdbc.SnowflakeUtil.getSnowflakeType(SnowflakeUtil.java:217)
	at net.snowflake.client.jdbc.SnowflakeUtil.extractColumnMetadata(SnowflakeUtil.java:184)
	at net.snowflake.client.jdbc.SnowflakeDatabaseMetaData$4.next(SnowflakeDatabaseMetaData.java:1795)
  1. What did you expect to see?

Get all metadata

  1. Can you set logging to DEBUG and collect the logs?

We could try to reproduce in a test env to provide this if necessary.

  1. What is your Snowflake account identifier, if any? (Optional)

N/A

@aiguofer aiguofer added the bug label Apr 24, 2024
@github-actions github-actions bot changed the title No enum constant net.snowflake.client.jdbc.SnowflakeType.VECTOR SNOW-1344993: No enum constant net.snowflake.client.jdbc.SnowflakeType.VECTOR Apr 24, 2024
@sfc-gh-sghosh sfc-gh-sghosh self-assigned this Apr 25, 2024
@sfc-gh-sghosh
Copy link
Contributor

sfc-gh-sghosh commented Apr 25, 2024

Hello @aiguofer ,

Thanks for raising the issue.
VECTOR datatype is not supported at present. However, we hope to support it by the end of Q1 this year (#1719). Please note that this is not a committed-to-date, just a rough estimation. Once it’s there, we’ll announce it in the official JDBC driver changelog.

Regards,
Sujan

@sfc-gh-sghosh sfc-gh-sghosh added status-triage_done Initial triage done, will be further handled by the driver team status-merged enhancement The issue is a request for improvement or a new feature and removed bug labels Apr 25, 2024
@aiguofer
Copy link
Author

Awesome thanks!! and thanks for pointing me to the PR, it'll be helpful for converting the value back into arrow :)

@sfc-gh-dszmolka sfc-gh-dszmolka added status-fixed_awaiting_release The issue has been fixed, its PR merged, and now awaiting the next release cycle of the connector. and removed status-merged labels Apr 25, 2024
@sfc-gh-dszmolka
Copy link
Contributor

fix is released with Snowflake JDBC driver version 3.16.0

@sfc-gh-dszmolka sfc-gh-dszmolka removed the status-fixed_awaiting_release The issue has been fixed, its PR merged, and now awaiting the next release cycle of the connector. label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The issue is a request for improvement or a new feature status-triage_done Initial triage done, will be further handled by the driver team
Projects
None yet
Development

No branches or pull requests

4 participants