-
|
Hello, I noticed I've been getting this warning when calling the new /healthz endpoint after updating to v.22.0: It wasn't happening before. Is this a newly introduced issue? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
This is a newly introduced issue in v0.22.0. The warning comes from a SQL query that now uses MySQL-specific syntax (with backticks and the INTERVAL keyword) that isn't compatible with PostgreSQL, specifically in the form To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
This is a newly introduced issue in v0.22.0. The warning comes from a SQL query that now uses MySQL-specific syntax (with backticks and the INTERVAL keyword) that isn't compatible with PostgreSQL, specifically in the form
INTERVAL \t2`.`refresh_freq` MINUTE. This causes the "syntax error at or near '.'" when RagFlow tries to run the query on Postgres. The problematic query is in thelist_sync_tasksmethod ofSyncLogsService` and is triggered by background sync workers, not directly by the /healthz endpoint, but the timing can make it look related. There's currently no logic to adapt the SQL for different databases, so PostgreSQL users will see this error until it's fixed in the codebase. M…