mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-06 01:37:49 +02:00
sqlite: Add test for search with list filters (#4747)
This commit is contained in:
@@ -410,11 +410,12 @@ class BaseSqliteStore:
|
||||
"json_extract(value, '$." + key + "') = " + str(value)
|
||||
)
|
||||
else:
|
||||
# For complex objects, use param binding with JSON serialization
|
||||
# Complex objects (list, dict, …) – compare JSON text
|
||||
filter_conditions.append(
|
||||
"json_extract(value, '$." + key + "') = ?"
|
||||
)
|
||||
filter_params.append(orjson.dumps(value))
|
||||
# orjson.dumps returns bytes → decode to str so SQLite sees TEXT
|
||||
filter_params.append(orjson.dumps(value).decode())
|
||||
|
||||
# Vector search branch
|
||||
if op.query and self.index_config:
|
||||
|
||||
Reference in New Issue
Block a user