[fix][launcher]Fix mysql scripts.

This commit is contained in:
jerryjzhang
2024-11-28 09:28:17 +08:00
parent 111304486b
commit c80794e8fc
9 changed files with 70 additions and 15 deletions

View File

@@ -37,8 +37,8 @@ public class OnePassSCSqlGenStrategy extends SqlGenStrategy {
+ "please convert it to a SQL query so that relevant data could be returned "
+ "by executing the SQL query against underlying database." + "\n#Rules:"
+ "\n1.SQL columns and values must be mentioned in the `Schema`, DO NOT hallucinate."
+ "\n2.ALWAYS specify date filter using `>`,`<`,`>=`,`<=` operator."
+ "\n3.DO NOT include date filter in the where clause if not explicitly expressed in the `Question`."
+ "\n2.ALWAYS specify time range using `>`,`<`,`>=`,`<=` operator."
+ "\n3.DO NOT include time range in the where clause if not explicitly expressed in the `Question`."
+ "\n4.DO NOT calculate date range using functions."
+ "\n5.ALWAYS use `with` statement if nested aggregation is needed."
+ "\n6.ALWAYS enclose alias declared by `AS` command in underscores."