We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.1.0
MAC OS / M2.
net 8.0
I created table
create or replace TABLE RAG.CLUSTERS ( OBJECT_ID VARCHAR(36) NOT NULL, TEXT VARCHAR(16777216) NOT NULL, EMBEDDINGS VECTOR(FLOAT, 1024) NOT NULL, );
I retrieve data from the table using follow code
public class ClusterDto { public required string ObjectId { get; set; } public required string Text { get; set; } public required string Embeddings { get; set; } } public interface ISemanticService { Task<IReadOnlyCollection<ClusterDto>> GetClustersAsync(); } public class SemanticSnowflakeService : ISemanticService { private readonly SnowflakeDbConnectionProvider _connectionProvider; public SemanticSnowflakeService(SnowflakeDbConnectionProvider connectionProvider) { _connectionProvider = connectionProvider; } public async Task<IReadOnlyCollection<ClusterDto>> GetClustersAsync() { await using var conn = await _connectionProvider.GetConnection(); await conn.OpenAsync(); await using var cmd = conn.CreateCommand(); cmd.CommandText = @$"SELECT OBJECT_ID, TEXT, EMBEDDINGS FROM ACME_DB.RAG.CLUSTERS limit 10;"; // Error: Snowflake Internal Error: Unknow column type: vector await using var reader = await cmd.ExecuteReaderAsync(); var result = new List<ClusterDto>(); while (await reader.ReadAsync()) { result.Add(new ClusterDto() { ObjectId = reader.GetString(0), Text = reader.GetString(1), Embeddings = reader.GetString(2) }); } await conn.CloseAsync(); return result; } }
Reader throws error with message ❌ // Error: Snowflake Internal Error: Unknow column type: vector
// Error: Snowflake Internal Error: Unknow column type: vector
I need to retrieve vector as string/array/json or whatever.
❓ Is there any workaround?
The text was updated successfully, but these errors were encountered:
hello - for the moment, unfortunately the error message is correct: https://docs.snowflake.com/en/sql-reference/data-types-vector#data-types
Note The VECTOR data type is only supported in SQL, the Python connector and the Snowpark Python library. No other languages are supported.
we'll announce in the driver changelogs once it becomes supported. Thank you for bearing with us !
Sorry, something went wrong.
also for the ones interested in this support, besides the changelogs , PR #1002 can be followed
sfc-gh-dszmolka
No branches or pull requests
3.1.0
MAC OS / M2.
net 8.0
I created table
I retrieve data from the table using follow code
Reader throws error with message ❌
// Error: Snowflake Internal Error: Unknow column type: vector
I need to retrieve vector as string/array/json or whatever.
❓ Is there any workaround?
The text was updated successfully, but these errors were encountered: