sqlglot 27.4.1__py3-none-any.whl → 27.5.0__py3-none-any.whl

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.
@@ -1,5 +1,1146 @@
1
+ from sqlglot import TokenType
2
+ import typing as t
3
+
4
+ from sqlglot import exp
5
+ from sqlglot.dialects.dialect import build_formatted_time
1
6
  from sqlglot.dialects.mysql import MySQL
7
+ from sqlglot.helper import seq_get
2
8
 
3
9
 
4
10
  class SingleStore(MySQL):
5
11
  SUPPORTS_ORDER_BY_ALL = True
12
+
13
+ TIME_MAPPING: t.Dict[str, str] = {
14
+ "D": "%u", # Day of week (1-7)
15
+ "DD": "%d", # day of month (01-31)
16
+ "DY": "%a", # abbreviated name of day
17
+ "HH": "%I", # Hour of day (01-12)
18
+ "HH12": "%I", # alias for HH
19
+ "HH24": "%H", # Hour of day (00-23)
20
+ "MI": "%M", # Minute (00-59)
21
+ "MM": "%m", # Month (01-12; January = 01)
22
+ "MON": "%b", # Abbreviated name of month
23
+ "MONTH": "%B", # Name of month
24
+ "SS": "%S", # Second (00-59)
25
+ "RR": "%y", # 15
26
+ "YY": "%y", # 15
27
+ "YYYY": "%Y", # 2015
28
+ "FF6": "%f", # only 6 digits are supported in python formats
29
+ }
30
+
31
+ class Tokenizer(MySQL.Tokenizer):
32
+ BYTE_STRINGS = [("e'", "'"), ("E'", "'")]
33
+
34
+ KEYWORDS = {
35
+ **MySQL.Tokenizer.KEYWORDS,
36
+ "BSON": TokenType.JSONB,
37
+ "GEOGRAPHYPOINT": TokenType.GEOGRAPHYPOINT,
38
+ ":>": TokenType.COLON_GT,
39
+ "!:>": TokenType.NCOLON_GT,
40
+ "::$": TokenType.DCOLONDOLLAR,
41
+ "::%": TokenType.DCOLONPERCENT,
42
+ }
43
+
44
+ class Parser(MySQL.Parser):
45
+ FUNCTIONS = {
46
+ **MySQL.Parser.FUNCTIONS,
47
+ "TO_DATE": build_formatted_time(exp.TsOrDsToDate, "singlestore"),
48
+ "TO_TIMESTAMP": build_formatted_time(exp.StrToTime, "singlestore"),
49
+ "TO_CHAR": build_formatted_time(exp.ToChar, "singlestore"),
50
+ "STR_TO_DATE": build_formatted_time(exp.StrToDate, "mysql"),
51
+ "DATE_FORMAT": build_formatted_time(exp.TimeToStr, "mysql"),
52
+ "TIME_FORMAT": lambda args: exp.TimeToStr(
53
+ # The first argument is converted to TIME(6)
54
+ # This is needed because exp.TimeToStr is converted to DATE_FORMAT
55
+ # which interprets the first argument as DATETIME and fails to parse
56
+ # string literals like '12:05:47' without a date part.
57
+ this=exp.Cast(
58
+ this=seq_get(args, 0),
59
+ to=exp.DataType.build(
60
+ exp.DataType.Type.TIME,
61
+ expressions=[exp.DataTypeParam(this=exp.Literal.number(6))],
62
+ ),
63
+ ),
64
+ format=MySQL.format_time(seq_get(args, 1)),
65
+ ),
66
+ }
67
+
68
+ class Generator(MySQL.Generator):
69
+ TRANSFORMS = {
70
+ **MySQL.Generator.TRANSFORMS,
71
+ exp.TsOrDsToDate: lambda self, e: self.func("TO_DATE", e.this, self.format_time(e)),
72
+ exp.StrToTime: lambda self, e: self.func("TO_TIMESTAMP", e.this, self.format_time(e)),
73
+ exp.ToChar: lambda self, e: self.func("TO_CHAR", e.this, self.format_time(e)),
74
+ exp.StrToDate: lambda self, e: self.func(
75
+ "STR_TO_DATE",
76
+ e.this,
77
+ self.format_time(
78
+ e,
79
+ inverse_time_mapping=MySQL.INVERSE_TIME_MAPPING,
80
+ inverse_time_trie=MySQL.INVERSE_TIME_TRIE,
81
+ ),
82
+ ),
83
+ exp.TimeToStr: lambda self, e: self.func(
84
+ "DATE_FORMAT",
85
+ e.this,
86
+ self.format_time(
87
+ e,
88
+ inverse_time_mapping=MySQL.INVERSE_TIME_MAPPING,
89
+ inverse_time_trie=MySQL.INVERSE_TIME_TRIE,
90
+ ),
91
+ ),
92
+ }
93
+
94
+ # https://docs.singlestore.com/cloud/reference/sql-reference/restricted-keywords/list-of-restricted-keywords/
95
+ RESERVED_KEYWORDS = {
96
+ "abs",
97
+ "absolute",
98
+ "access",
99
+ "account",
100
+ "acos",
101
+ "action",
102
+ "add",
103
+ "adddate",
104
+ "addtime",
105
+ "admin",
106
+ "aes_decrypt",
107
+ "aes_encrypt",
108
+ "after",
109
+ "against",
110
+ "aggregate",
111
+ "aggregates",
112
+ "aggregator",
113
+ "aggregator_id",
114
+ "aggregator_plan_hash",
115
+ "aggregators",
116
+ "algorithm",
117
+ "all",
118
+ "also",
119
+ "alter",
120
+ "always",
121
+ "analyse",
122
+ "analyze",
123
+ "and",
124
+ "anti_join",
125
+ "any",
126
+ "any_value",
127
+ "approx_count_distinct",
128
+ "approx_count_distinct_accumulate",
129
+ "approx_count_distinct_combine",
130
+ "approx_count_distinct_estimate",
131
+ "approx_geography_intersects",
132
+ "approx_percentile",
133
+ "arghistory",
134
+ "arrange",
135
+ "arrangement",
136
+ "array",
137
+ "as",
138
+ "asc",
139
+ "ascii",
140
+ "asensitive",
141
+ "asin",
142
+ "asm",
143
+ "assertion",
144
+ "assignment",
145
+ "ast",
146
+ "asymmetric",
147
+ "async",
148
+ "at",
149
+ "atan",
150
+ "atan2",
151
+ "attach",
152
+ "attribute",
153
+ "authorization",
154
+ "auto",
155
+ "auto_increment",
156
+ "auto_reprovision",
157
+ "autostats",
158
+ "autostats_cardinality_mode",
159
+ "autostats_enabled",
160
+ "autostats_histogram_mode",
161
+ "autostats_sampling",
162
+ "availability",
163
+ "avg",
164
+ "avg_row_length",
165
+ "avro",
166
+ "azure",
167
+ "background",
168
+ "_background_threads_for_cleanup",
169
+ "backup",
170
+ "backup_history",
171
+ "backup_id",
172
+ "backward",
173
+ "batch",
174
+ "batches",
175
+ "batch_interval",
176
+ "_batch_size_limit",
177
+ "before",
178
+ "begin",
179
+ "between",
180
+ "bigint",
181
+ "bin",
182
+ "binary",
183
+ "_binary",
184
+ "bit",
185
+ "bit_and",
186
+ "bit_count",
187
+ "bit_or",
188
+ "bit_xor",
189
+ "blob",
190
+ "bool",
191
+ "boolean",
192
+ "bootstrap",
193
+ "both",
194
+ "_bt",
195
+ "btree",
196
+ "bucket_count",
197
+ "by",
198
+ "byte",
199
+ "byte_length",
200
+ "cache",
201
+ "call",
202
+ "call_for_pipeline",
203
+ "called",
204
+ "capture",
205
+ "cascade",
206
+ "cascaded",
207
+ "case",
208
+ "cast",
209
+ "catalog",
210
+ "ceil",
211
+ "ceiling",
212
+ "chain",
213
+ "change",
214
+ "char",
215
+ "character",
216
+ "characteristics",
217
+ "character_length",
218
+ "char_length",
219
+ "charset",
220
+ "check",
221
+ "checkpoint",
222
+ "_check_can_connect",
223
+ "_check_consistency",
224
+ "checksum",
225
+ "_checksum",
226
+ "class",
227
+ "clear",
228
+ "client",
229
+ "client_found_rows",
230
+ "close",
231
+ "cluster",
232
+ "clustered",
233
+ "cnf",
234
+ "coalesce",
235
+ "coercibility",
236
+ "collate",
237
+ "collation",
238
+ "collect",
239
+ "column",
240
+ "columnar",
241
+ "columns",
242
+ "columnstore",
243
+ "columnstore_segment_rows",
244
+ "comment",
245
+ "comments",
246
+ "commit",
247
+ "committed",
248
+ "_commit_log_tail",
249
+ "committed",
250
+ "compact",
251
+ "compile",
252
+ "compressed",
253
+ "compression",
254
+ "concat",
255
+ "concat_ws",
256
+ "concurrent",
257
+ "concurrently",
258
+ "condition",
259
+ "configuration",
260
+ "connection",
261
+ "connection_id",
262
+ "connections",
263
+ "config",
264
+ "constraint",
265
+ "constraints",
266
+ "content",
267
+ "continue",
268
+ "_continue_replay",
269
+ "conv",
270
+ "conversion",
271
+ "convert",
272
+ "convert_tz",
273
+ "copy",
274
+ "_core",
275
+ "cos",
276
+ "cost",
277
+ "cot",
278
+ "count",
279
+ "create",
280
+ "credentials",
281
+ "cross",
282
+ "cube",
283
+ "csv",
284
+ "cume_dist",
285
+ "curdate",
286
+ "current",
287
+ "current_catalog",
288
+ "current_date",
289
+ "current_role",
290
+ "current_schema",
291
+ "current_security_groups",
292
+ "current_security_roles",
293
+ "current_time",
294
+ "current_timestamp",
295
+ "current_user",
296
+ "cursor",
297
+ "curtime",
298
+ "cycle",
299
+ "data",
300
+ "database",
301
+ "databases",
302
+ "date",
303
+ "date_add",
304
+ "datediff",
305
+ "date_format",
306
+ "date_sub",
307
+ "date_trunc",
308
+ "datetime",
309
+ "day",
310
+ "day_hour",
311
+ "day_microsecond",
312
+ "day_minute",
313
+ "dayname",
314
+ "dayofmonth",
315
+ "dayofweek",
316
+ "dayofyear",
317
+ "day_second",
318
+ "deallocate",
319
+ "dec",
320
+ "decimal",
321
+ "declare",
322
+ "decode",
323
+ "default",
324
+ "defaults",
325
+ "deferrable",
326
+ "deferred",
327
+ "defined",
328
+ "definer",
329
+ "degrees",
330
+ "delayed",
331
+ "delay_key_write",
332
+ "delete",
333
+ "delimiter",
334
+ "delimiters",
335
+ "dense_rank",
336
+ "desc",
337
+ "describe",
338
+ "detach",
339
+ "deterministic",
340
+ "dictionary",
341
+ "differential",
342
+ "directory",
343
+ "disable",
344
+ "discard",
345
+ "_disconnect",
346
+ "disk",
347
+ "distinct",
348
+ "distinctrow",
349
+ "distributed_joins",
350
+ "div",
351
+ "do",
352
+ "document",
353
+ "domain",
354
+ "dot_product",
355
+ "double",
356
+ "drop",
357
+ "_drop_profile",
358
+ "dual",
359
+ "dump",
360
+ "duplicate",
361
+ "dynamic",
362
+ "earliest",
363
+ "each",
364
+ "echo",
365
+ "election",
366
+ "else",
367
+ "elseif",
368
+ "elt",
369
+ "enable",
370
+ "enclosed",
371
+ "encoding",
372
+ "encrypted",
373
+ "end",
374
+ "engine",
375
+ "engines",
376
+ "enum",
377
+ "errors",
378
+ "escape",
379
+ "escaped",
380
+ "estimate",
381
+ "euclidean_distance",
382
+ "event",
383
+ "events",
384
+ "except",
385
+ "exclude",
386
+ "excluding",
387
+ "exclusive",
388
+ "execute",
389
+ "exists",
390
+ "exit",
391
+ "exp",
392
+ "explain",
393
+ "extended",
394
+ "extension",
395
+ "external",
396
+ "external_host",
397
+ "external_port",
398
+ "extract",
399
+ "extractor",
400
+ "extractors",
401
+ "extra_join",
402
+ "_failover",
403
+ "failed_login_attempts",
404
+ "failure",
405
+ "false",
406
+ "family",
407
+ "fault",
408
+ "fetch",
409
+ "field",
410
+ "fields",
411
+ "file",
412
+ "files",
413
+ "fill",
414
+ "first",
415
+ "first_value",
416
+ "fix_alter",
417
+ "fixed",
418
+ "float",
419
+ "float4",
420
+ "float8",
421
+ "floor",
422
+ "flush",
423
+ "following",
424
+ "for",
425
+ "force",
426
+ "force_compiled_mode",
427
+ "force_interpreter_mode",
428
+ "foreground",
429
+ "foreign",
430
+ "format",
431
+ "forward",
432
+ "found_rows",
433
+ "freeze",
434
+ "from",
435
+ "from_base64",
436
+ "from_days",
437
+ "from_unixtime",
438
+ "fs",
439
+ "_fsync",
440
+ "full",
441
+ "fulltext",
442
+ "function",
443
+ "functions",
444
+ "gc",
445
+ "gcs",
446
+ "get_format",
447
+ "_gc",
448
+ "_gcx",
449
+ "generate",
450
+ "geography",
451
+ "geography_area",
452
+ "geography_contains",
453
+ "geography_distance",
454
+ "geography_intersects",
455
+ "geography_latitude",
456
+ "geography_length",
457
+ "geography_longitude",
458
+ "geographypoint",
459
+ "geography_point",
460
+ "geography_within_distance",
461
+ "geometry",
462
+ "geometry_area",
463
+ "geometry_contains",
464
+ "geometry_distance",
465
+ "geometry_filter",
466
+ "geometry_intersects",
467
+ "geometry_length",
468
+ "geometrypoint",
469
+ "geometry_point",
470
+ "geometry_within_distance",
471
+ "geometry_x",
472
+ "geometry_y",
473
+ "global",
474
+ "_global_version_timestamp",
475
+ "grant",
476
+ "granted",
477
+ "grants",
478
+ "greatest",
479
+ "group",
480
+ "grouping",
481
+ "groups",
482
+ "group_concat",
483
+ "gzip",
484
+ "handle",
485
+ "handler",
486
+ "hard_cpu_limit_percentage",
487
+ "hash",
488
+ "has_temp_tables",
489
+ "having",
490
+ "hdfs",
491
+ "header",
492
+ "heartbeat_no_logging",
493
+ "hex",
494
+ "highlight",
495
+ "high_priority",
496
+ "hold",
497
+ "holding",
498
+ "host",
499
+ "hosts",
500
+ "hour",
501
+ "hour_microsecond",
502
+ "hour_minute",
503
+ "hour_second",
504
+ "identified",
505
+ "identity",
506
+ "if",
507
+ "ifnull",
508
+ "ignore",
509
+ "ilike",
510
+ "immediate",
511
+ "immutable",
512
+ "implicit",
513
+ "import",
514
+ "in",
515
+ "including",
516
+ "increment",
517
+ "incremental",
518
+ "index",
519
+ "indexes",
520
+ "inet_aton",
521
+ "inet_ntoa",
522
+ "inet6_aton",
523
+ "inet6_ntoa",
524
+ "infile",
525
+ "inherit",
526
+ "inherits",
527
+ "_init_profile",
528
+ "init",
529
+ "initcap",
530
+ "initialize",
531
+ "initially",
532
+ "inject",
533
+ "inline",
534
+ "inner",
535
+ "inout",
536
+ "input",
537
+ "insensitive",
538
+ "insert",
539
+ "insert_method",
540
+ "instance",
541
+ "instead",
542
+ "instr",
543
+ "int",
544
+ "int1",
545
+ "int2",
546
+ "int3",
547
+ "int4",
548
+ "int8",
549
+ "integer",
550
+ "_internal_dynamic_typecast",
551
+ "interpreter_mode",
552
+ "intersect",
553
+ "interval",
554
+ "into",
555
+ "invoker",
556
+ "is",
557
+ "isnull",
558
+ "isolation",
559
+ "iterate",
560
+ "join",
561
+ "json",
562
+ "json_agg",
563
+ "json_array_contains_double",
564
+ "json_array_contains_json",
565
+ "json_array_contains_string",
566
+ "json_array_push_double",
567
+ "json_array_push_json",
568
+ "json_array_push_string",
569
+ "json_delete_key",
570
+ "json_extract_double",
571
+ "json_extract_json",
572
+ "json_extract_string",
573
+ "json_extract_bigint",
574
+ "json_get_type",
575
+ "json_length",
576
+ "json_set_double",
577
+ "json_set_json",
578
+ "json_set_string",
579
+ "json_splice_double",
580
+ "json_splice_json",
581
+ "json_splice_string",
582
+ "kafka",
583
+ "key",
584
+ "key_block_size",
585
+ "keys",
586
+ "kill",
587
+ "killall",
588
+ "label",
589
+ "lag",
590
+ "language",
591
+ "large",
592
+ "last",
593
+ "last_day",
594
+ "last_insert_id",
595
+ "last_value",
596
+ "lateral",
597
+ "latest",
598
+ "lc_collate",
599
+ "lc_ctype",
600
+ "lcase",
601
+ "lead",
602
+ "leading",
603
+ "leaf",
604
+ "leakproof",
605
+ "least",
606
+ "leave",
607
+ "leaves",
608
+ "left",
609
+ "length",
610
+ "level",
611
+ "license",
612
+ "like",
613
+ "limit",
614
+ "lines",
615
+ "listen",
616
+ "llvm",
617
+ "ln",
618
+ "load",
619
+ "loaddata_where",
620
+ "_load",
621
+ "local",
622
+ "localtime",
623
+ "localtimestamp",
624
+ "locate",
625
+ "location",
626
+ "lock",
627
+ "log",
628
+ "log10",
629
+ "log2",
630
+ "long",
631
+ "longblob",
632
+ "longtext",
633
+ "loop",
634
+ "lower",
635
+ "low_priority",
636
+ "lpad",
637
+ "_ls",
638
+ "ltrim",
639
+ "lz4",
640
+ "management",
641
+ "_management_thread",
642
+ "mapping",
643
+ "master",
644
+ "match",
645
+ "materialized",
646
+ "max",
647
+ "maxvalue",
648
+ "max_concurrency",
649
+ "max_errors",
650
+ "max_partitions_per_batch",
651
+ "max_queue_depth",
652
+ "max_retries_per_batch_partition",
653
+ "max_rows",
654
+ "mbc",
655
+ "md5",
656
+ "mpl",
657
+ "median",
658
+ "mediumblob",
659
+ "mediumint",
660
+ "mediumtext",
661
+ "member",
662
+ "memory",
663
+ "memory_percentage",
664
+ "_memsql_table_id_lookup",
665
+ "memsql",
666
+ "memsql_deserialize",
667
+ "memsql_imitating_kafka",
668
+ "memsql_serialize",
669
+ "merge",
670
+ "metadata",
671
+ "microsecond",
672
+ "middleint",
673
+ "min",
674
+ "min_rows",
675
+ "minus",
676
+ "minute",
677
+ "minute_microsecond",
678
+ "minute_second",
679
+ "minvalue",
680
+ "mod",
681
+ "mode",
682
+ "model",
683
+ "modifies",
684
+ "modify",
685
+ "month",
686
+ "monthname",
687
+ "months_between",
688
+ "move",
689
+ "mpl",
690
+ "names",
691
+ "named",
692
+ "namespace",
693
+ "national",
694
+ "natural",
695
+ "nchar",
696
+ "next",
697
+ "no",
698
+ "node",
699
+ "none",
700
+ "no_query_rewrite",
701
+ "noparam",
702
+ "not",
703
+ "nothing",
704
+ "notify",
705
+ "now",
706
+ "nowait",
707
+ "no_write_to_binlog",
708
+ "no_query_rewrite",
709
+ "norely",
710
+ "nth_value",
711
+ "ntile",
712
+ "null",
713
+ "nullcols",
714
+ "nullif",
715
+ "nulls",
716
+ "numeric",
717
+ "nvarchar",
718
+ "object",
719
+ "octet_length",
720
+ "of",
721
+ "off",
722
+ "offline",
723
+ "offset",
724
+ "offsets",
725
+ "oids",
726
+ "on",
727
+ "online",
728
+ "only",
729
+ "open",
730
+ "operator",
731
+ "optimization",
732
+ "optimize",
733
+ "optimizer",
734
+ "optimizer_state",
735
+ "option",
736
+ "options",
737
+ "optionally",
738
+ "or",
739
+ "order",
740
+ "ordered_serialize",
741
+ "orphan",
742
+ "out",
743
+ "out_of_order",
744
+ "outer",
745
+ "outfile",
746
+ "over",
747
+ "overlaps",
748
+ "overlay",
749
+ "owned",
750
+ "owner",
751
+ "pack_keys",
752
+ "paired",
753
+ "parser",
754
+ "parquet",
755
+ "partial",
756
+ "partition",
757
+ "partition_id",
758
+ "partitioning",
759
+ "partitions",
760
+ "passing",
761
+ "password",
762
+ "password_lock_time",
763
+ "parser",
764
+ "pause",
765
+ "_pause_replay",
766
+ "percent_rank",
767
+ "percentile_cont",
768
+ "percentile_disc",
769
+ "periodic",
770
+ "persisted",
771
+ "pi",
772
+ "pipeline",
773
+ "pipelines",
774
+ "pivot",
775
+ "placing",
776
+ "plan",
777
+ "plans",
778
+ "plancache",
779
+ "plugins",
780
+ "pool",
781
+ "pools",
782
+ "port",
783
+ "position",
784
+ "pow",
785
+ "power",
786
+ "preceding",
787
+ "precision",
788
+ "prepare",
789
+ "prepared",
790
+ "preserve",
791
+ "primary",
792
+ "prior",
793
+ "privileges",
794
+ "procedural",
795
+ "procedure",
796
+ "procedures",
797
+ "process",
798
+ "processlist",
799
+ "profile",
800
+ "profiles",
801
+ "program",
802
+ "promote",
803
+ "proxy",
804
+ "purge",
805
+ "quarter",
806
+ "queries",
807
+ "query",
808
+ "query_timeout",
809
+ "queue",
810
+ "quote",
811
+ "radians",
812
+ "rand",
813
+ "range",
814
+ "rank",
815
+ "read",
816
+ "_read",
817
+ "reads",
818
+ "real",
819
+ "reassign",
820
+ "rebalance",
821
+ "recheck",
822
+ "record",
823
+ "recursive",
824
+ "redundancy",
825
+ "redundant",
826
+ "ref",
827
+ "reference",
828
+ "references",
829
+ "refresh",
830
+ "regexp",
831
+ "reindex",
832
+ "relative",
833
+ "release",
834
+ "reload",
835
+ "rely",
836
+ "remote",
837
+ "remove",
838
+ "rename",
839
+ "repair",
840
+ "_repair_table",
841
+ "repeat",
842
+ "repeatable",
843
+ "_repl",
844
+ "_reprovisioning",
845
+ "replace",
846
+ "replica",
847
+ "replicate",
848
+ "replicating",
849
+ "replication",
850
+ "durability",
851
+ "require",
852
+ "resource",
853
+ "resource_pool",
854
+ "reset",
855
+ "restart",
856
+ "restore",
857
+ "restrict",
858
+ "result",
859
+ "_resurrect",
860
+ "retry",
861
+ "return",
862
+ "returning",
863
+ "returns",
864
+ "reverse",
865
+ "revoke",
866
+ "rg_pool",
867
+ "right",
868
+ "right_anti_join",
869
+ "right_semi_join",
870
+ "right_straight_join",
871
+ "rlike",
872
+ "role",
873
+ "roles",
874
+ "rollback",
875
+ "rollup",
876
+ "round",
877
+ "routine",
878
+ "row",
879
+ "row_count",
880
+ "row_format",
881
+ "row_number",
882
+ "rows",
883
+ "rowstore",
884
+ "rule",
885
+ "rpad",
886
+ "_rpc",
887
+ "rtrim",
888
+ "running",
889
+ "s3",
890
+ "safe",
891
+ "save",
892
+ "savepoint",
893
+ "scalar",
894
+ "schema",
895
+ "schemas",
896
+ "schema_binding",
897
+ "scroll",
898
+ "search",
899
+ "second",
900
+ "second_microsecond",
901
+ "sec_to_time",
902
+ "security",
903
+ "select",
904
+ "semi_join",
905
+ "_send_threads",
906
+ "sensitive",
907
+ "separator",
908
+ "sequence",
909
+ "sequences",
910
+ "serial",
911
+ "serializable",
912
+ "series",
913
+ "service_user",
914
+ "server",
915
+ "session",
916
+ "session_user",
917
+ "set",
918
+ "setof",
919
+ "security_lists_intersect",
920
+ "sha",
921
+ "sha1",
922
+ "sha2",
923
+ "shard",
924
+ "sharded",
925
+ "sharded_id",
926
+ "share",
927
+ "show",
928
+ "shutdown",
929
+ "sigmoid",
930
+ "sign",
931
+ "signal",
932
+ "similar",
933
+ "simple",
934
+ "site",
935
+ "signed",
936
+ "sin",
937
+ "skip",
938
+ "skipped_batches",
939
+ "sleep",
940
+ "_sleep",
941
+ "smallint",
942
+ "snapshot",
943
+ "_snapshot",
944
+ "_snapshots",
945
+ "soft_cpu_limit_percentage",
946
+ "some",
947
+ "soname",
948
+ "sparse",
949
+ "spatial",
950
+ "spatial_check_index",
951
+ "specific",
952
+ "split",
953
+ "sql",
954
+ "sql_big_result",
955
+ "sql_buffer_result",
956
+ "sql_cache",
957
+ "sql_calc_found_rows",
958
+ "sqlexception",
959
+ "sql_mode",
960
+ "sql_no_cache",
961
+ "sql_no_logging",
962
+ "sql_small_result",
963
+ "sqlstate",
964
+ "sqlwarning",
965
+ "sqrt",
966
+ "ssl",
967
+ "stable",
968
+ "standalone",
969
+ "start",
970
+ "starting",
971
+ "state",
972
+ "statement",
973
+ "statistics",
974
+ "stats",
975
+ "status",
976
+ "std",
977
+ "stddev",
978
+ "stddev_pop",
979
+ "stddev_samp",
980
+ "stdin",
981
+ "stdout",
982
+ "stop",
983
+ "storage",
984
+ "str_to_date",
985
+ "straight_join",
986
+ "strict",
987
+ "string",
988
+ "strip",
989
+ "subdate",
990
+ "substr",
991
+ "substring",
992
+ "substring_index",
993
+ "success",
994
+ "sum",
995
+ "super",
996
+ "symmetric",
997
+ "sync_snapshot",
998
+ "sync",
999
+ "_sync",
1000
+ "_sync2",
1001
+ "_sync_partitions",
1002
+ "_sync_snapshot",
1003
+ "synchronize",
1004
+ "sysid",
1005
+ "system",
1006
+ "table",
1007
+ "table_checksum",
1008
+ "tables",
1009
+ "tablespace",
1010
+ "tags",
1011
+ "tan",
1012
+ "target_size",
1013
+ "task",
1014
+ "temp",
1015
+ "template",
1016
+ "temporary",
1017
+ "temptable",
1018
+ "_term_bump",
1019
+ "terminate",
1020
+ "terminated",
1021
+ "test",
1022
+ "text",
1023
+ "then",
1024
+ "time",
1025
+ "timediff",
1026
+ "time_bucket",
1027
+ "time_format",
1028
+ "timeout",
1029
+ "timestamp",
1030
+ "timestampadd",
1031
+ "timestampdiff",
1032
+ "timezone",
1033
+ "time_to_sec",
1034
+ "tinyblob",
1035
+ "tinyint",
1036
+ "tinytext",
1037
+ "to",
1038
+ "to_base64",
1039
+ "to_char",
1040
+ "to_date",
1041
+ "to_days",
1042
+ "to_json",
1043
+ "to_number",
1044
+ "to_seconds",
1045
+ "to_timestamp",
1046
+ "tracelogs",
1047
+ "traditional",
1048
+ "trailing",
1049
+ "transform",
1050
+ "transaction",
1051
+ "_transactions_experimental",
1052
+ "treat",
1053
+ "trigger",
1054
+ "triggers",
1055
+ "trim",
1056
+ "true",
1057
+ "trunc",
1058
+ "truncate",
1059
+ "trusted",
1060
+ "two_phase",
1061
+ "_twopcid",
1062
+ "type",
1063
+ "types",
1064
+ "ucase",
1065
+ "unbounded",
1066
+ "uncommitted",
1067
+ "undefined",
1068
+ "undo",
1069
+ "unencrypted",
1070
+ "unenforced",
1071
+ "unhex",
1072
+ "unhold",
1073
+ "unicode",
1074
+ "union",
1075
+ "unique",
1076
+ "_unittest",
1077
+ "unix_timestamp",
1078
+ "unknown",
1079
+ "unlisten",
1080
+ "_unload",
1081
+ "unlock",
1082
+ "unlogged",
1083
+ "unpivot",
1084
+ "unsigned",
1085
+ "until",
1086
+ "update",
1087
+ "upgrade",
1088
+ "upper",
1089
+ "usage",
1090
+ "use",
1091
+ "user",
1092
+ "users",
1093
+ "using",
1094
+ "utc_date",
1095
+ "utc_time",
1096
+ "utc_timestamp",
1097
+ "_utf8",
1098
+ "vacuum",
1099
+ "valid",
1100
+ "validate",
1101
+ "validator",
1102
+ "value",
1103
+ "values",
1104
+ "varbinary",
1105
+ "varchar",
1106
+ "varcharacter",
1107
+ "variables",
1108
+ "variadic",
1109
+ "variance",
1110
+ "var_pop",
1111
+ "var_samp",
1112
+ "varying",
1113
+ "vector_sub",
1114
+ "verbose",
1115
+ "version",
1116
+ "view",
1117
+ "void",
1118
+ "volatile",
1119
+ "voting",
1120
+ "wait",
1121
+ "_wake",
1122
+ "warnings",
1123
+ "week",
1124
+ "weekday",
1125
+ "weekofyear",
1126
+ "when",
1127
+ "where",
1128
+ "while",
1129
+ "whitespace",
1130
+ "window",
1131
+ "with",
1132
+ "without",
1133
+ "within",
1134
+ "_wm_heartbeat",
1135
+ "work",
1136
+ "workload",
1137
+ "wrapper",
1138
+ "write",
1139
+ "xact_id",
1140
+ "xor",
1141
+ "year",
1142
+ "year_month",
1143
+ "yes",
1144
+ "zerofill",
1145
+ "zone",
1146
+ }