bq2cst 0.5.11 → 0.5.13

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.
package/bq2cst.d.ts CHANGED
@@ -18,6 +18,7 @@ export type UnknownNode =
18
18
  | AlterSchemaStatement
19
19
  | AlterTableDropClause
20
20
  | AlterTableStatement
21
+ | AlterVectorIndexStatement
21
22
  | AlterViewStatement
22
23
  | ArrayLiteral
23
24
  | AssertStatement
@@ -64,11 +65,13 @@ export type UnknownNode =
64
65
  | ForStatement
65
66
  | ForSystemTimeAsOfClause
66
67
  | FromStatement
68
+ | FunctionChain
67
69
  | GrantStatement
68
70
  | GroupByExprs
69
71
  | GroupedExpr
70
72
  | GroupedExprs
71
73
  | GroupedIdentWithOptions
74
+ | GroupedPattern
72
75
  | GroupedStatement
73
76
  | GroupedTypeDeclarationOrConstraints
74
77
  | GroupedType
@@ -93,13 +96,20 @@ export type UnknownNode =
93
96
  | LimitPipeOperator
94
97
  | LoadStatement
95
98
  | LoopStatement
99
+ | MatchRecognizeClause
100
+ | MatchRecognizeConfig
101
+ | MatchRecognizePipeOperator
96
102
  | MergeStatement
97
103
  | MultiTokenIdentifier
98
104
  | NullLiteral
99
105
  | NumericLiteral
106
+ | OrPattern
100
107
  | OverClause
101
108
  | OverwritePartitionsClause
102
109
  | Parameter
110
+ | Pattern
111
+ | PatternClause
112
+ | PatternQuantifier
103
113
  | PipeStatement
104
114
  | PivotOperator
105
115
  | PivotPipeOperator
@@ -110,6 +120,7 @@ export type UnknownNode =
110
120
  | RepeatStatement
111
121
  | RevokeStatement
112
122
  | SelectStatement
123
+ | SelectPipeOperator
113
124
  | SetOperator
114
125
  | SetStatement
115
126
  | SingleTokenStatement
@@ -140,6 +151,7 @@ export type UnknownNode =
140
151
  | WindowSpecification
141
152
  | WithClause
142
153
  | WithOffsetClause
154
+ | WithPipeOperator
143
155
  | WithPartitionColumnsClause
144
156
  | WithQuery
145
157
  | XXXByExprs;
@@ -193,6 +205,7 @@ export type FromItemExpr = Expr & {
193
205
  with_offset: NodeChild;
194
206
  pivot?: NodeChild;
195
207
  unpivot?: NodeChild;
208
+ match_recognize?: NodeChild;
196
209
  };
197
210
  };
198
211
 
@@ -371,6 +384,17 @@ export type AlterTableStatement = XXXStatement & {
371
384
  };
372
385
  };
373
386
 
387
+ export type AlterVectorIndexStatement = XXXStatement & {
388
+ node_type: "AlterVectorIndexStatement";
389
+ children: {
390
+ what: NodeChild;
391
+ if_exists?: NodeVecChild;
392
+ ident: NodeChild;
393
+ on: NodeChild;
394
+ operation: NodeChild;
395
+ };
396
+ };
397
+
374
398
  export type AlterViewStatement = XXXStatement & {
375
399
  node_type: "AlterViewStatement";
376
400
  children: {
@@ -689,6 +713,7 @@ export type CreateIndexStatement = XXXStatement & {
689
713
  tablename: NodeChild;
690
714
  column_group: NodeChild;
691
715
  storing?: NodeChild;
716
+ partitionby?: NodeChild;
692
717
  options?: NodeChild;
693
718
  };
694
719
  };
@@ -878,10 +903,19 @@ export type ForSystemTimeAsOfClause = BaseNode & {
878
903
  export type FromStatement = XXXStatement & {
879
904
  node_type: "FromStatement";
880
905
  children: {
906
+ with: NodeChild;
881
907
  expr: NodeChild;
882
908
  };
883
909
  }
884
910
 
911
+ export type FunctionChain = FromItemExpr & {
912
+ node_type: "FunctionChain";
913
+ children: {
914
+ left: NodeChild;
915
+ right: NodeChild;
916
+ };
917
+ }
918
+
885
919
  export type GrantStatement = XXXStatement & {
886
920
  node_type: "GrantStatement";
887
921
  children: {
@@ -934,6 +968,16 @@ export type GroupedIdentWithOptions = BaseNode & {
934
968
  };
935
969
  };
936
970
 
971
+ export type GroupedPattern = BaseNode & {
972
+ token: Token;
973
+ node_type: "GroupedPattern";
974
+ children: {
975
+ patterns: NodeVecChild;
976
+ rparen: NodeChild;
977
+ suffixes: NodeVecChild;
978
+ };
979
+ };
980
+
937
981
  export type GroupedStatement = FromItemExpr &
938
982
  XXXStatement & {
939
983
  node_type: "GroupedStatement";
@@ -1123,6 +1167,37 @@ export type LimitPipeOperator = PipeOperator & {
1123
1167
  }
1124
1168
  }
1125
1169
 
1170
+ export type MatchRecognizeClause = BaseNode & {
1171
+ token: Token;
1172
+ node_type: "MatchRecognizeClause";
1173
+ children: {
1174
+ as?: NodeChild;
1175
+ alias?: NodeChild;
1176
+ config: NodeChild;
1177
+ };
1178
+ };
1179
+
1180
+ export type MatchRecognizeConfig = BaseNode & {
1181
+ token: Token;
1182
+ node_type: "MatchRecognizeConfig";
1183
+ children: {
1184
+ partitionby?: NodeChild;
1185
+ orderby?: NodeChild;
1186
+ measures?: NodeChild;
1187
+ skip_rule?: NodeChild;
1188
+ pattern: NodeChild;
1189
+ define?: NodeChild;
1190
+ options?: NodeChild;
1191
+ rparen: NodeChild;
1192
+ };
1193
+ };
1194
+
1195
+ export type MatchRecognizePipeOperator = BaseNode & {
1196
+ token: Token;
1197
+ node_type: "MatchRecognizePipeOperator";
1198
+ children: MatchRecognizeClause["children"];
1199
+ };
1200
+
1126
1201
  export type LoopStatement = LabelableStatement & {
1127
1202
  node_type: "LoopStatement";
1128
1203
  children: {
@@ -1178,6 +1253,16 @@ export type NumericLiteral = Expr & {
1178
1253
  node_type: "NumericLiteral";
1179
1254
  };
1180
1255
 
1256
+ export type OrPattern = BaseNode & {
1257
+ token: Token;
1258
+ node_type: "OrPattern";
1259
+ children: {
1260
+ left: NodeVecChild;
1261
+ right: NodeVecChild;
1262
+ };
1263
+ };
1264
+
1265
+
1181
1266
  export type OverClause = BaseNode & {
1182
1267
  token: Token;
1183
1268
  node_type: "OverClause";
@@ -1199,6 +1284,33 @@ export type Parameter = IdentifierGeneral & {
1199
1284
  node_type: "Parameter";
1200
1285
  };
1201
1286
 
1287
+ export type Pattern = BaseNode & {
1288
+ token: Token;
1289
+ node_type: "Pattern";
1290
+ children: {
1291
+ suffixes: NodeVecChild;
1292
+ }
1293
+ };
1294
+
1295
+ export type PatternClause = BaseNode & {
1296
+ token: Token;
1297
+ node_type: "PatternClause";
1298
+ children: {
1299
+ pattern: NodeChild;
1300
+ }
1301
+ };
1302
+
1303
+ export type PatternQuantifier = BaseNode & {
1304
+ token: Token;
1305
+ node_type: "PatternQuantifier";
1306
+ children: {
1307
+ min?: NodeChild;
1308
+ comma?: NodeChild;
1309
+ max?: NodeChild;
1310
+ rbrace: NodeChild;
1311
+ }
1312
+ };
1313
+
1202
1314
  export type PipeStatement = XXXStatement & {
1203
1315
  node_type: "PipeStatement";
1204
1316
  children: {
@@ -1304,6 +1416,14 @@ export type SelectStatement = XXXStatement & {
1304
1416
  };
1305
1417
  };
1306
1418
 
1419
+ export type SelectPipeOperator = PipeOperator & {
1420
+ node_type: "SelectPipeOperator";
1421
+ children: {
1422
+ window?: NodeChild;
1423
+ };
1424
+ }
1425
+
1426
+
1307
1427
  export type SetOperator = XXXStatement & {
1308
1428
  node_type: "SetOperator";
1309
1429
  children: {
@@ -1578,6 +1698,12 @@ export type WithOffsetClause = BaseNode & {
1578
1698
  };
1579
1699
  };
1580
1700
 
1701
+ export type WithPipeOperator = BaseNode & {
1702
+ token: Token;
1703
+ node_type: "WithPipeOperator";
1704
+ children: WithClause["children"];
1705
+ };
1706
+
1581
1707
  export type WithPartitionColumnsClause = BaseNode & {
1582
1708
  token: Token;
1583
1709
  node_type: "WithPartitionColumnsClause";
package/bq2cst_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "kitta65 <kitta65kitta@gmail.com>"
5
5
  ],
6
- "version": "0.5.11",
6
+ "version": "0.5.13",
7
7
  "license": "MIT",
8
8
  "files": [
9
9
  "bq2cst_bg.wasm",