Using PreparedStatement with Vectors (SNOW-1260139) #2037
Labels
backend changes needed
Change must be implemented on the Snowflake service, and not in the client driver.
enhancement
The issue is a request for improvement or a new feature
status-blocked
Progress cannot be made to this issue due to an outside blocking factor.
status-triage_done
Initial triage done, will be further handled by the driver team
Please answer these questions before submitting your issue.
In order to accurately debug the issue this information is required. Thanks!
What version of JDBC driver are you using?
3.21.0
What operating system and processor architecture are you using?
Windows 10
What version of Java are you using?
17
What did you do?
I try to use PreparedStatement with different approaches:
But I got an error: net.snowflake.client.jdbc.SnowflakeLoggedFeatureNotSupportedException
With this example I got error: net.snowflake.client.jdbc.SnowflakeSQLException: Array-like value being cast to a float vector has elements that are not real numbers
Also I tried to use stmt.setString(), stmt.setObject(). I changed the sql query:
"INSERT INTO test_vectors SELECT ?::VECTOR(FLOAT,3), ?::VECTOR(FLOAT,3)"
but nothing helped.Is there a way to use vectors with PreparedStatement?
What did you expect to see?
I expect that I can use vectors with PreparedStatement.
The text was updated successfully, but these errors were encountered: