Skip to content

Commit cc4e251

Browse files
authored
chore(wren-ai-service): fix add quotes (#1919)
1 parent 7dbfde5 commit cc4e251

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

wren-ai-service/src/core/engine.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ def is_sql_keyword(text: str) -> bool:
108108
"TOP",
109109
"WITH",
110110
"RECURSIVE",
111-
"CTE",
112111
# Data types
113112
"INTEGER",
114113
"INT",
@@ -146,40 +145,12 @@ def is_sql_keyword(text: str) -> bool:
146145
"CURRENT_DATE",
147146
"CURRENT_TIME",
148147
"CURRENT_TIMESTAMP",
149-
"EXTRACT",
150-
"DATE_TRUNC",
151-
"DATE_PART",
152-
# Aggregate functions (common ones)
153-
"COUNT",
154-
"SUM",
155-
"AVG",
156-
"MIN",
157-
"MAX",
158-
"STDDEV",
159-
"VARIANCE",
160-
# Window functions
161-
"OVER",
162-
"PARTITION",
163-
"ROW_NUMBER",
164-
"RANK",
165-
"DENSE_RANK",
166-
"LAG",
167-
"LEAD",
168-
"FIRST_VALUE",
169-
"LAST_VALUE",
170-
"NTILE",
171148
# Other common keywords
172149
"CASE",
173150
"WHEN",
174151
"THEN",
175152
"ELSE",
176153
"END",
177-
"CAST",
178-
"CONVERT",
179-
"COALESCE",
180-
"NULLIF",
181-
"IFNULL",
182-
"ISNULL",
183154
"DESC",
184155
"ASC",
185156
"TRUE",

0 commit comments

Comments
 (0)