From 6ff92298b89e69b305e198d250cbd203b8800c82 Mon Sep 17 00:00:00 2001 From: nick-w-nick <43578531+nick-w-nick@users.noreply.github.com> Date: Sat, 21 Dec 2024 00:50:09 -0500 Subject: [PATCH] Revert "added supabase boolean column functionality" This reverts commit 21f150474d19aa3707f4a10cd1213fc2ba484d22. --- .../langchain-community/src/structured_query/supabase.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/libs/langchain-community/src/structured_query/supabase.ts b/libs/langchain-community/src/structured_query/supabase.ts index f799e8640215..602f46bfebfa 100644 --- a/libs/langchain-community/src/structured_query/supabase.ts +++ b/libs/langchain-community/src/structured_query/supabase.ts @@ -1,6 +1,5 @@ import { isFilterEmpty, - isBoolean, isFloat, isInt, isObject, @@ -29,8 +28,8 @@ import { * structured query. It can be a string or a number. */ type ValueType = { - eq: string | number | boolean; - ne: string | number | boolean; + eq: string | number; + ne: string | number; lt: string | number; lte: string | number; gt: string | number; @@ -127,7 +126,7 @@ export class SupabaseTranslator< * @param includeType Whether to include the data type in the column name. * @returns The built column name. */ - buildColumnName(attr: string, value: string | number | boolean, includeType = true) { + buildColumnName(attr: string, value: string | number, includeType = true) { let column = ""; if (isString(value)) { column = `metadata->>${attr}`; @@ -135,8 +134,6 @@ export class SupabaseTranslator< column = `metadata->${attr}${includeType ? "::int" : ""}`; } else if (isFloat(value)) { column = `metadata->${attr}${includeType ? "::float" : ""}`; - } else if(isBoolean(value)) { - column = `metadata->${attr}${includeType ? "::bool" : ""}`; } else { throw new Error("Data type not supported"); }