File tree Expand file tree Collapse file tree
scripts/table_diff/changes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -366,6 +366,11 @@ func Test_getChanges(t *testing.T) {
366366 diffDataFile : "testdata/pr_10831_diff.txt" ,
367367 wantChanges : []change {},
368368 },
369+ {
370+ name : "Should handle CQTypes -> Apache Arrow column changes with lists, too" ,
371+ diffDataFile : "testdata/pr_10797_diff.txt" ,
372+ wantChanges : []change {},
373+ },
369374 }
370375 for _ , tt := range tests {
371376 t .Run (tt .name , func (t * testing.T ) {
Original file line number Diff line number Diff line change 1+ diff --git a/website/tables/aws/aws_wafv2_ipsets.md b/website/tables/aws/aws_wafv2_ipsets.md
2+ index e11625c29a5d..5b6a2f3d9512 100644
3+ --- a/website/tables/aws/aws_wafv2_ipsets.md
4+ +++ b/website/tables/aws/aws_wafv2_ipsets.md
5+ @@ -10,16 +10,16 @@ The primary key for this table is **arn**.
6+
7+ | Name | Type |
8+ | ------------- | ------------- |
9+ -|_cq_source_name|String|
10+ -|_cq_sync_time|Timestamp|
11+ -|_cq_id|UUID|
12+ -|_cq_parent_id|UUID|
13+ -|account_id|String|
14+ -|region|String|
15+ -|addresses|InetArray|
16+ -|tags|JSON|
17+ -|arn (PK)|String|
18+ -|ip_address_version|String|
19+ -|id|String|
20+ -|name|String|
21+ -|description|String|
22+ \ No newline at end of file
23+ +|_cq_source_name|utf8|
24+ +|_cq_sync_time|timestamp[us, tz=UTC]|
25+ +|_cq_id|uuid|
26+ +|_cq_parent_id|uuid|
27+ +|account_id|utf8|
28+ +|region|utf8|
29+ +|addresses|list<item: inet, nullable>|
30+ +|tags|json|
31+ +|arn (PK)|utf8|
32+ +|ip_address_version|utf8|
33+ +|id|utf8|
34+ +|name|utf8|
35+ +|description|utf8|
36+ \ No newline at end of file
Original file line number Diff line number Diff line change @@ -17,8 +17,11 @@ func init() {
1717
1818 // extensions are special as we need v3/types for extensions (diff in `String` func)
1919 cqToArrow [strings .TrimPrefix (schemav2 .TypeUUID .String (), "Type" )] = types .ExtensionTypes .UUID
20+ cqToArrow [strings .TrimPrefix (schemav2 .TypeUUIDArray .String (), "Type" )] = arrow .ListOf (types .ExtensionTypes .UUID )
2021 cqToArrow [strings .TrimPrefix (schemav2 .TypeInet .String (), "Type" )] = types .ExtensionTypes .Inet
22+ cqToArrow [strings .TrimPrefix (schemav2 .TypeInetArray .String (), "Type" )] = arrow .ListOf (types .ExtensionTypes .Inet )
2123 cqToArrow [strings .TrimPrefix (schemav2 .TypeMacAddr .String (), "Type" )] = types .ExtensionTypes .MAC
24+ cqToArrow [strings .TrimPrefix (schemav2 .TypeMacAddrArray .String (), "Type" )] = arrow .ListOf (types .ExtensionTypes .MAC )
2225 cqToArrow [strings .TrimPrefix (schemav2 .TypeJSON .String (), "Type" )] = types .ExtensionTypes .JSON
2326}
2427
You can’t perform that action at this time.
0 commit comments