OmniSciDB
a5dc49c757
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
ReservedKeywords.h
Go to the documentation of this file.
1
/*
2
* Copyright 2022 HEAVY.AI, Inc.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#pragma once
18
19
#include <set>
20
#include <string>
21
22
static
std::set<std::string>
reserved_keywords
{
23
24
// OmniSci reserved keywords
25
26
"ACCESS"
,
27
"ADD"
,
// legacy
28
"AMMSC"
,
29
"ARCHIVE"
,
30
"ASC"
,
31
"CONTINUE"
,
32
"COPY"
,
33
"DASHBOARD"
,
34
"DATABASE"
,
35
"DATAFRAME"
,
36
"DATETIME"
,
37
"DATE_TRUNC"
,
38
"DESC"
,
39
"DUMP"
,
40
"EDIT"
,
41
"EDITOR"
,
42
"FIRST"
,
43
"FOUND"
,
44
"GEOGRAPHY"
,
// geo type
45
"GEOMETRY"
,
// geo type
46
"IF"
,
47
"ILIKE"
,
48
"LAST"
,
49
"LENGTH"
,
50
"LINESTRING"
,
// geo type
51
"MULTILINESTRING"
,
// geo type
52
"MULTIPOINT"
,
// geo type
53
"MULTIPOLYGON"
,
// geo type
54
"NOW"
,
55
"NULLX"
,
56
"OPTION"
,
57
"POINT"
,
// geo type
58
"POLYGON"
,
// geo type
59
"PRIVILEGES"
,
60
"PUBLIC"
,
61
"RENAME"
,
62
"RESTORE"
,
63
"ROLE"
,
// permissions
64
"ROWID"
,
// hidden column name
65
"SCHEMA"
,
66
"SQL"
,
67
"TEMPORARY"
,
// in-memory tables
68
"TEXT"
,
69
"VIEW"
,
70
"WORK"
,
71
72
// Calcite reserved keywords
73
// https://calcite.apache.org/docs/reference.html#keywords
74
// As of apache/calcite@9085b601081689b5b7f1e9f57deb20e2229910cb
75
76
"ABS"
,
77
"ALL"
,
78
"ALLOCATE"
,
79
"ALLOW"
,
80
"ALTER"
,
81
"AND"
,
82
"ANY"
,
83
"ARE"
,
84
"ARRAY"
,
85
"ARRAY_MAX_CARDINALITY"
,
86
"AS"
,
87
"ASENSITIVE"
,
88
"ASYMMETRIC"
,
89
"AT"
,
90
"ATOMIC"
,
91
"AUTHORIZATION"
,
92
"AVG"
,
93
"BEGIN"
,
94
"BEGIN_FRAME"
,
95
"BEGIN_PARTITION"
,
96
"BETWEEN"
,
97
"BIGINT"
,
98
"BINARY"
,
99
"BIT"
,
100
"BLOB"
,
101
"BOOLEAN"
,
102
"BOTH"
,
103
"BY"
,
104
"CALL"
,
105
"CALLED"
,
106
"CARDINALITY"
,
107
"CASCADED"
,
108
"CASE"
,
109
"CAST"
,
110
"CEIL"
,
111
"CEILING"
,
112
"CHAR"
,
113
"CHARACTER"
,
114
"CHARACTER_LENGTH"
,
115
"CHAR_LENGTH"
,
116
"CHECK"
,
117
"CLASSIFIER"
,
118
"CLOB"
,
119
"CLOSE"
,
120
"COALESCE"
,
121
"COLLATE"
,
122
"COLLECT"
,
123
"COLUMN"
,
124
"COMMIT"
,
125
"CONDITION"
,
126
"CONNECT"
,
127
"CONSTRAINT"
,
128
"CONTAINS"
,
129
"CONVERT"
,
130
"CORR"
,
131
"CORRESPONDING"
,
132
"COUNT"
,
133
"COVAR_POP"
,
134
"COVAR_SAMP"
,
135
"CREATE"
,
136
"CROSS"
,
137
"CUBE"
,
138
"CUME_DIST"
,
139
"CURRENT"
,
140
"CURRENT_CATALOG"
,
141
"CURRENT_DATE"
,
142
"CURRENT_DEFAULT_TRANSFORM_GROUP"
,
143
"CURRENT_PATH"
,
144
"CURRENT_ROLE"
,
145
"CURRENT_ROW"
,
146
"CURRENT_SCHEMA"
,
147
"CURRENT_TIME"
,
148
"CURRENT_TIMESTAMP"
,
149
"CURRENT_TRANSFORM_GROUP_FOR_TYPE"
,
150
"CURRENT_USER"
,
151
"CURSOR"
,
152
"CYCLE"
,
153
"DATE"
,
154
"DAY"
,
155
"DEALLOCATE"
,
156
"DEC"
,
157
"DECIMAL"
,
158
"DECLARE"
,
159
"DEFAULT"
,
160
"DEFINE"
,
161
"DELETE"
,
162
"DENSE_RANK"
,
163
"DEREF"
,
164
"DESCRIBE"
,
165
"DETERMINISTIC"
,
166
"DISALLOW"
,
167
"DISCONNECT"
,
168
"DISTINCT"
,
169
"DOUBLE"
,
170
"DROP"
,
171
"DYNAMIC"
,
172
"EACH"
,
173
"ELEMENT"
,
174
"ELSE"
,
175
"EMPTY"
,
176
"END"
,
177
"END-EXEC"
,
178
"END_FRAME"
,
179
"END_PARTITION"
,
180
"EQUALS"
,
181
"ESCAPE"
,
182
"EVERY"
,
183
"EXCEPT"
,
184
"EXEC"
,
185
"EXECUTE"
,
186
"EXISTS"
,
187
"EXP"
,
188
"EXPLAIN"
,
189
"EXTEND"
,
190
"EXTERNAL"
,
191
"EXTRACT"
,
192
"FALSE"
,
193
"FETCH"
,
194
"FILTER"
,
195
"FIRST_VALUE"
,
196
"FLOAT"
,
197
"FLOOR"
,
198
"FOR"
,
199
"FOREIGN"
,
200
"FRAME_ROW"
,
201
"FREE"
,
202
"FROM"
,
203
"FULL"
,
204
"FUNCTION"
,
205
"FUSION"
,
206
"GET"
,
207
"GLOBAL"
,
208
"GRANT"
,
209
"GROUP"
,
210
"GROUPING"
,
211
"GROUPS"
,
212
"HASH"
,
213
"HAVING"
,
214
"HOLD"
,
215
"HOUR"
,
216
"IDENTITY"
,
217
"IMPORT"
,
218
"IN"
,
219
"INDICATOR"
,
220
"INITIAL"
,
221
"INNER"
,
222
"INOUT"
,
223
"INSENSITIVE"
,
224
"INSERT"
,
225
"INT"
,
226
"INTEGER"
,
227
"INTERSECT"
,
228
"INTERSECTION"
,
229
"INTERVAL"
,
230
"INTO"
,
231
"IS"
,
232
"JAROWINKLER_SIMILARITY"
233
"JOIN"
,
234
"LAG"
,
235
"LANGUAGE"
,
236
"LARGE"
,
237
"LAST_VALUE"
,
238
"LATERAL"
,
239
"LEAD"
,
240
"LEADING"
,
241
"LEFT"
,
242
"LEVENSHTEIN_DISTANCE"
243
"LIKE"
,
244
"LIKE_REGEX"
,
245
"LIMIT"
,
246
"LN"
,
247
"LOCAL"
,
248
"LOCALTIME"
,
249
"LOCALTIMESTAMP"
,
250
"LOWER"
,
251
"LPAD"
,
252
"LTRIM"
,
253
"MATCH"
,
254
"MATCHES"
,
255
"MATCH_NUMBER"
,
256
"MATCH_RECOGNIZE"
,
257
"MAX"
,
258
"MEASURES"
,
259
"MEMBER"
,
260
"MERGE"
,
261
"METHOD"
,
262
"MIN"
,
263
"MINUS"
,
264
"MINUTE"
,
265
"MOD"
,
266
"MODIFIES"
,
267
"MODULE"
,
268
"MONTH"
,
269
"MULTISET"
,
270
"NATIONAL"
,
271
"NATURAL"
,
272
"NCHAR"
,
273
"NCLOB"
,
274
"NEW"
,
275
"NEXT"
,
276
"NO"
,
277
"NONE"
,
278
"NORMALIZE"
,
279
"NOT"
,
280
"NTH_VALUE"
,
281
"NTILE"
,
282
"NULL"
,
283
"NULLIF"
,
284
"NUMERIC"
,
285
"OCCURRENCES_REGEX"
,
286
"OCTET_LENGTH"
,
287
"OF"
,
288
"OFFSET"
,
289
"OLD"
,
290
"OMIT"
,
291
"ON"
,
292
"ONE"
,
293
"ONLY"
,
294
"OPEN"
,
295
"OPTIMIZE"
,
296
"OR"
,
297
"ORDER"
,
298
"OUT"
,
299
"OUTER"
,
300
"OVER"
,
301
"OVERLAPS"
,
302
"OVERLAY"
,
303
"PARAMETER"
,
304
"PARTITION"
,
305
"PATTERN"
,
306
"PER"
,
307
"PERCENT"
,
308
"PERCENTILE_CONT"
,
309
"PERCENTILE_DISC"
,
310
"PERCENT_RANK"
,
311
"PERIOD"
,
312
"PERMUTE"
,
313
"PORTION"
,
314
"POSITION"
,
315
"POSITION_REGEX"
,
316
"POWER"
,
317
"PRECEDES"
,
318
"PRECISION"
,
319
"PREPARE"
,
320
"PREV"
,
321
"PRIMARY"
,
322
"PROCEDURE"
,
323
"RANGE"
,
324
"RANK"
,
325
"READS"
,
326
"REAL"
,
327
"RECURSIVE"
,
328
"REF"
,
329
"REFERENCES"
,
330
"REFERENCING"
,
331
"REGEXP_COUNT"
,
332
"REGEXP_REPLACE"
,
333
"REGEXP_SUBSTR"
,
334
"REGEXP_MATCH"
335
"REGR_AVGX"
,
336
"REGR_AVGY"
,
337
"REGR_COUNT"
,
338
"REGR_INTERCEPT"
,
339
"REGR_R2"
,
340
"REGR_SLOPE"
,
341
"REGR_SXX"
,
342
"REGR_SXY"
,
343
"REGR_SYY"
,
344
"RELEASE"
,
345
"REPEAT"
,
346
"REPLACE"
,
347
"RESET"
,
348
"RESULT"
,
349
"RETURN"
,
350
"RETURNS"
,
351
"REVERSE"
,
352
"REVOKE"
,
353
"RIGHT"
,
354
"ROLLBACK"
,
355
"ROLLUP"
,
356
"ROW"
,
357
"ROWS"
,
358
"ROW_NUMBER"
,
359
"RPAD"
,
360
"RUNNING"
,
361
"RTRIM"
,
362
"SAVEPOINT"
,
363
"SCOPE"
,
364
"SCROLL"
,
365
"SEARCH"
,
366
"SECOND"
,
367
"SEEK"
,
368
"SELECT"
,
369
"SENSITIVE"
,
370
"SESSION_USER"
,
371
"SET"
,
372
"SHOW"
,
373
"SIMILAR"
,
374
"SKIP"
,
375
"SMALLINT"
,
376
"SOME"
,
377
"SPECIFIC"
,
378
"SPECIFICTYPE"
,
379
"SPLIT_PART"
,
380
"SQL"
,
381
"SQLEXCEPTION"
,
382
"SQLSTATE"
,
383
"SQLWARNING"
,
384
"SQRT"
,
385
"START"
,
386
"STATIC"
,
387
"STDDEV_POP"
,
388
"STDDEV_SAMP"
,
389
"STREAM"
,
390
"SUBMULTISET"
,
391
"SUBSET"
,
392
"SUBSTRING"
,
393
"SUCCEEDS"
,
394
"SUM"
,
395
"SYMMETRIC"
,
396
"SYSTEM"
,
397
"SYSTEM_TIME"
,
398
"SYSTEM_USER"
,
399
"TABLE"
,
400
"TABLESAMPLE"
,
401
"THEN"
,
402
"TIME"
,
403
"TIMESTAMP"
,
404
"TIMEZONE_HOUR"
,
405
"TIMEZONE_MINUTE"
,
406
"TINYINT"
,
407
"TO"
,
408
"TRAILING"
,
409
"TRANSLATE"
,
410
"TRANSLATE_REGEX"
,
411
"TRANSLATION"
,
412
"TREAT"
,
413
"TRIGGER"
,
414
"TRIM"
,
415
"TRIM_ARRAY"
,
416
"TRUE"
,
417
"TRUNCATE"
,
418
"TRY_CAST"
,
419
"UESCAPE"
,
420
"UNION"
,
421
"UNIQUE"
,
422
"UNKNOWN"
,
423
"UNNEST"
,
424
"UPDATE"
,
425
"UPPER"
,
426
"UPSERT"
,
427
"USER"
,
428
"USING"
,
429
"VALUE"
,
430
"VALUES"
,
431
"VALUE_OF"
,
432
"VARBINARY"
,
433
"VARCHAR"
,
434
"VARYING"
,
435
"VAR_POP"
,
436
"VAR_SAMP"
,
437
"VERSIONING"
,
438
"WHEN"
,
439
"WHENEVER"
,
440
"WHERE"
,
441
"WIDTH_BUCKET"
,
442
"WINDOW"
,
443
"WITH"
,
444
"WITHIN"
,
445
"WITHOUT"
,
446
"YEAR"
,
447
};
reserved_keywords
static std::set< std::string > reserved_keywords
Definition:
ReservedKeywords.h:22
Parser
ReservedKeywords.h
Generated on Tue Aug 27 2024 00:12:39 for OmniSciDB by
1.8.5