Skip to content

Commit

Permalink
Update golden files
Browse files Browse the repository at this point in the history
  • Loading branch information
treff7es committed Aug 21, 2024
1 parent ee2b827 commit 0ce1174
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 23 deletions.
6 changes: 1 addition & 5 deletions metadata-ingestion/src/datahub/ingestion/source/s3/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,12 +881,8 @@ def get_folder_info(
id = path_spec.get_partition_from_path(
self.create_s3_path(max_file.bucket_name, max_file.key)
)
if id is None:
logger.warning(
f"Unable to extract partition from path {max_file.key}. Skipping..."
)
continue

# If id is None, it means the folder is not a partition
partitions.append(
Folder(
partition_id=id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"json": {
"customProperties": {
"schema_inferred_from": "s3://my-test-bucket/folder_a/folder_aa/folder_aaa/pokemon_abilities_json/year=2022/month=jan/part3.json",
"number_of_partitions": "1",
"partitions": "{'min_partition': {'id': [('partition[0]', 'year=2022'), ('partition[1]', 'month=jan')], 'creation_time': '2020-04-14 07:06:20+00:00', 'modification_time': '2020-04-14 07:06:20+00:00', 'size': '14540', 'sample_file': 's3://my-test-bucket/folder_a/folder_aa/folder_aaa/pokemon_abilities_json/year=2022/month=jan/part3.json'}, 'max_partition': {'id': [('partition[0]', 'year=2022'), ('partition[1]', 'month=jan')], 'creation_time': '2020-04-14 07:06:20+00:00', 'modification_time': '2020-04-14 07:06:20+00:00', 'size': '14540', 'sample_file': 's3://my-test-bucket/folder_a/folder_aa/folder_aaa/pokemon_abilities_json/year=2022/month=jan/part3.json'}}"
"number_of_partitions": "1"
},
"name": "folder_aaa.pokemon_abilities_json",
"description": "",
Expand Down Expand Up @@ -583,12 +582,12 @@
"aspect": {
"json": {
"minPartition": {
"partition": "partition[0]=year=2022/partition[1]=month=jan",
"partition": "partition_0=year=2022/partition_1=month=jan",
"createdTime": 1586847980000,
"lastModifiedTime": 1586847980000
},
"maxPartition": {
"partition": "partition[0]=year=2022/partition[1]=month=jan",
"partition": "partition_0=year=2022/partition_1=month=jan",
"createdTime": 1586847980000,
"lastModifiedTime": 1586847980000
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"json": {
"customProperties": {
"schema_inferred_from": "s3://my-test-bucket/folder_a/folder_aa/folder_aaa/pokemon_abilities_json/year=2022/month=jan/part3.json",
"number_of_partitions": "1",
"partitions": "{'min_partition': {'id': [('partition_key[0]', 'year'), ('partition[0]', '2022'), ('partition_key[1]', 'month'), ('partition[1]', 'jan')], 'creation_time': '2020-04-14 07:06:20+00:00', 'modification_time': '2020-04-14 07:06:20+00:00', 'size': '14540', 'sample_file': 's3://my-test-bucket/folder_a/folder_aa/folder_aaa/pokemon_abilities_json/year=2022/month=jan/part3.json'}, 'max_partition': {'id': [('partition_key[0]', 'year'), ('partition[0]', '2022'), ('partition_key[1]', 'month'), ('partition[1]', 'jan')], 'creation_time': '2020-04-14 07:06:20+00:00', 'modification_time': '2020-04-14 07:06:20+00:00', 'size': '14540', 'sample_file': 's3://my-test-bucket/folder_a/folder_aa/folder_aaa/pokemon_abilities_json/year=2022/month=jan/part3.json'}}"
"number_of_partitions": "1"
},
"name": "folder_aaa.pokemon_abilities_json",
"description": "",
Expand Down Expand Up @@ -583,12 +582,12 @@
"aspect": {
"json": {
"minPartition": {
"partition": "partition_key[0]=year/partition[0]=2022/partition_key[1]=month/partition[1]=jan",
"partition": "year=2022/month=jan",
"createdTime": 1586847980000,
"lastModifiedTime": 1586847980000
},
"maxPartition": {
"partition": "partition_key[0]=year/partition[0]=2022/partition_key[1]=month/partition[1]=jan",
"partition": "year=2022/month=jan",
"createdTime": 1586847980000,
"lastModifiedTime": 1586847980000
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"json": {
"customProperties": {
"schema_inferred_from": "s3://my-test-bucket/folder_a/folder_aa/folder_aaa/pokemon_abilities_json/year=2022/month=jan/part3.json",
"number_of_partitions": "1",
"partitions": "{'min_partition': {'id': [('partition[0]', 'year=2022'), ('partition[1]', 'month=jan')], 'creation_time': '2020-04-14 07:06:20+00:00', 'modification_time': '2020-04-14 07:06:20+00:00', 'size': '14540', 'sample_file': 's3://my-test-bucket/folder_a/folder_aa/folder_aaa/pokemon_abilities_json/year=2022/month=jan/part3.json'}, 'max_partition': {'id': [('partition[0]', 'year=2022'), ('partition[1]', 'month=jan')], 'creation_time': '2020-04-14 07:06:20+00:00', 'modification_time': '2020-04-14 07:06:20+00:00', 'size': '14540', 'sample_file': 's3://my-test-bucket/folder_a/folder_aa/folder_aaa/pokemon_abilities_json/year=2022/month=jan/part3.json'}}"
"number_of_partitions": "1"
},
"name": "folder_aaa.pokemon_abilities_json",
"description": "",
Expand Down Expand Up @@ -583,12 +582,12 @@
"aspect": {
"json": {
"minPartition": {
"partition": "partition[0]=year=2022/partition[1]=month=jan",
"partition": "partition_0=year=2022/partition_1=month=jan",
"createdTime": 1586847980000,
"lastModifiedTime": 1586847980000
},
"maxPartition": {
"partition": "partition[0]=year=2022/partition[1]=month=jan",
"partition": "partition_0=year=2022/partition_1=month=jan",
"createdTime": 1586847980000,
"lastModifiedTime": 1586847980000
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -774,8 +774,7 @@
"json": {
"customProperties": {
"schema_inferred_from": "s3://my-test-bucket/folder_a/folder_aa/folder_aaa/pokemon_abilities_json/year=2022/month=jan/part3.json",
"number_of_partitions": "1",
"partitions": "{'min_partition': {'id': [('year', '2022'), ('month', 'jan')], 'creation_time': '2020-04-14 07:06:20+00:00', 'modification_time': '2020-04-14 07:06:20+00:00', 'size': '14540', 'sample_file': 's3://my-test-bucket/folder_a/folder_aa/folder_aaa/pokemon_abilities_json/year=2022/month=jan/part3.json'}, 'max_partition': {'id': [('year', '2022'), ('month', 'jan')], 'creation_time': '2020-04-14 07:06:20+00:00', 'modification_time': '2020-04-14 07:06:20+00:00', 'size': '14540', 'sample_file': 's3://my-test-bucket/folder_a/folder_aa/folder_aaa/pokemon_abilities_json/year=2022/month=jan/part3.json'}}"
"number_of_partitions": "1"
},
"name": "folder_aaa.pokemon_abilities_json",
"description": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -774,8 +774,7 @@
"json": {
"customProperties": {
"schema_inferred_from": "s3://my-test-bucket/folder_a/folder_aa/folder_aaa/pokemon_abilities_json/year=2022/month=jan/part3.json",
"number_of_partitions": "7",
"partitions": "{'min_partition': {'id': [('year', '2019'), ('month', 'feb')], 'creation_time': '2020-04-14 07:04:20+00:00', 'modification_time': '2020-04-14 07:04:30+00:00', 'size': '29010', 'sample_file': 's3://my-test-bucket/folder_a/folder_aa/folder_aaa/pokemon_abilities_json/year=2019/month=feb/part2.json'}, 'max_partition': {'id': [('year', '2022'), ('month', 'jan')], 'creation_time': '2020-04-14 07:06:20+00:00', 'modification_time': '2020-04-14 07:06:20+00:00', 'size': '14540', 'sample_file': 's3://my-test-bucket/folder_a/folder_aa/folder_aaa/pokemon_abilities_json/year=2022/month=jan/part3.json'}}"
"number_of_partitions": "7"
},
"name": "folder_aaa.pokemon_abilities_json",
"description": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -774,8 +774,7 @@
"json": {
"customProperties": {
"schema_inferred_from": "s3://my-test-bucket/folder_a/folder_aa/folder_aaa/pokemon_abilities_json/year=2022/month=jan/part3.json",
"number_of_partitions": "2",
"partitions": "{'min_partition': {'id': [('year', '2019'), ('month', 'feb')], 'creation_time': '2020-04-14 07:04:20+00:00', 'modification_time': '2020-04-14 07:04:30+00:00', 'size': '29010', 'sample_file': 's3://my-test-bucket/folder_a/folder_aa/folder_aaa/pokemon_abilities_json/year=2019/month=feb/part2.json'}, 'max_partition': {'id': [('year', '2022'), ('month', 'jan')], 'creation_time': '2020-04-14 07:06:20+00:00', 'modification_time': '2020-04-14 07:06:20+00:00', 'size': '14540', 'sample_file': 's3://my-test-bucket/folder_a/folder_aa/folder_aaa/pokemon_abilities_json/year=2022/month=jan/part3.json'}}"
"number_of_partitions": "2"
},
"name": "folder_aaa.pokemon_abilities_json",
"description": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"type": "s3",
"config": {
"env": "UAT",
"sort_schema_fields": true,
"path_specs": [{
"include": "s3://my-test-bucket/folder_a/folder_aa/folder_aaa/{table}/*.*"
}],
Expand Down

0 comments on commit 0ce1174

Please sign in to comment.