mirror of
https://github.com/hwchase17/langchain
synced 2024-11-10 01:10:59 +00:00
19 lines
597 B
Python
19 lines
597 B
Python
|
# flake8: noqa
|
||
|
QUERY_CHECKER = """
|
||
|
{query}
|
||
|
Double check the {dialect} query above for common mistakes, including:
|
||
|
- Using NOT IN with NULL values
|
||
|
- Using UNION when UNION ALL should have been used
|
||
|
- Using BETWEEN for exclusive ranges
|
||
|
- Data type mismatch in predicates
|
||
|
- Properly quoting identifiers
|
||
|
- Using the correct number of arguments for functions
|
||
|
- Casting to the correct data type
|
||
|
- Using the proper columns for joins
|
||
|
|
||
|
If there are any of the above mistakes, rewrite the query. If there are no mistakes, just reproduce the original query.
|
||
|
|
||
|
Output the final SQL query only.
|
||
|
|
||
|
SQL Query: """
|