Skip to content

Commit ba44065

Browse files
authored
Add 'ordinality' and 'unnest', several array keywords, and lateral (#8)
* Add 'ordinality' and 'unnest' keywords These are for the Unnest feature, still under review * adding lateral for lateral join * array related words * Move compression/encoding constants from keywords to constants Relocate brotli, delta_binary_packed, delta_length_byte_array, gzip, lz4_raw, plain, rle_dictionary, snappy, uncompressed, and zstd from keywords.ts to constants.ts where they belong.
1 parent 7abea63 commit ba44065

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/grammar/constants.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ export const constants: string[] = [
88
"days",
99
"decade",
1010
"default_transaction_read_only",
11+
"delta_binary_packed",
12+
"delta_length_byte_array",
1113
"desc",
1214
"dow",
1315
"doy",
@@ -46,10 +48,12 @@ export const constants: string[] = [
4648
"null",
4749
"parquet",
4850
"pgwire",
51+
"plain",
4952
"prepare",
5053
"prev",
5154
"quarter",
5255
"rest",
56+
"rle_dictionary",
5357
"search_path",
5458
"second",
5559
"seconds",

src/grammar/keywords.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export const keywords: string[] = [
1818
"base",
1919
"batch",
2020
"between",
21+
"bloom_filter",
2122
"by",
2223
"bypass",
2324
"cache",
@@ -97,6 +98,7 @@ export const keywords: string[] = [
9798
"key",
9899
"keys",
99100
"latest",
101+
"lateral",
100102
"left",
101103
"length",
102104
"level",
@@ -120,6 +122,7 @@ export const keywords: string[] = [
120122
"option",
121123
"or",
122124
"order",
125+
"ordinality",
123126
"others",
124127
"outer",
125128
"over",
@@ -141,6 +144,7 @@ export const keywords: string[] = [
141144
"public",
142145
"query",
143146
"range",
147+
"raw_array_encoding",
144148
"references",
145149
"refresh",
146150
"release",
@@ -186,6 +190,7 @@ export const keywords: string[] = [
186190
"unbounded",
187191
"union",
188192
"unlock",
193+
"unnest",
189194
"unpivot",
190195
"update",
191196
"upsert",
@@ -204,5 +209,4 @@ export const keywords: string[] = [
204209
"within",
205210
"writer",
206211
"zone",
207-
"raw_array_encoding",
208212
]

0 commit comments

Comments
 (0)