monaco-yql-languages 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1306 @@
1
+ import type {CompletionLists} from '../completion';
2
+
3
+ export const keywords = [
4
+ 'AND',
5
+ 'ANY',
6
+ 'AS',
7
+ 'ASC',
8
+ 'ATTACH',
9
+ 'BETWEEN',
10
+ 'CASE',
11
+ 'CAST',
12
+ 'CREATE',
13
+ 'CROSS',
14
+ 'DATABASE',
15
+ 'DATABASES',
16
+ 'DEFAULT',
17
+ 'DELETE',
18
+ 'DESC',
19
+ 'DESCRIBE',
20
+ 'DETACH',
21
+ 'DISTINCT',
22
+ 'DROP',
23
+ 'ELSE',
24
+ 'END',
25
+ 'FOREIGN',
26
+ 'FROM',
27
+ 'GRANT',
28
+ 'HAVING',
29
+ 'IF',
30
+ 'INNER',
31
+ 'INSERT',
32
+ 'JOIN',
33
+ 'KEY',
34
+ 'LEFT',
35
+ 'NATURAL',
36
+ 'NOT',
37
+ 'OFFSET',
38
+ 'ON',
39
+ 'OPTIMIZE',
40
+ 'OR',
41
+ 'OUTER',
42
+ 'PREWHERE',
43
+ 'PRIMARY',
44
+ 'PROCESSLIST',
45
+ 'REFERENCES',
46
+ 'RIGHT',
47
+ 'SELECT',
48
+ 'SHOW',
49
+ 'TABLE',
50
+ 'THEN',
51
+ 'TO',
52
+ 'TOTALS',
53
+ 'TYPE',
54
+ 'UNION',
55
+ 'UPDATE',
56
+ 'USE',
57
+ 'WHEN',
58
+ 'WHERE',
59
+ 'WITH',
60
+ ];
61
+
62
+ export const keywordsDouble = [
63
+ 'GROUP BY',
64
+ 'ON CLUSTER',
65
+ 'ORDER BY',
66
+ 'LIMIT',
67
+ 'RENAME TABLE',
68
+ 'IF NOT EXISTS',
69
+ 'IF EXISTS',
70
+ 'FORMAT Vertical',
71
+ 'FORMAT JSONCompact',
72
+ 'FORMAT JSONEachRow',
73
+ 'FORMAT TSKV',
74
+ 'FORMAT TabSeparatedWithNames',
75
+ 'FORMAT TabSeparatedWithNamesAndTypes',
76
+ 'FORMAT TabSeparatedRaw',
77
+ 'FORMAT BlockTabSeparated',
78
+ 'FORMAT CSVWithNames',
79
+ 'FORMAT CSV',
80
+ 'FORMAT JSON',
81
+ 'FORMAT TabSeparated',
82
+ ];
83
+
84
+ export const constants = ['true', 'false', 'NULL'];
85
+
86
+ export const functionsCaseSensitive = [
87
+ '__bitBoolMaskAnd',
88
+ '__bitBoolMaskOr',
89
+ '__bitSwapLastTwo',
90
+ '__bitWrapperFunc',
91
+ '__getScalar',
92
+ 'accurate_Cast',
93
+ 'accurate_CastOrNull',
94
+ 'accurateCast',
95
+ 'accurateCastOrNull',
96
+ 'acosh',
97
+ 'addDays',
98
+ 'addHours',
99
+ 'addMinutes',
100
+ 'addMonths',
101
+ 'addQuarters',
102
+ 'addressToLine',
103
+ 'addressToSymbol',
104
+ 'addSeconds',
105
+ 'addWeeks',
106
+ 'addYears',
107
+ 'aes_decrypt_mysql',
108
+ 'aes_encrypt_mysql',
109
+ 'aggThrow',
110
+ 'alphaTokens',
111
+ 'and',
112
+ 'any',
113
+ 'anyHeavy',
114
+ 'anyLast',
115
+ 'appendTrailingCharIfAbsent',
116
+ 'argMax',
117
+ 'argMin',
118
+ 'array',
119
+ 'arrayAll',
120
+ 'arrayAUC',
121
+ 'arrayAvg',
122
+ 'arrayCompact',
123
+ 'arrayConcat',
124
+ 'arrayCount',
125
+ 'arrayCumSum',
126
+ 'arrayCumSumNonNegative',
127
+ 'arrayDifference',
128
+ 'arrayDistinct',
129
+ 'arrayElement',
130
+ 'arrayEnumerate',
131
+ 'arrayEnumerateDense',
132
+ 'arrayEnumerateDenseRanked',
133
+ 'arrayEnumerateUniq',
134
+ 'arrayEnumerateUniqRanked',
135
+ 'arrayExists',
136
+ 'arrayFill',
137
+ 'arrayFilter',
138
+ 'arrayFirst',
139
+ 'arrayFirstIndex',
140
+ 'arrayFlatten',
141
+ 'arrayIntersect',
142
+ 'arrayJoin',
143
+ 'arrayMap',
144
+ 'arrayMax',
145
+ 'arrayMin',
146
+ 'arrayPopBack',
147
+ 'arrayPopFront',
148
+ 'arrayProduct',
149
+ 'arrayPushBack',
150
+ 'arrayPushFront',
151
+ 'arrayReduce',
152
+ 'arrayReduceInRanges',
153
+ 'arrayResize',
154
+ 'arrayReverse',
155
+ 'arrayReverseFill',
156
+ 'arrayReverseSort',
157
+ 'arrayReverseSplit',
158
+ 'arraySlice',
159
+ 'arraySort',
160
+ 'arraySplit',
161
+ 'arrayStringConcat',
162
+ 'arraySum',
163
+ 'arrayUniq',
164
+ 'arrayWithConstant',
165
+ 'arrayZip',
166
+ 'asinh',
167
+ 'assumeNotNull',
168
+ 'atanh',
169
+ 'avgWeighted',
170
+ 'bar',
171
+ 'base64Decode',
172
+ 'base64Encode',
173
+ 'basename',
174
+ 'bitAnd',
175
+ 'bitCount',
176
+ 'bitHammingDistance',
177
+ 'bitmaskToArray',
178
+ 'bitmaskToList',
179
+ 'bitNot',
180
+ 'bitOr',
181
+ 'bitPositionsToArray',
182
+ 'bitRotateLeft',
183
+ 'bitRotateRight',
184
+ 'bitShiftLeft',
185
+ 'bitShiftRight',
186
+ 'bitTest',
187
+ 'bitTestAll',
188
+ 'bitTestAny',
189
+ 'bitXor',
190
+ 'blockNumber',
191
+ 'blockSerializedSize',
192
+ 'blockSize',
193
+ 'boundingRatio',
194
+ 'buildId',
195
+ 'byteSize',
196
+ 'caseWithExpr',
197
+ 'caseWithExpression',
198
+ 'caseWithoutExpr',
199
+ 'caseWithoutExpression',
200
+ 'categoricalInformationValue',
201
+ 'cbrt',
202
+ 'cityHash64',
203
+ 'concatAssumeInjective',
204
+ 'ConvertYson',
205
+ 'corrStable',
206
+ 'cosh',
207
+ 'countDigits',
208
+ 'countEqual',
209
+ 'countMatches',
210
+ 'countMatchesCaseInsensitive',
211
+ 'countSubstringsCaseInsensitive',
212
+ 'countSubstringsCaseInsensitiveUTF8',
213
+ 'covarPop',
214
+ 'covarPopStable',
215
+ 'covarSamp',
216
+ 'covarSampStable',
217
+ 'currentDatabase',
218
+ 'currentProfiles',
219
+ 'currentRoles',
220
+ 'currentUser',
221
+ 'cutFragment',
222
+ 'cutIPv6',
223
+ 'cutQueryString',
224
+ 'cutQueryStringAndFragment',
225
+ 'cutToFirstSignificantSubdomain',
226
+ 'cutToFirstSignificantSubdomainCustom',
227
+ 'cutToFirstSignificantSubdomainCustomWithWWW',
228
+ 'cutToFirstSignificantSubdomainWithWWW',
229
+ 'cutURLParameter',
230
+ 'cutWWW',
231
+ 'dateTime64ToSnowflake',
232
+ 'dateTimeToSnowflake',
233
+ 'dateTrunc',
234
+ 'decodeURLComponent',
235
+ 'decodeXMLComponent',
236
+ 'decrypt',
237
+ 'defaultProfiles',
238
+ 'defaultRoles',
239
+ 'defaultValueOfArgumentType',
240
+ 'defaultValueOfTypeName',
241
+ 'deltaSum',
242
+ 'deltaSumTimestamp',
243
+ 'demangle',
244
+ 'dictGet',
245
+ 'dictGetChildren',
246
+ 'dictGetDate',
247
+ 'dictGetDateOrDefault',
248
+ 'dictGetDateTime',
249
+ 'dictGetDateTimeOrDefault',
250
+ 'dictGetDescendants',
251
+ 'dictGetFloat32',
252
+ 'dictGetFloat32OrDefault',
253
+ 'dictGetFloat64',
254
+ 'dictGetFloat64OrDefault',
255
+ 'dictGetHierarchy',
256
+ 'dictGetInt8',
257
+ 'dictGetInt8OrDefault',
258
+ 'dictGetInt16',
259
+ 'dictGetInt16OrDefault',
260
+ 'dictGetInt32',
261
+ 'dictGetInt32OrDefault',
262
+ 'dictGetInt64',
263
+ 'dictGetInt64OrDefault',
264
+ 'dictGetOrDefault',
265
+ 'dictGetOrNull',
266
+ 'dictGetString',
267
+ 'dictGetStringOrDefault',
268
+ 'dictGetUInt8',
269
+ 'dictGetUInt8OrDefault',
270
+ 'dictGetUInt16',
271
+ 'dictGetUInt16OrDefault',
272
+ 'dictGetUInt32',
273
+ 'dictGetUInt32OrDefault',
274
+ 'dictGetUInt64',
275
+ 'dictGetUInt64OrDefault',
276
+ 'dictGetUUID',
277
+ 'dictGetUUIDOrDefault',
278
+ 'dictHas',
279
+ 'dictIsIn',
280
+ 'divide',
281
+ 'domain',
282
+ 'domainWithoutWWW',
283
+ 'dumpColumnStructure',
284
+ 'e',
285
+ 'empty',
286
+ 'emptyArrayDate',
287
+ 'emptyArrayDateTime',
288
+ 'emptyArrayFloat32',
289
+ 'emptyArrayFloat64',
290
+ 'emptyArrayInt8',
291
+ 'emptyArrayInt16',
292
+ 'emptyArrayInt32',
293
+ 'emptyArrayInt64',
294
+ 'emptyArrayString',
295
+ 'emptyArrayToSingle',
296
+ 'emptyArrayUInt8',
297
+ 'emptyArrayUInt16',
298
+ 'emptyArrayUInt32',
299
+ 'emptyArrayUInt64',
300
+ 'enabledProfiles',
301
+ 'enabledRoles',
302
+ 'encodeXMLComponent',
303
+ 'encrypt',
304
+ 'endsWith',
305
+ 'entropy',
306
+ 'equals',
307
+ 'erf',
308
+ 'erfc',
309
+ 'errorCodeToName',
310
+ 'evalMLMethod',
311
+ 'exp2',
312
+ 'exp10',
313
+ 'extract',
314
+ 'extractAll',
315
+ 'extractAllGroups',
316
+ 'extractAllGroupsHorizontal',
317
+ 'extractAllGroupsVertical',
318
+ 'extractGroups',
319
+ 'extractTextFromHTML',
320
+ 'extractURLParameter',
321
+ 'extractURLParameterNames',
322
+ 'extractURLParameters',
323
+ 'farmFingerprint64',
324
+ 'farmHash64',
325
+ 'file',
326
+ 'filesystemAvailable',
327
+ 'filesystemCapacity',
328
+ 'filesystemFree',
329
+ 'finalizeAggregation',
330
+ 'firstSignificantSubdomain',
331
+ 'firstSignificantSubdomainCustom',
332
+ 'format',
333
+ 'formatDateTime',
334
+ 'formatReadableQuantity',
335
+ 'formatReadableSize',
336
+ 'formatReadableTimeDelta',
337
+ 'formatRow',
338
+ 'formatRowNoNewline',
339
+ 'fragment',
340
+ 'FROM_UNIXTIME',
341
+ 'fromModifiedJulianDay',
342
+ 'fromModifiedJulianDayOrNull',
343
+ 'fromUnixTimestamp',
344
+ 'fromUnixTimestamp64Micro',
345
+ 'fromUnixTimestamp64Milli',
346
+ 'fromUnixTimestamp64Nano',
347
+ 'fullHostName',
348
+ 'fuzzBits',
349
+ 'gcd',
350
+ 'generateUUIDv4',
351
+ 'geoDistance',
352
+ 'geohashDecode',
353
+ 'geohashEncode',
354
+ 'geohashesInBox',
355
+ 'geoToH3',
356
+ 'getMacro',
357
+ 'getServerPort',
358
+ 'getSetting',
359
+ 'getSizeOfEnumType',
360
+ 'globalIn',
361
+ 'globalInIgnoreSet',
362
+ 'globalNotIn',
363
+ 'globalNotInIgnoreSet',
364
+ 'globalNotNullIn',
365
+ 'globalNotNullInIgnoreSet',
366
+ 'globalNullIn',
367
+ 'globalNullInIgnoreSet',
368
+ 'globalVariable',
369
+ 'greatCircleAngle',
370
+ 'greatCircleDistance',
371
+ 'greater',
372
+ 'greaterOrEquals',
373
+ 'groupArray',
374
+ 'groupArrayInsertAt',
375
+ 'groupArrayMovingAvg',
376
+ 'groupArrayMovingSum',
377
+ 'groupArraySample',
378
+ 'groupBitAnd',
379
+ 'groupBitOr',
380
+ 'groupBitXor',
381
+ 'groupUniqArray',
382
+ 'h3EdgeAngle',
383
+ 'h3EdgeLengthM',
384
+ 'h3GetBaseCell',
385
+ 'h3GetResolution',
386
+ 'h3HexAreaM2',
387
+ 'h3IndexesAreNeighbors',
388
+ 'h3IsValid',
389
+ 'h3kRing',
390
+ 'h3ToChildren',
391
+ 'h3ToGeo',
392
+ 'h3ToParent',
393
+ 'h3ToString',
394
+ 'halfMD5',
395
+ 'has',
396
+ 'hasAll',
397
+ 'hasAny',
398
+ 'hasColumnInTable',
399
+ 'hasSubstr',
400
+ 'hasThreadFuzzer',
401
+ 'hasToken',
402
+ 'hasTokenCaseInsensitive',
403
+ 'histogram',
404
+ 'hiveHash',
405
+ 'hostName',
406
+ 'hostname',
407
+ 'identity',
408
+ 'ifNotFinite',
409
+ 'ignore',
410
+ 'ilike',
411
+ 'in',
412
+ 'indexHint',
413
+ 'indexOf',
414
+ 'inIgnoreSet',
415
+ 'initializeAggregation',
416
+ 'initialQueryID',
417
+ 'intDiv',
418
+ 'intDivOrZero',
419
+ 'intervalLengthSum',
420
+ 'intExp2',
421
+ 'intExp10',
422
+ 'intHash32',
423
+ 'intHash64',
424
+ 'IPv4CIDRToRange',
425
+ 'IPv4NumToString',
426
+ 'IPv4NumToStringClassC',
427
+ 'IPv4StringToNum',
428
+ 'IPv4ToIPv6',
429
+ 'IPv6CIDRToRange',
430
+ 'IPv6NumToString',
431
+ 'IPv6StringToNum',
432
+ 'isConstant',
433
+ 'isDecimalOverflow',
434
+ 'isFinite',
435
+ 'isInfinite',
436
+ 'isIPAddressInRange',
437
+ 'isIPv4String',
438
+ 'isIPv6String',
439
+ 'isNaN',
440
+ 'isNotNull',
441
+ 'isValidJSON',
442
+ 'isValidUTF8',
443
+ 'isZeroOrNull',
444
+ 'javaHash',
445
+ 'javaHashUTF16LE',
446
+ 'joinGet',
447
+ 'joinGetOrNull',
448
+ 'JSON_EXISTS',
449
+ 'JSON_QUERY',
450
+ 'JSON_VALUE',
451
+ 'JSONExtract',
452
+ 'JSONExtractArrayRaw',
453
+ 'JSONExtractBool',
454
+ 'JSONExtractFloat',
455
+ 'JSONExtractInt',
456
+ 'JSONExtractKeysAndValues',
457
+ 'JSONExtractKeysAndValuesRaw',
458
+ 'JSONExtractRaw',
459
+ 'JSONExtractString',
460
+ 'JSONExtractUInt',
461
+ 'JSONHas',
462
+ 'JSONKey',
463
+ 'JSONLength',
464
+ 'JSONType',
465
+ 'jumpConsistentHash',
466
+ 'kurtPop',
467
+ 'kurtSamp',
468
+ 'lagInFrame',
469
+ 'lcm',
470
+ 'leadInFrame',
471
+ 'leftPad',
472
+ 'leftPadUTF8',
473
+ 'lengthUTF8',
474
+ 'less',
475
+ 'lessOrEquals',
476
+ 'lgamma',
477
+ 'like',
478
+ 'log1p',
479
+ 'logTrace',
480
+ 'lowCardinalityIndices',
481
+ 'lowCardinalityKeys',
482
+ 'lowerUTF8',
483
+ 'MACNumToString',
484
+ 'MACStringToNum',
485
+ 'MACStringToOUI',
486
+ 'mannWhitneyUTest',
487
+ 'map',
488
+ 'mapAdd',
489
+ 'mapContains',
490
+ 'mapKeys',
491
+ 'mapPopulateSeries',
492
+ 'mapSubtract',
493
+ 'mapValues',
494
+ 'match',
495
+ 'materialize',
496
+ 'maxIntersections',
497
+ 'maxIntersectionsPosition',
498
+ 'maxMap',
499
+ 'MD5',
500
+ 'median',
501
+ 'medianBFloat16',
502
+ 'medianBFloat16Weighted',
503
+ 'medianDeterministic',
504
+ 'medianExact',
505
+ 'medianExactHigh',
506
+ 'medianExactLow',
507
+ 'medianExactWeighted',
508
+ 'medianTDigest',
509
+ 'medianTDigestWeighted',
510
+ 'medianTiming',
511
+ 'medianTimingWeighted',
512
+ 'metroHash64',
513
+ 'minMap',
514
+ 'minus',
515
+ 'modelEvaluate',
516
+ 'modulo',
517
+ 'moduloLegacy',
518
+ 'moduloOrZero',
519
+ 'multiFuzzyMatchAllIndices',
520
+ 'multiFuzzyMatchAny',
521
+ 'multiFuzzyMatchAnyIndex',
522
+ 'multiIf',
523
+ 'multiMatchAllIndices',
524
+ 'multiMatchAny',
525
+ 'multiMatchAnyIndex',
526
+ 'multiply',
527
+ 'multiSearchAllPositions',
528
+ 'multiSearchAllPositionsCaseInsensitive',
529
+ 'multiSearchAllPositionsCaseInsensitiveUTF8',
530
+ 'multiSearchAllPositionsUTF8',
531
+ 'multiSearchAny',
532
+ 'multiSearchAnyCaseInsensitive',
533
+ 'multiSearchAnyCaseInsensitiveUTF8',
534
+ 'multiSearchAnyUTF8',
535
+ 'multiSearchFirstIndex',
536
+ 'multiSearchFirstIndexCaseInsensitive',
537
+ 'multiSearchFirstIndexCaseInsensitiveUTF8',
538
+ 'multiSearchFirstIndexUTF8',
539
+ 'multiSearchFirstPosition',
540
+ 'multiSearchFirstPositionCaseInsensitive',
541
+ 'multiSearchFirstPositionCaseInsensitiveUTF8',
542
+ 'multiSearchFirstPositionUTF8',
543
+ 'negate',
544
+ 'neighbor',
545
+ 'netloc',
546
+ 'ngramDistance',
547
+ 'ngramDistanceCaseInsensitive',
548
+ 'ngramDistanceCaseInsensitiveUTF8',
549
+ 'ngramDistanceUTF8',
550
+ 'ngramMinHash',
551
+ 'ngramMinHashArg',
552
+ 'ngramMinHashArgCaseInsensitive',
553
+ 'ngramMinHashArgCaseInsensitiveUTF8',
554
+ 'ngramMinHashArgUTF8',
555
+ 'ngramMinHashCaseInsensitive',
556
+ 'ngramMinHashCaseInsensitiveUTF8',
557
+ 'ngramMinHashUTF8',
558
+ 'ngramSearch',
559
+ 'ngramSearchCaseInsensitive',
560
+ 'ngramSearchCaseInsensitiveUTF8',
561
+ 'ngramSearchUTF8',
562
+ 'ngramSimHash',
563
+ 'ngramSimHashCaseInsensitive',
564
+ 'ngramSimHashCaseInsensitiveUTF8',
565
+ 'ngramSimHashUTF8',
566
+ 'normalizedQueryHash',
567
+ 'normalizedQueryHashKeepNames',
568
+ 'normalizeQuery',
569
+ 'normalizeQueryKeepNames',
570
+ 'notEmpty',
571
+ 'notEquals',
572
+ 'notILike',
573
+ 'notIn',
574
+ 'notInIgnoreSet',
575
+ 'notLike',
576
+ 'notNullIn',
577
+ 'notNullInIgnoreSet',
578
+ 'nullIn',
579
+ 'nullInIgnoreSet',
580
+ 'or',
581
+ 'parseDateTime32BestEffort',
582
+ 'parseDateTime32BestEffortOrNull',
583
+ 'parseDateTime32BestEffortOrZero',
584
+ 'parseDateTime64BestEffort',
585
+ 'parseDateTime64BestEffortOrNull',
586
+ 'parseDateTime64BestEffortOrZero',
587
+ 'parseDateTimeBestEffort',
588
+ 'parseDateTimeBestEffortOrNull',
589
+ 'parseDateTimeBestEffortOrZero',
590
+ 'parseDateTimeBestEffortUS',
591
+ 'parseDateTimeBestEffortUSOrNull',
592
+ 'parseDateTimeBestEffortUSOrZero',
593
+ 'partitionId',
594
+ 'path',
595
+ 'pathFull',
596
+ 'plus',
597
+ 'pointInEllipses',
598
+ 'pointInPolygon',
599
+ 'polygonAreaCartesian',
600
+ 'polygonAreaSpherical',
601
+ 'polygonConvexHullCartesian',
602
+ 'polygonPerimeterCartesian',
603
+ 'polygonPerimeterSpherical',
604
+ 'polygonsDistanceCartesian',
605
+ 'polygonsDistanceSpherical',
606
+ 'polygonsEqualsCartesian',
607
+ 'polygonsIntersectionCartesian',
608
+ 'polygonsIntersectionSpherical',
609
+ 'polygonsSymDifferenceCartesian',
610
+ 'polygonsSymDifferenceSpherical',
611
+ 'polygonsUnionCartesian',
612
+ 'polygonsUnionSpherical',
613
+ 'polygonsWithinCartesian',
614
+ 'polygonsWithinSpherical',
615
+ 'port',
616
+ 'positionCaseInsensitive',
617
+ 'positionCaseInsensitiveUTF8',
618
+ 'positionUTF8',
619
+ 'protocol',
620
+ 'quantile',
621
+ 'quantileBFloat16',
622
+ 'quantileBFloat16Weighted',
623
+ 'quantileDeterministic',
624
+ 'quantileExact',
625
+ 'quantileExactExclusive',
626
+ 'quantileExactHigh',
627
+ 'quantileExactInclusive',
628
+ 'quantileExactLow',
629
+ 'quantileExactWeighted',
630
+ 'quantiles',
631
+ 'quantilesBFloat16',
632
+ 'quantilesBFloat16Weighted',
633
+ 'quantilesDeterministic',
634
+ 'quantilesExact',
635
+ 'quantilesExactExclusive',
636
+ 'quantilesExactHigh',
637
+ 'quantilesExactInclusive',
638
+ 'quantilesExactLow',
639
+ 'quantilesExactWeighted',
640
+ 'quantilesTDigest',
641
+ 'quantilesTDigestWeighted',
642
+ 'quantilesTiming',
643
+ 'quantilesTimingWeighted',
644
+ 'quantileTDigest',
645
+ 'quantileTDigestWeighted',
646
+ 'quantileTiming',
647
+ 'quantileTimingWeighted',
648
+ 'queryID',
649
+ 'queryString',
650
+ 'queryStringAndFragment',
651
+ 'rand32',
652
+ 'rand64',
653
+ 'randConstant',
654
+ 'randomFixedString',
655
+ 'randomPrintableASCII',
656
+ 'randomString',
657
+ 'randomStringUTF8',
658
+ 'range',
659
+ 'rankCorr',
660
+ 'readWktMultiPolygon',
661
+ 'readWktPoint',
662
+ 'readWktPolygon',
663
+ 'readWktRing',
664
+ 'regexpQuoteMeta',
665
+ 'regionHierarchy',
666
+ 'regionIn',
667
+ 'regionToArea',
668
+ 'regionToCity',
669
+ 'regionToContinent',
670
+ 'regionToCountry',
671
+ 'regionToDistrict',
672
+ 'regionToName',
673
+ 'regionToPopulation',
674
+ 'regionToTopContinent',
675
+ 'reinterpret',
676
+ 'reinterpretAsDate',
677
+ 'reinterpretAsDateTime',
678
+ 'reinterpretAsFixedString',
679
+ 'reinterpretAsFloat32',
680
+ 'reinterpretAsFloat64',
681
+ 'reinterpretAsInt8',
682
+ 'reinterpretAsInt16',
683
+ 'reinterpretAsInt32',
684
+ 'reinterpretAsInt64',
685
+ 'reinterpretAsInt128',
686
+ 'reinterpretAsInt256',
687
+ 'reinterpretAsString',
688
+ 'reinterpretAsUInt8',
689
+ 'reinterpretAsUInt16',
690
+ 'reinterpretAsUInt32',
691
+ 'reinterpretAsUInt64',
692
+ 'reinterpretAsUInt128',
693
+ 'reinterpretAsUInt256',
694
+ 'reinterpretAsUUID',
695
+ 'replaceAll',
696
+ 'replaceOne',
697
+ 'replaceRegexpAll',
698
+ 'replaceRegexpOne',
699
+ 'replicate',
700
+ 'retention',
701
+ 'reverseUTF8',
702
+ 'rightPad',
703
+ 'rightPadUTF8',
704
+ 'roundAge',
705
+ 'roundBankers',
706
+ 'roundDown',
707
+ 'roundDuration',
708
+ 'roundToExp2',
709
+ 'rowNumberInAllBlocks',
710
+ 'rowNumberInBlock',
711
+ 'runningAccumulate',
712
+ 'runningConcurrency',
713
+ 'runningDifference',
714
+ 'runningDifferenceStartingWithFirstValue',
715
+ 'sequenceCount',
716
+ 'sequenceMatch',
717
+ 'sequenceNextNode',
718
+ 'serverUUID',
719
+ 'SHA1',
720
+ 'SHA224',
721
+ 'SHA256',
722
+ 'SHA512',
723
+ 'shardCount',
724
+ 'shardNum',
725
+ 'sigmoid',
726
+ 'simpleJSONExtractBool',
727
+ 'simpleJSONExtractFloat',
728
+ 'simpleJSONExtractInt',
729
+ 'simpleJSONExtractRaw',
730
+ 'simpleJSONExtractString',
731
+ 'simpleJSONExtractUInt',
732
+ 'simpleJSONHas',
733
+ 'simpleLinearRegression',
734
+ 'singleValueOrNull',
735
+ 'sinh',
736
+ 'sipHash64',
737
+ 'sipHash128',
738
+ 'skewPop',
739
+ 'skewSamp',
740
+ 'sleep',
741
+ 'sleepEachRow',
742
+ 'snowflakeToDateTime',
743
+ 'snowflakeToDateTime64',
744
+ 'splitByChar',
745
+ 'splitByNonAlpha',
746
+ 'splitByRegexp',
747
+ 'splitByString',
748
+ 'splitByWhitespace',
749
+ 'startsWith',
750
+ 'stddevPop',
751
+ 'stddevPopStable',
752
+ 'stddevSamp',
753
+ 'stddevSampStable',
754
+ 'stochasticLinearRegression',
755
+ 'stochasticLogisticRegression',
756
+ 'stringToH3',
757
+ 'studentTTest',
758
+ 'substringUTF8',
759
+ 'subtractDays',
760
+ 'subtractHours',
761
+ 'subtractMinutes',
762
+ 'subtractMonths',
763
+ 'subtractQuarters',
764
+ 'subtractSeconds',
765
+ 'subtractWeeks',
766
+ 'subtractYears',
767
+ 'sumCount',
768
+ 'sumKahan',
769
+ 'sumMap',
770
+ 'sumMapFiltered',
771
+ 'sumMapFilteredWithOverflow',
772
+ 'sumMapWithOverflow',
773
+ 'sumWithOverflow',
774
+ 'svg',
775
+ 'tcpPort',
776
+ 'tgamma',
777
+ 'throwIf',
778
+ 'tid',
779
+ 'timeSlot',
780
+ 'timeSlots',
781
+ 'timeZone',
782
+ 'timezone',
783
+ 'timeZoneOf',
784
+ 'timezoneOf',
785
+ 'timeZoneOffset',
786
+ 'timezoneOffset',
787
+ 'toColumnTypeName',
788
+ 'toDate',
789
+ 'toDate32',
790
+ 'toDate32OrNull',
791
+ 'toDate32OrZero',
792
+ 'toDateOrNull',
793
+ 'toDateOrZero',
794
+ 'toDateTime',
795
+ 'toDateTime32',
796
+ 'toDateTime64',
797
+ 'toDateTime64OrNull',
798
+ 'toDateTime64OrZero',
799
+ 'toDateTimeOrNull',
800
+ 'toDateTimeOrZero',
801
+ 'today',
802
+ 'toDayOfMonth',
803
+ 'toDayOfWeek',
804
+ 'toDayOfYear',
805
+ 'toDecimal32',
806
+ 'toDecimal32OrNull',
807
+ 'toDecimal32OrZero',
808
+ 'toDecimal64',
809
+ 'toDecimal64OrNull',
810
+ 'toDecimal64OrZero',
811
+ 'toDecimal128',
812
+ 'toDecimal128OrNull',
813
+ 'toDecimal128OrZero',
814
+ 'toDecimal256',
815
+ 'toDecimal256OrNull',
816
+ 'toDecimal256OrZero',
817
+ 'toFixedString',
818
+ 'toFloat32',
819
+ 'toFloat32OrNull',
820
+ 'toFloat32OrZero',
821
+ 'toFloat64',
822
+ 'toFloat64OrNull',
823
+ 'toFloat64OrZero',
824
+ 'toHour',
825
+ 'toInt8',
826
+ 'toInt8OrNull',
827
+ 'toInt8OrZero',
828
+ 'toInt16',
829
+ 'toInt16OrNull',
830
+ 'toInt16OrZero',
831
+ 'toInt32',
832
+ 'toInt32OrNull',
833
+ 'toInt32OrZero',
834
+ 'toInt64',
835
+ 'toInt64OrNull',
836
+ 'toInt64OrZero',
837
+ 'toInt128',
838
+ 'toInt128OrNull',
839
+ 'toInt128OrZero',
840
+ 'toInt256',
841
+ 'toInt256OrNull',
842
+ 'toInt256OrZero',
843
+ 'toIntervalDay',
844
+ 'toIntervalHour',
845
+ 'toIntervalMinute',
846
+ 'toIntervalMonth',
847
+ 'toIntervalQuarter',
848
+ 'toIntervalSecond',
849
+ 'toIntervalWeek',
850
+ 'toIntervalYear',
851
+ 'toIPv4',
852
+ 'toIPv6',
853
+ 'toISOWeek',
854
+ 'toISOYear',
855
+ 'toJSONString',
856
+ 'toLowCardinality',
857
+ 'toMinute',
858
+ 'toModifiedJulianDay',
859
+ 'toModifiedJulianDayOrNull',
860
+ 'toMonday',
861
+ 'toMonth',
862
+ 'toNullable',
863
+ 'topK',
864
+ 'topKWeighted',
865
+ 'topLevelDomain',
866
+ 'toQuarter',
867
+ 'toRelativeDayNum',
868
+ 'toRelativeHourNum',
869
+ 'toRelativeMinuteNum',
870
+ 'toRelativeMonthNum',
871
+ 'toRelativeQuarterNum',
872
+ 'toRelativeSecondNum',
873
+ 'toRelativeWeekNum',
874
+ 'toRelativeYearNum',
875
+ 'toSecond',
876
+ 'toStartOfDay',
877
+ 'toStartOfFifteenMinutes',
878
+ 'toStartOfFiveMinute',
879
+ 'toStartOfHour',
880
+ 'toStartOfInterval',
881
+ 'toStartOfISOYear',
882
+ 'toStartOfMinute',
883
+ 'toStartOfMonth',
884
+ 'toStartOfQuarter',
885
+ 'toStartOfSecond',
886
+ 'toStartOfTenMinutes',
887
+ 'toStartOfWeek',
888
+ 'toStartOfYear',
889
+ 'toString',
890
+ 'toStringCutToZero',
891
+ 'toTime',
892
+ 'toTimeZone',
893
+ 'toTimezone',
894
+ 'toTypeName',
895
+ 'toUInt8',
896
+ 'toUInt8OrNull',
897
+ 'toUInt8OrZero',
898
+ 'toUInt16',
899
+ 'toUInt16OrNull',
900
+ 'toUInt16OrZero',
901
+ 'toUInt32',
902
+ 'toUInt32OrNull',
903
+ 'toUInt32OrZero',
904
+ 'toUInt64',
905
+ 'toUInt64OrNull',
906
+ 'toUInt64OrZero',
907
+ 'toUInt128',
908
+ 'toUInt128OrNull',
909
+ 'toUInt128OrZero',
910
+ 'toUInt256',
911
+ 'toUInt256OrNull',
912
+ 'toUInt256OrZero',
913
+ 'toUnixTimestamp',
914
+ 'toUnixTimestamp64Micro',
915
+ 'toUnixTimestamp64Milli',
916
+ 'toUnixTimestamp64Nano',
917
+ 'toUUID',
918
+ 'toUUIDOrNull',
919
+ 'toUUIDOrZero',
920
+ 'toValidUTF8',
921
+ 'toWeek',
922
+ 'toYear',
923
+ 'toYearWeek',
924
+ 'toYYYYMM',
925
+ 'toYYYYMMDD',
926
+ 'toYYYYMMDDhhmmss',
927
+ 'transform',
928
+ 'trimBoth',
929
+ 'trimLeft',
930
+ 'trimRight',
931
+ 'tryBase64Decode',
932
+ 'tuple',
933
+ 'tupleElement',
934
+ 'tupleHammingDistance',
935
+ 'tupleToNameValuePairs',
936
+ 'uniq',
937
+ 'uniqCombined',
938
+ 'uniqCombined64',
939
+ 'uniqExact',
940
+ 'uniqHLL12',
941
+ 'uniqUpTo',
942
+ 'upperUTF8',
943
+ 'uptime',
944
+ 'URLHash',
945
+ 'URLHierarchy',
946
+ 'URLPathHierarchy',
947
+ 'UUIDNumToString',
948
+ 'UUIDStringToNum',
949
+ 'validateNestedArraySizes',
950
+ 'varPop',
951
+ 'varPopStable',
952
+ 'varSamp',
953
+ 'varSampStable',
954
+ 'visibleWidth',
955
+ 'visitParamExtractBool',
956
+ 'visitParamExtractFloat',
957
+ 'visitParamExtractInt',
958
+ 'visitParamExtractRaw',
959
+ 'visitParamExtractString',
960
+ 'visitParamExtractUInt',
961
+ 'visitParamHas',
962
+ 'welchTTest',
963
+ 'windowFunnel',
964
+ 'wkt',
965
+ 'wordShingleMinHash',
966
+ 'wordShingleMinHashArg',
967
+ 'wordShingleMinHashArgCaseInsensitive',
968
+ 'wordShingleMinHashArgCaseInsensitiveUTF8',
969
+ 'wordShingleMinHashArgUTF8',
970
+ 'wordShingleMinHashCaseInsensitive',
971
+ 'wordShingleMinHashCaseInsensitiveUTF8',
972
+ 'wordShingleMinHashUTF8',
973
+ 'wordShingleSimHash',
974
+ 'wordShingleSimHashCaseInsensitive',
975
+ 'wordShingleSimHashCaseInsensitiveUTF8',
976
+ 'wordShingleSimHashUTF8',
977
+ 'xor',
978
+ 'xxHash32',
979
+ 'xxHash64',
980
+ 'yandexConsistentHash',
981
+ 'yesterday',
982
+ 'YPathArrayBoolean',
983
+ 'YPathArrayBooleanStrict',
984
+ 'YPathArrayDouble',
985
+ 'YPathArrayDoubleStrict',
986
+ 'YPathArrayInt64',
987
+ 'YPathArrayInt64Strict',
988
+ 'YPathArrayUInt64',
989
+ 'YPathArrayUInt64Strict',
990
+ 'YPathBoolean',
991
+ 'YPathBooleanStrict',
992
+ 'YPathDouble',
993
+ 'YPathDoubleStrict',
994
+ 'YPathExtract',
995
+ 'YPathExtractStrict',
996
+ 'YPathInt64',
997
+ 'YPathInt64Strict',
998
+ 'YPathRaw',
999
+ 'YPathRawStrict',
1000
+ 'YPathString',
1001
+ 'YPathStringStrict',
1002
+ 'YPathUInt64',
1003
+ 'YPathUInt64Strict',
1004
+ 'YSONExtract',
1005
+ 'YSONExtractArrayRaw',
1006
+ 'YSONExtractBool',
1007
+ 'YSONExtractFloat',
1008
+ 'YSONExtractInt',
1009
+ 'YSONExtractKeysAndValues',
1010
+ 'YSONExtractKeysAndValuesRaw',
1011
+ 'YSONExtractRaw',
1012
+ 'YSONExtractString',
1013
+ 'YSONExtractUInt',
1014
+ 'YSONHas',
1015
+ 'YSONKey',
1016
+ 'YSONLength',
1017
+ 'YSONType',
1018
+ ];
1019
+
1020
+ export const functionsCaseInsensitive = [
1021
+ '_CAST',
1022
+ 'abs',
1023
+ 'acos',
1024
+ 'asin',
1025
+ 'atan',
1026
+ 'atan2',
1027
+ 'avg',
1028
+ 'bin',
1029
+ 'BIT_AND',
1030
+ 'BIT_OR',
1031
+ 'BIT_XOR',
1032
+ 'CAST',
1033
+ 'ceil',
1034
+ 'ceiling',
1035
+ 'char',
1036
+ 'CHAR_LENGTH',
1037
+ 'CHARACTER_LENGTH',
1038
+ 'coalesce',
1039
+ 'concat',
1040
+ 'connection_id',
1041
+ 'connectionId',
1042
+ 'corr',
1043
+ 'cos',
1044
+ 'count',
1045
+ 'countSubstrings',
1046
+ 'COVAR_POP',
1047
+ 'COVAR_SAMP',
1048
+ 'CRC32',
1049
+ 'CRC32IEEE',
1050
+ 'CRC64',
1051
+ 'DATABASE',
1052
+ 'DATE',
1053
+ 'date_trunc',
1054
+ 'dateDiff',
1055
+ 'dateName',
1056
+ 'DAY',
1057
+ 'DAYOFMONTH',
1058
+ 'DAYOFWEEK',
1059
+ 'DAYOFYEAR',
1060
+ 'dense_rank',
1061
+ 'exp',
1062
+ 'first_value',
1063
+ 'flatten',
1064
+ 'floor',
1065
+ 'FQDN',
1066
+ 'FROM_BASE64',
1067
+ 'greatest',
1068
+ 'hex',
1069
+ 'HOUR',
1070
+ 'hypot',
1071
+ 'if',
1072
+ 'ifNull',
1073
+ 'INET6_ATON',
1074
+ 'INET6_NTOA',
1075
+ 'INET_ATON',
1076
+ 'INET_NTOA',
1077
+ 'initial_query_id',
1078
+ 'isNull',
1079
+ 'last_value',
1080
+ 'lcase',
1081
+ 'least',
1082
+ 'length',
1083
+ 'ln',
1084
+ 'locate',
1085
+ 'log',
1086
+ 'log2',
1087
+ 'log10',
1088
+ 'lower',
1089
+ 'lpad',
1090
+ 'max',
1091
+ 'mid',
1092
+ 'min',
1093
+ 'MINUTE',
1094
+ 'mod',
1095
+ 'MONTH',
1096
+ 'not',
1097
+ 'now',
1098
+ 'now64',
1099
+ 'nth_value',
1100
+ 'nullIf',
1101
+ 'pi',
1102
+ 'position',
1103
+ 'pow',
1104
+ 'power',
1105
+ 'QUARTER',
1106
+ 'query_id',
1107
+ 'rand',
1108
+ 'rank',
1109
+ 'repeat',
1110
+ 'replace',
1111
+ 'reverse',
1112
+ 'round',
1113
+ 'row_number',
1114
+ 'rpad',
1115
+ 'SECOND',
1116
+ 'sign',
1117
+ 'sin',
1118
+ 'sqrt',
1119
+ 'STDDEV_POP',
1120
+ 'STDDEV_SAMP',
1121
+ 'substr',
1122
+ 'substring',
1123
+ 'sum',
1124
+ 'tan',
1125
+ 'tanh',
1126
+ 'TO_BASE64',
1127
+ 'trunc',
1128
+ 'truncate',
1129
+ 'ucase',
1130
+ 'unbin',
1131
+ 'unhex',
1132
+ 'upper',
1133
+ 'user',
1134
+ 'VAR_POP',
1135
+ 'VAR_SAMP',
1136
+ 'version',
1137
+ 'week',
1138
+ 'YEAR',
1139
+ 'yearweek',
1140
+ ];
1141
+
1142
+ export const tableFunctions = [
1143
+ 'cluster',
1144
+ 'clusterAllReplicas',
1145
+ 'concatYtTables',
1146
+ 'concatYtTablesLike',
1147
+ 'concatYtTablesRange',
1148
+ 'concatYtTablesRegexp',
1149
+ 'dictionary',
1150
+ 'executable',
1151
+ 'file',
1152
+ 'generateRandom',
1153
+ 'input',
1154
+ 'jdbc',
1155
+ 'merge',
1156
+ 'null',
1157
+ 'numbers',
1158
+ 'numbers_mt',
1159
+ 'odbc',
1160
+ 'remote',
1161
+ 'remoteSecure',
1162
+ 'url',
1163
+ 'values',
1164
+ 'view',
1165
+ 'ytSubquery',
1166
+ 'zeros',
1167
+ 'zeros_mt',
1168
+ ];
1169
+
1170
+ export const tableEngines = ['Buffer', 'Memory', 'YtTable'];
1171
+
1172
+ export const dataTypeFamiliesCaseSensitive = [
1173
+ 'AggregateFunction',
1174
+ 'Array',
1175
+ 'Enum8',
1176
+ 'Enum16',
1177
+ 'FixedString',
1178
+ 'Float32',
1179
+ 'Float64',
1180
+ 'Int8',
1181
+ 'Int16',
1182
+ 'Int32',
1183
+ 'Int64',
1184
+ 'Int128',
1185
+ 'Int256',
1186
+ 'IntervalDay',
1187
+ 'IntervalHour',
1188
+ 'IntervalMinute',
1189
+ 'IntervalMonth',
1190
+ 'IntervalQuarter',
1191
+ 'IntervalSecond',
1192
+ 'IntervalWeek',
1193
+ 'IntervalYear',
1194
+ 'IPv4',
1195
+ 'IPv6',
1196
+ 'LowCardinality',
1197
+ 'Map',
1198
+ 'MultiPolygon',
1199
+ 'Nested',
1200
+ 'Nothing',
1201
+ 'Nullable',
1202
+ 'Point',
1203
+ 'Polygon',
1204
+ 'Ring',
1205
+ 'SimpleAggregateFunction',
1206
+ 'String',
1207
+ 'Tuple',
1208
+ 'UInt8',
1209
+ 'UInt16',
1210
+ 'UInt32',
1211
+ 'UInt64',
1212
+ 'UInt128',
1213
+ 'UInt256',
1214
+ 'UUID',
1215
+ 'YtBoolean',
1216
+ ];
1217
+
1218
+ export const dataTypeFamiliesCaseInsensitive = [
1219
+ 'BIGINT',
1220
+ 'BIGINT SIGNED',
1221
+ 'BIGINT UNSIGNED',
1222
+ 'BINARY',
1223
+ 'BINARY LARGE OBJECT',
1224
+ 'BINARY VARYING',
1225
+ 'BLOB',
1226
+ 'BOOL',
1227
+ 'BOOLEAN',
1228
+ 'BYTE',
1229
+ 'BYTEA',
1230
+ 'CHAR',
1231
+ 'CHAR LARGE OBJECT',
1232
+ 'CHAR VARYING',
1233
+ 'CHARACTER',
1234
+ 'CHARACTER LARGE OBJECT',
1235
+ 'CHARACTER VARYING',
1236
+ 'CLOB',
1237
+ 'DEC',
1238
+ 'DOUBLE',
1239
+ 'DOUBLE PRECISION',
1240
+ 'Date',
1241
+ 'Date32',
1242
+ 'DateTime',
1243
+ 'DateTime32',
1244
+ 'DateTime64',
1245
+ 'Decimal',
1246
+ 'Decimal128',
1247
+ 'Decimal256',
1248
+ 'Decimal32',
1249
+ 'Decimal64',
1250
+ 'ENUM',
1251
+ 'Enum',
1252
+ 'FIXED',
1253
+ 'FLOAT',
1254
+ 'INET4',
1255
+ 'INET6',
1256
+ 'INT',
1257
+ 'INT SIGNED',
1258
+ 'INT UNSIGNED',
1259
+ 'INT1',
1260
+ 'INT1 SIGNED',
1261
+ 'INT1 UNSIGNED',
1262
+ 'INTEGER',
1263
+ 'INTEGER SIGNED',
1264
+ 'INTEGER UNSIGNED',
1265
+ 'LONGBLOB',
1266
+ 'LONGTEXT',
1267
+ 'MEDIUMBLOB',
1268
+ 'MEDIUMINT',
1269
+ 'MEDIUMINT SIGNED',
1270
+ 'MEDIUMINT UNSIGNED',
1271
+ 'MEDIUMTEXT',
1272
+ 'NATIONAL CHAR',
1273
+ 'NATIONAL CHAR VARYING',
1274
+ 'NATIONAL CHARACTER',
1275
+ 'NATIONAL CHARACTER LARGE OBJECT',
1276
+ 'NATIONAL CHARACTER VARYING',
1277
+ 'NCHAR',
1278
+ 'NCHAR LARGE OBJECT',
1279
+ 'NCHAR VARYING',
1280
+ 'NUMERIC',
1281
+ 'NVARCHAR',
1282
+ 'REAL',
1283
+ 'SINGLE',
1284
+ 'SMALLINT',
1285
+ 'SMALLINT SIGNED',
1286
+ 'SMALLINT UNSIGNED',
1287
+ 'TEXT',
1288
+ 'TIMESTAMP',
1289
+ 'TINYBLOB',
1290
+ 'TINYINT',
1291
+ 'TINYINT SIGNED',
1292
+ 'TINYINT UNSIGNED',
1293
+ 'TINYTEXT',
1294
+ 'VARCHAR',
1295
+ 'VARCHAR2',
1296
+ ];
1297
+
1298
+ export const completionLists: CompletionLists = {
1299
+ keywordList: keywords.concat(keywordsDouble),
1300
+ constantList: constants,
1301
+ typeParameterList: dataTypeFamiliesCaseSensitive.concat(
1302
+ dataTypeFamiliesCaseInsensitive,
1303
+ tableEngines,
1304
+ ),
1305
+ functionList: functionsCaseSensitive.concat(functionsCaseInsensitive, tableFunctions),
1306
+ };