From 5cb0fc6146d378983c4497b98ab23e2a69430e4f Mon Sep 17 00:00:00 2001 From: Mitchell Adair Date: Wed, 18 Dec 2024 13:56:57 -0500 Subject: [PATCH] more type changes, test not actually fixed :/ --- drizzle-orm/src/singlestore-core/columns/vector.ts | 3 +-- drizzle-orm/src/singlestore-core/expressions.ts | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) 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)}`; }