ragflow
ragflow copied to clipboard
[BUG]: ExeSQL get tuple index out of range Error
Discussed in https://github.com/orgs/infiniflow/discussions/2700
Originally posted by marcochang1028 October 1, 2024 I am trying to use ExeSQL to perform the sql query, but sometimes it returns the error below. tuple index out of range Error From my observation, this error usually happens when the sql statement include LIKE '%XX%'. Here is the simple example which will raise this error
SELECT issue_number, customer_id, complaint_date, issue_description, solution_description FROM customer_issues WHERE solution_description LIKE '%abnormal vibration%'.
I have tried to execute this sql from my python code (psycopg2) and it can return the correct result.
I hope anyone can give me some hint to fix this problem.