fix: stabilize metadata filters on postgres - #536
Conversation
Signed-off-by: phernandez <paul@basicmachines.co>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4dbcc52e3e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Restore numeric-guard to avoid cast failures
Casting #>> directly to double precision will raise invalid input syntax for type double precision if any row has non-numeric text at that metadata path (e.g., "N/A"), causing the entire search query to error out even though the filter value is numeric. The previous CASE+regex avoided this by returning NULL for non-numeric values; with the new unconditional cast, numeric comparisons now fail for mixed-type metadata.
Useful? React with 👍 / 👎.
|
Claude finished @phernandez's task in 2m 19s —— View job PR Review: Fix metadata filters for PostgresI've reviewed this PR against the Basic Memory team checklist. Here's my analysis: Summary of ChangesThis PR fixes Postgres metadata filter handling by:
Critical Issue: P1 Concern is Valid
|
Signed-off-by: phernandez <paul@basicmachines.co>

Summary
Testing