Skip to content

Commit 4de70b3

Browse files
authored
feat(source-gcs): Upgrade GCS CDK dependency to v4 (#44070)
1 parent 566d13b commit 4de70b3

File tree

7 files changed

+402
-154
lines changed

7 files changed

+402
-154
lines changed

airbyte-integrations/connectors/source-gcs/integration_tests/abnormal_state.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"type": "STREAM",
44
"stream": {
55
"stream_state": {
6-
"_ab_source_file_last_modified": "2023-02-27T10:34:32.664000Z_https://storage.googleapis.com/airbyte-integration-test-source-gcs/test_folder/example_1.csv",
6+
"_ab_source_file_last_modified": "2093-02-27T10:34:32.664000Z_https://storage.googleapis.com/airbyte-integration-test-source-gcs/test_folder/example_1.csv",
77
"history": {
8-
"https://storage.googleapis.com/airbyte-integration-test-source-gcs/test_folder/example_1.csv": "2023-02-27T10:34:32.664000Z"
8+
"https://storage.googleapis.com/airbyte-integration-test-source-gcs/test_folder/example_1.csv": "2029-02-27T10:34:32.664000Z"
99
}
1010
},
1111
"stream_descriptor": {
@@ -17,9 +17,9 @@
1717
"type": "STREAM",
1818
"stream": {
1919
"stream_state": {
20-
"_ab_source_file_last_modified": "2023-02-27T10:34:32.680000Z_https://storage.googleapis.com/airbyte-integration-test-source-gcs/test_folder/example_2.csv",
20+
"_ab_source_file_last_modified": "2093-02-27T10:34:32.680000Z_https://storage.googleapis.com/airbyte-integration-test-source-gcs/test_folder/example_2.csv",
2121
"history": {
22-
"https://storage.googleapis.com/airbyte-integration-test-source-gcs/test_folder/example_2.csv": "2023-02-27T10:34:32.680000Z"
22+
"https://storage.googleapis.com/airbyte-integration-test-source-gcs/test_folder/example_2.csv": "2093-02-27T10:34:32.680000Z"
2323
}
2424
},
2525
"stream_descriptor": {
@@ -31,9 +31,9 @@
3131
"type": "STREAM",
3232
"stream": {
3333
"stream_state": {
34-
"_ab_source_file_last_modified": "2024-03-21T16:13:20.571000Z\"_https://storage.googleapis.com/airbyte-integration-test-source-gcs/test_folder/simple_test.csv.gz",
34+
"_ab_source_file_last_modified": "2094-03-21T16:13:20.571000Z_https://storage.googleapis.com/airbyte-integration-test-source-gcs/test_folder/simple_test.csv.gz",
3535
"history": {
36-
"https://storage.googleapis.com/airbyte-integration-test-source-gcs/test_folder/simple_test.csv.gz": "2024-03-21T16:13:20.571000Z"
36+
"https://storage.googleapis.com/airbyte-integration-test-source-gcs/test_folder/simple_test.csv.gz": "2094-03-21T16:13:20.571000Z"
3737
}
3838
},
3939
"stream_descriptor": {

airbyte-integrations/connectors/source-gcs/integration_tests/spec.json

+24-6
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@
3535
"description": "The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href=\"https://en.wikipedia.org/wiki/Glob_(programming)\">here</a>.",
3636
"order": 1,
3737
"type": "array",
38-
"items": { "type": "string" }
38+
"items": {
39+
"type": "string"
40+
}
3941
},
4042
"legacy_prefix": {
4143
"title": "Legacy Prefix",
@@ -116,7 +118,9 @@
116118
"description": "A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field.",
117119
"default": [],
118120
"type": "array",
119-
"items": { "type": "string" },
121+
"items": {
122+
"type": "string"
123+
},
120124
"uniqueItems": true
121125
},
122126
"strings_can_be_null": {
@@ -140,7 +144,9 @@
140144
"header_definition": {
141145
"title": "CSV Header Definition",
142146
"description": "How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows.",
143-
"default": { "header_definition_type": "From CSV" },
147+
"default": {
148+
"header_definition_type": "From CSV"
149+
},
144150
"oneOf": [
145151
{
146152
"title": "From CSV",
@@ -182,7 +188,9 @@
182188
"title": "Column Names",
183189
"description": "The column names that will be used while emitting the CSV records",
184190
"type": "array",
185-
"items": { "type": "string" }
191+
"items": {
192+
"type": "string"
193+
}
186194
}
187195
},
188196
"required": ["column_names", "header_definition_type"]
@@ -195,15 +203,19 @@
195203
"description": "A set of case-sensitive strings that should be interpreted as true values.",
196204
"default": ["y", "yes", "t", "true", "on", "1"],
197205
"type": "array",
198-
"items": { "type": "string" },
206+
"items": {
207+
"type": "string"
208+
},
199209
"uniqueItems": true
200210
},
201211
"false_values": {
202212
"title": "False Values",
203213
"description": "A set of case-sensitive strings that should be interpreted as false values.",
204214
"default": ["n", "no", "f", "false", "off", "0"],
205215
"type": "array",
206-
"items": { "type": "string" },
216+
"items": {
217+
"type": "string"
218+
},
207219
"uniqueItems": true
208220
},
209221
"inference_type": {
@@ -229,6 +241,12 @@
229241
"description": "When enabled, syncs will not validate or structure records against the stream's schema.",
230242
"default": false,
231243
"type": "boolean"
244+
},
245+
"recent_n_files_to_read_for_schema_discovery": {
246+
"title": "Files To Read For Schema Discover",
247+
"description": "The number of resent files which will be used to discover the schema for this stream.",
248+
"exclusiveMinimum": 0,
249+
"type": "integer"
232250
}
233251
},
234252
"required": ["name", "format"]

airbyte-integrations/connectors/source-gcs/metadata.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ data:
77
connectorSubtype: file
88
connectorType: source
99
definitionId: 2a8c41ae-8c23-4be0-a73f-2ab10ca1a820
10-
dockerImageTag: 0.4.15
10+
dockerImageTag: 0.5.0
1111
dockerRepository: airbyte/source-gcs
1212
documentationUrl: https://docs.airbyte.com/integrations/sources/gcs
1313
githubIssueLabel: source-gcs

0 commit comments

Comments
 (0)