-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathimpala_keywords.conf
563 lines (558 loc) · 5.16 KB
/
impala_keywords.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
--
-- Author: Hari Sekhon
-- Date: 2013-06-08 02:16:46 +0100 (Sat, 08 Jun 2013)
--
-- vim:ts=2:sts=2:sw=2:et:filetype=sql
--
-- https://github.com/HariSekhon/SQL-keywords
--
-- License: see accompanying LICENSE file
--
-- If you're using my code you're welcome to connect with me on LinkedIn
-- and optionally send me feedback to help improve or steer this or other code I publish
--
-- https://www.linkedin.com/in/HariSekhon
--
-- impalacase.pl configuration file
-- List of regex keywords to uppercase for Impala SQL
-- Keywords one per line will be replaced as-is with the case specified in here
-- whitespace is converted to \s+ for matching so this list can look cleaner
-- leading/trailing whitespace is automatically trimmed
-- don't specify functions such as COUNT() with brackets since brackets are added as one of several possible keyword boundaries
-- https://docs.cloudera.com/documentation/enterprise/latest/topics/impala_reserved_words.html
ABS
ACOS
ADD
AGGREGATE
ALL
ALLOCATE
ALTER
ANALYTIC
AND
ANTI
ANY
API_VERSION
ARE
ARRAY
ARRAY_AGG
ARRAY_MAX_CARDINALITY
AS
ASC
ASENSITIVE
ASIN
ASYMMETRIC
AT
ATAN
ATOMIC
AUTHORIZATION
AVG
AVRO
BACKUP
BEGIN
BEGIN_FRAME
BEGIN_PARTITION
BETWEEN
BIGINT
BINARY
BLOB
BLOCK_SIZE
BOOLEAN
BOTH
BREAK
BROWSE
BULK
BY
CACHE
CACHED
CALL
CALLED
CARDINALITY
CASCADE
CASCADED
CASE
CAST
CEIL
CEILING
CHANGE
CHAR
CHAR_LENGTH
CHARACTER
CHARACTER_LENGTH
CHECK
CHECKPOINT
CLASS
CLASSIFIER
CLOB
CLOSE
CLOSE_FN
CLUSTERED
COALESCE
COLLATE
COLLECT
COLUMN
COLUMNS
COMMENT
COMMIT
COMPRESSION
COMPUTE
CONDITION
CONF
CONNECT
CONSTRAINT
CONTAINS
CONTINUE
CONVERT
COPY
CORR
CORRESPONDING
COS
COSH
COUNT
COVAR_POP
COVAR_SAMP
CREATE
CROSS
CUBE
CUME_DIST
CURRENT
CURRENT_CATALOG
CURRENT_DATE
CURRENT_DEFAULT_TRANSFORM_GROUP
CURRENT_PATH
CURRENT_ROLE
CURRENT_ROW
CURRENT_SCHEMA
CURRENT_TIME
CURRENT_TIMESTAMP
CURRENT_TRANSFORM_GROUP_FOR_TYPE
CURRENT_USER
CURSOR
CYCLE
DATA
DATABASE
DATABASES
DATE
DATETIME
DAY
DAYOFWEEK
DBCC
DEALLOCATE
DEC
DECFLOAT
DECIMAL
DECLARE
DEFAULT
DEFINE
DELETE
DELIMITED
DENSE_RANK
DENY
DEREF
DESC
DESCRIBE
DETERMINISTIC
DISCONNECT
DISK
DISTINCT
DISTRIBUTED
DIV
DOUBLE
DROP
DUMP
DYNAMIC
EACH
ELEMENT
ELSE
EMPTY
ENCODING
END
END-EXEC
END_FRAME
END_PARTITION
EQUALS
ERRLVL
ESCAPE
ESCAPED
EVERY
EXCEPT
EXCHANGE
EXEC
EXECUTE
EXISTS
EXIT
EXP
EXPLAIN
EXTENDED
EXTERNAL
EXTRACT
FALSE
FETCH
FIELDS
FILE
FILEFACTOR
FILEFORMAT
FILES
FILTER
FINALIZE_FN
FIRST
FIRST_VALUE
FLOAT
FLOOR
FOLLOWING
FOR
FOREIGN
FORMAT
FORMATTED
FRAME_ROW
FREE
FREETEXT
FROM
FULL
FUNCTION
FUNCTIONS
FUSION
GET
GLOBAL
GOTO
GRANT
GROUP
GROUPING
GROUPS
HASH
HAVING
HOLD
HOLDLOCK
HOUR
IDENTITY
IF
IGNORE
ILIKE
IMPORT
IN
INCREMENTAL
INDEX
INDICATOR
INIT_FN
INITIAL
INNER
INOUT
INPATH
INSENSITIVE
INSERT
INT
INTEGER
INTERMEDIATE
INTERSECT
INTERSECTION
INTERVAL
INTO
INVALIDATE
IREGEXP
IS
JOIN
JSON_ARRAY
JSON_ARRAYAGG
JSON_EXISTS
JSON_OBJECT
JSON_OBJECTAGG
JSON_QUERY
JSON_TABLE
JSON_TABLE_PRIMITIVE
JSON_VALUE
KEY
KILL
KUDU
LAG
LANGUAGE
LARGE
LAST
LAST_VALUE
LATERAL
LEAD
LEADING
LEFT
LESS
LIKE
LIKE_REGEX
LIMIT
LINENO
LINES
LISTAGG
LN
LOAD
LOCAL
LOCALTIME
LOCALTIMESTAMP
LOCATION
LOG
LOG10
LOWER
MACRO
MAP
MATCH
MATCH_NUMBER
MATCH_RECOGNIZE
MATCHES
MAX
MEMBER
MERGE
MERGE_FN
METADATA
METHOD
MIN
MINUTE
MOD
MODIFIES
MODULE
MONTH
MORE
MULTISET
NATIONAL
NATURAL
NCHAR
NCLOB
NEW
NO
NOCHECK
NONCLUSTERED
NONE
NORMALIZE
NOT
NTH_VALUE
NTILE
NULL
NULLIF
NULLS
NUMERIC
OCCURRENCES_REGEX
OCTET_LENGTH
OF
OFF
OFFSET
OFFSETS
OLD
OMIT
ON
ONE
ONLY
OPEN
OPTION
OR
ORDER
OUT
OUTER
OVER
OVERLAPS
OVERLAY
OVERWRITE
PARAMETER
PARQUET
PARQUETFILE
PARTIALSCAN
PARTITION
PARTITIONED
PARTITIONS
PATTERN
PER
PERCENT
PERCENT_RANK
PERCENTILE_CONT
PERCENTILE_DISC
PERIOD
PIVOT
PLAN
PORTION
POSITION
POSITION_REGEX
POWER
PRECEDES
PRECEDING
PRECISION
PREPARE
PREPARE_FN
PRESERVE
PRIMARY
PRINT
PROC
PROCEDURE
PRODUCED
PTF
PUBLIC
PURGE
RAISEERROR
RANGE
RANK
RCFILE
READ
READS
READTEXT
REAL
RECONFIGURE
RECOVER
RECURSIVE
REDUCE
REF
REFERENCES
REFERENCING
REFRESH
REGEXP
REGR_AVGX
REGR_AVGY
REGR_COUNT
REGR_INTERCEPT
REGR_R2
REGR_SLOPE
REGR_SXX
REGR_SXY
REGR_SYY
RELEASE
RENAME
REPEATABLE
REPLACE
REPLICATION
RESTORE
RESTRICT
RESULT
RETURN
RETURNS
REVERT
REVOKE
RIGHT
RLIKE
ROLE
ROLES
ROLLBACK
ROLLUP
ROW
ROW_NUMBER
ROWCOUNT
ROWS
RULE
RUNNING
SAVE
SAVEPOINT
SCHEMA
SCHEMAS
SCOPE
SCROLL
SEARCH
SECOND
SECURITYAUDIT
SEEK
SELECT
SEMI
SENSITIVE
SEQUENCEFILE
SERDEPROPERTIES
SERIALIZE_FN
SESSION_USER
SET
SETUSER
SHOW
SHUTDOWN
SIMILAR
SIN
SINH
SKIP
SMALLINT
SOME
SORT
SPECIFIC
SPECIFICTYPE
SQL
SQLEXCEPTION
SQLSTATE
SQLWARNING
SQRT
START
STATIC
STATISTICS
STATS
STDDEV_POP
STDDEV_SAMP
STORED
STRAIGHT_JOIN
STRING
STRUCT
SUBMULTISET
SUBSET
SUBSTRING
SUBSTRING_REGEX
SUCCEEDS
SUM
SYMBOL
SYMMETRIC
SYSTEM
SYSTEM_TIME
SYSTEM_USER
TABLE
TABLES
TABLESAMPLE
TAN
TANH
TBLPROPERTIES
TERMINATED
TEXTFILE
TEXTSIZE
THEN
TIME
TIMESTAMP
TIMEZONE_HOUR
TIMEZONE_MINUTE
TINYINT
TO
TOP
TRAILING
TRAN
TRANSFORM
TRANSLATE
TRANSLATE_REGEX
TRANSLATION
TREAT
TRIGGER
TRIM
TRIM_ARRAY
TRUE
TRUNCATE
TRY_CONVERT
UESCAPE
UNBOUNDED
UNCACHED
UNION
UNIQUE
UNIQUEJOIN
UNKNOWN
UNNEST
UNPIVOT
UPDATE
UPDATE_FN
UPDATETEXT
UPPER
UPSERT
USE
USER
USING
UTC_TMESTAMP
VALUE
VALUE_OF
VALUES
VAR_POP
VAR_SAMP
VARBINARY
VARCHAR
VARYING
VERSIONING
VIEW
VIEWS
WAITFOR
WHEN
WHENEVER
WHERE
WHILE
WIDTH_BUCKET
WINDOW
WITH
WITHIN
WITHOUT
WRITETEXT
YEAR