mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 12:37:55 +00:00
[fix][launcher]Fix mysql scripts.
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user