bq2cst 1.0.0 → 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.
package/bq2cst.d.ts CHANGED
@@ -208,8 +208,8 @@ export type Expr = BaseNode & {
208
208
  export type FromItemExpr = Expr & {
209
209
  children: {
210
210
  with_offset: NodeChild;
211
- pivot?: NodeChild;
212
- unpivot?: NodeChild;
211
+ pivot?: { Node: PivotOperator };
212
+ unpivot?: { Node: UnpivotOperator };
213
213
  match_recognize?: NodeChild;
214
214
  };
215
215
  };
@@ -446,8 +446,8 @@ export type AssertStatement = XXXStatement & {
446
446
  export type Asterisk = Expr & {
447
447
  node_type: "Asterisk";
448
448
  children: {
449
- except?: NodeChild;
450
- replace?: NodeChild;
449
+ except?: { Node: KeywordWithGroupedXXX & UnknownNode };
450
+ replace?: { Node: KeywordWithGroupedXXX & UnknownNode };
451
451
  order: undefined;
452
452
  null_order: undefined;
453
453
  };
@@ -908,7 +908,7 @@ export type ForSystemTimeAsOfClause = BaseNode & {
908
908
  export type FromStatement = XXXStatement & {
909
909
  node_type: "FromStatement";
910
910
  children: {
911
- with: NodeChild;
911
+ with?: NodeChild;
912
912
  expr: NodeChild;
913
913
  };
914
914
  };
@@ -938,14 +938,14 @@ export type GroupByExprs = BaseNode & {
938
938
  children: {
939
939
  by: NodeChild;
940
940
  how?: NodeVecChild;
941
- exprs?: { NodeVec: Expr[] & UnknownNode[] };
941
+ exprs?: { NodeVec: (Expr & UnknownNode)[] };
942
942
  };
943
943
  };
944
944
 
945
945
  export type GroupedExpr = FromItemExpr & {
946
946
  node_type: "GroupedExpr";
947
947
  children: {
948
- expr: NodeChild;
948
+ expr: { Node: Expr & UnknownNode };
949
949
  rparen: NodeChild;
950
950
  };
951
951
  };
@@ -954,7 +954,8 @@ export type GroupedExprs = BaseNode & {
954
954
  token: Token;
955
955
  node_type: "GroupedExprs";
956
956
  children: {
957
- exprs?: NodeVecChild;
957
+ // NOTE: contains GroupedExprs in UnpivotConfig. it's a little inconsistent...
958
+ exprs?: { NodeVec: (Expr & UnknownNode)[] };
958
959
  rparen: NodeChild;
959
960
  // only in UNPIVOT operator
960
961
  as?: NodeChild;
@@ -1120,7 +1121,7 @@ export type KeywordSequence = BaseNode & {
1120
1121
  export type KeywordWithExpr = BaseNode & {
1121
1122
  node_type: "KeywordWithExpr";
1122
1123
  children: {
1123
- expr: NodeChild;
1124
+ expr: { Node: Expr & UnknownNode };
1124
1125
  };
1125
1126
  };
1126
1127
 
@@ -1320,6 +1321,7 @@ export type PatternQuantifier = BaseNode & {
1320
1321
  export type PipeStatement = XXXStatement & {
1321
1322
  node_type: "PipeStatement";
1322
1323
  children: {
1324
+ with?: { Node: WithClause };
1323
1325
  left: NodeChild;
1324
1326
  right: NodeChild;
1325
1327
  };
@@ -1329,7 +1331,7 @@ export type PivotPipeOperator = PipeOperator & {
1329
1331
  node_type: "PivotPipeOperator";
1330
1332
  children: {
1331
1333
  exprs: undefined;
1332
- config: NodeChild;
1334
+ config: { Node: PivotConfig & UnknownNode };
1333
1335
  as?: NodeChild;
1334
1336
  alias?: NodeChild;
1335
1337
  };
@@ -1339,7 +1341,7 @@ export type PivotOperator = BaseNode & {
1339
1341
  token: Token;
1340
1342
  node_type: "PivotOperator";
1341
1343
  children: {
1342
- config: NodeChild;
1344
+ config: { Node: PivotConfig & UnknownNode };
1343
1345
  as?: NodeChild;
1344
1346
  alias?: NodeChild;
1345
1347
  };
@@ -1349,9 +1351,9 @@ export type PivotConfig = BaseNode & {
1349
1351
  token: Token;
1350
1352
  node_type: "PivotConfig";
1351
1353
  children: {
1352
- exprs: NodeVecChild;
1353
- for: NodeChild;
1354
- in: NodeChild;
1354
+ exprs: { NodeVec: (Expr & UnknownNode)[] };
1355
+ for: { Node: KeywordWithExpr };
1356
+ in: { Node: KeywordWithGroupedXXX };
1355
1357
  rparen: NodeChild;
1356
1358
  };
1357
1359
  };
@@ -1515,7 +1517,7 @@ export type TemplateExpr = IdentifierGeneral & {
1515
1517
  export type TemplateExprEnd = BaseNode & {
1516
1518
  token: Token;
1517
1519
  node_type: "TemplateExprEnd";
1518
- children: {}
1520
+ children: {};
1519
1521
  };
1520
1522
 
1521
1523
  export type TemplateExprContinue = BaseNode & {
@@ -1523,7 +1525,7 @@ export type TemplateExprContinue = BaseNode & {
1523
1525
  node_type: "TemplateExprContinue";
1524
1526
  children: {
1525
1527
  exprs: NodeVecChild;
1526
- }
1528
+ };
1527
1529
  };
1528
1530
 
1529
1531
  export type TemplateExprStart = FromItemExpr & {
@@ -1533,7 +1535,7 @@ export type TemplateExprStart = FromItemExpr & {
1533
1535
  exprs: NodeVecChild;
1534
1536
  continues: NodeVecChild;
1535
1537
  end: NodeChild;
1536
- }
1538
+ };
1537
1539
  };
1538
1540
 
1539
1541
  export type TransactionStatement = XXXStatement & {
@@ -1620,8 +1622,8 @@ export type UnpivotConfig = BaseNode & {
1620
1622
  node_type: "UnpivotConfig";
1621
1623
  children: {
1622
1624
  expr: NodeChild;
1623
- for: NodeChild;
1624
- in: NodeChild;
1625
+ for: { Node: KeywordWithExpr };
1626
+ in: { Node: KeywordWithGroupedXXX };
1625
1627
  rparen: NodeChild;
1626
1628
  };
1627
1629
  };
@@ -1630,7 +1632,7 @@ export type UnpivotPipeOperator = PipeOperator & {
1630
1632
  node_type: "UnpivotPipeOperator";
1631
1633
  children: {
1632
1634
  exprs: undefined;
1633
- config: NodeChild;
1635
+ config: { Node: UnpivotConfig & UnknownNode };
1634
1636
  as?: NodeChild;
1635
1637
  alias?: NodeChild;
1636
1638
  };
@@ -1641,7 +1643,7 @@ export type UnpivotOperator = BaseNode & {
1641
1643
  node_type: "UnpivotOperator";
1642
1644
  children: {
1643
1645
  include_or_exclude_nulls: NodeVecChild;
1644
- config: NodeChild;
1646
+ config: { Node: UnpivotConfig & UnknownNode };
1645
1647
  as?: NodeChild;
1646
1648
  alias?: NodeChild;
1647
1649
  };
@@ -1767,6 +1769,6 @@ export type XXXByExprs = BaseNode & {
1767
1769
  node_type: "XXXByExprs";
1768
1770
  children: {
1769
1771
  by: NodeChild;
1770
- exprs: { NodeVec: Expr[] & UnknownNode[] };
1772
+ exprs: { NodeVec: (Expr & UnknownNode)[] };
1771
1773
  };
1772
1774
  };
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": "1.0.0",
6
+ "version": "1.0.2",
7
7
  "license": "MIT",
8
8
  "files": [
9
9
  "bq2cst_bg.wasm",