diff --git a/drizzle-orm/src/singlestore-core/columns/vector.ts b/drizzle-orm/src/singlestore-core/columns/vector.ts index 285f4342d..c8f05a63f 100644 --- a/drizzle-orm/src/singlestore-core/columns/vector.ts +++ b/drizzle-orm/src/singlestore-core/columns/vector.ts @@ -10,9 +10,8 @@ export type SingleStoreVectorBuilderInitial = SingleStoreV dataType: 'array'; columnType: 'SingleStoreVector'; data: Array; - driverParam: Array; + driverParam: string; enumValues: undefined; - generated: undefined; }>; export class SingleStoreVectorBuilder> diff --git a/drizzle-orm/src/singlestore-core/expressions.ts b/drizzle-orm/src/singlestore-core/expressions.ts index 397e87392..4e382e238 100644 --- a/drizzle-orm/src/singlestore-core/expressions.ts +++ b/drizzle-orm/src/singlestore-core/expressions.ts @@ -25,10 +25,10 @@ export function substring( } // Vectors -export function dotProduct(column: SingleStoreColumn | SQL.Aliased, value: Array) { +export function dotProduct(column: SingleStoreColumn | SQL.Aliased, value: Array): SQL { return sql`${column} <*> ${JSON.stringify(value)}`; } -export function euclideanDistance(column: SingleStoreColumn | SQL.Aliased, value: Array) { +export function euclideanDistance(column: SingleStoreColumn | SQL.Aliased, value: Array): SQL { return sql`${column} <-> ${JSON.stringify(value)}`; }