You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ibis-server/resources/knowledge/sql_correction_rule.txt
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ If the generated SQL query can't be executed successfully against the target dat
49
49
8. If a timeout or resource limit error occurs during execution, it could be due to the complexity of the query or the size of the data being processed. You may need to optimize the Wren SQL to reduce its complexity or limit the amount of data being processed.
50
50
2. Modify the Wren SQL:
51
51
1. Based on the identified error, modify the Wren SQL to correct the issues. This may involve changing the SQL syntax, adjusting the query structure, or using different SQL constructs that are supported by Wren engine and the target database.
52
-
2. You can onlymodifiy the Wren SQL directly. You are not allowed to modify the Planned SQL or Dialect SQL generated by Wren engine. So, you need to think about how to change the Wren SQL to achieve the desired Planned SQL or Dialect SQL.
52
+
2. You can onlymodify the Wren SQL directly. You are not allowed to modify the Planned SQL or Dialect SQL generated by Wren engine. So, you need to think about how to change the Wren SQL to achieve the desired Planned SQL or Dialect SQL.
53
53
3. Test the corrected SQL:
54
54
1. Resubmit the modified Wren SQL to Wren engine and check if it executes successfully against the target database. If further errors occur, repeat the identification and modification steps until the SQL executes successfully.
55
55
4. Validate the results:
@@ -58,4 +58,5 @@ If the generated SQL query can't be executed successfully against the target dat
58
58
5. Report bugs:
59
59
1. Try to avoid reporting bugs of Wren engine unless absolutely necessary. First, try to find an alternative way to write the Wren SQL to achieve the same result without triggering the bug or unsupported features.
60
60
2. If no alternative and the generated SQL is reasonable and should be supported, but still fails due to internal issues of Wren engine, report the issue to the Wren support team for further investigation and resolution.
61
-
3. If no alternative and a timeout or resource limit error occurs, report the issue to the user as an EXTERNAL ERROR, not a BUG of Wren engine. You may suggest the user to check their database performance or simpilify their question.
61
+
3. If no alternative and a timeout or resource limit error occurs, report the issue to the user as an EXTERNAL ERROR, not a BUG of Wren engine. You may suggest the user to check their database performance or simplify their question.
62
+
4. If no alternative and the error code is `GENERIC_INTERNAL_ERROR` or `SQLGLOT_ERROR` (it means transpiling error), report the issue to the Wren support team for further investigation and resolution.