Skip to content

Commit 811349e

Browse files
committed
Add SUBSAMPLE keyword and algorithm constants
Add subsample keyword and lttb, m4, minmax constants for syntax highlighting and autocomplete. Fix pre-existing sort disorders in keywords.ts.
1 parent a1f21ad commit 811349e

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

src/grammar/constants.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,19 @@ export const constants: string[] = [
2727
"jwk",
2828
"linear",
2929
"local",
30+
"lttb",
3031
"lz4",
3132
"lz4_raw",
3233
"lzo",
34+
"m4",
3335
"manual",
3436
"max_identifier_length",
3537
"microsecond",
3638
"microseconds",
3739
"millennium",
3840
"millisecond",
3941
"milliseconds",
42+
"minmax",
4043
"minute",
4144
"minutes",
4245
"month",

src/grammar/keywords.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ export const keywords: string[] = [
1212
"as",
1313
"asof",
1414
"assume",
15-
"attach",
1615
"atomic",
16+
"attach",
1717
"backup",
1818
"base",
1919
"batch",
@@ -31,10 +31,10 @@ export const keywords: string[] = [
3131
"checkpoint",
3232
"column",
3333
"columns",
34+
"commitLag",
3435
"compile",
3536
"compression_codec",
3637
"compression_level",
37-
"commitLag",
3838
"convert",
3939
"copy",
4040
"create",
@@ -97,8 +97,8 @@ export const keywords: string[] = [
9797
"keep",
9898
"key",
9999
"keys",
100-
"latest",
101100
"lateral",
101+
"latest",
102102
"left",
103103
"length",
104104
"level",
@@ -131,8 +131,8 @@ export const keywords: string[] = [
131131
"param",
132132
"parameters",
133133
"parquet_version",
134-
"partition_by",
135134
"partition",
135+
"partition_by",
136136
"partitions",
137137
"password",
138138
"period",
@@ -148,8 +148,8 @@ export const keywords: string[] = [
148148
"raw_array_encoding",
149149
"references",
150150
"refresh",
151-
"release",
152151
"reindex",
152+
"release",
153153
"remove",
154154
"rename",
155155
"repair",
@@ -171,9 +171,10 @@ export const keywords: string[] = [
171171
"splice",
172172
"squash",
173173
"start",
174+
"statistics_enabled",
174175
"step",
175176
"storage",
176-
"statistics_enabled",
177+
"subsample",
177178
"suspend",
178179
"system",
179180
"table",

0 commit comments

Comments
 (0)