Skip to content

Commit 9295a02

Browse files
committed
Update bigquery type parsing snapshots
1 parent 8fd5d20 commit 9295a02

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

test/expr/array.test.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ describe("array", () => {
2323
expect(parseExpr(`ARRAY<INT64>[1, 2]`)).toMatchInlineSnapshot(`
2424
{
2525
"dataType": {
26-
"name": {
27-
"name": "ARRAY",
28-
"text": "ARRAY",
29-
"type": "keyword",
30-
},
3126
"params": {
3227
"params": {
3328
"items": [
@@ -39,8 +34,7 @@ describe("array", () => {
3934
"text": "INT64",
4035
"type": "keyword",
4136
},
42-
"params": undefined,
43-
"type": "named_data_type",
37+
"type": "data_type_name",
4438
},
4539
"type": "array_type_param",
4640
},
@@ -49,7 +43,12 @@ describe("array", () => {
4943
},
5044
"type": "generic_type_params",
5145
},
52-
"type": "named_data_type",
46+
"type": "parametric_data_type",
47+
"typeKw": {
48+
"name": "ARRAY",
49+
"text": "ARRAY",
50+
"type": "keyword",
51+
},
5352
},
5453
"expr": {
5554
"expr": {

test/expr/struct.test.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ describe("struct", () => {
5252
expect(parseExpr(`STRUCT<id INT64>(1)`)).toMatchInlineSnapshot(`
5353
{
5454
"dataType": {
55-
"name": {
56-
"name": "STRUCT",
57-
"text": "STRUCT",
58-
"type": "keyword",
59-
},
6055
"params": {
6156
"params": {
6257
"items": [
@@ -68,8 +63,7 @@ describe("struct", () => {
6863
"text": "INT64",
6964
"type": "keyword",
7065
},
71-
"params": undefined,
72-
"type": "named_data_type",
66+
"type": "data_type_name",
7367
},
7468
"name": {
7569
"name": "id",
@@ -83,7 +77,12 @@ describe("struct", () => {
8377
},
8478
"type": "generic_type_params",
8579
},
86-
"type": "named_data_type",
80+
"type": "parametric_data_type",
81+
"typeKw": {
82+
"name": "STRUCT",
83+
"text": "STRUCT",
84+
"type": "keyword",
85+
},
8786
},
8887
"expr": {
8988
"expr": {

0 commit comments

Comments
 (0)