deltacat 0.1.18b5__tar.gz → 0.1.18b7__tar.gz
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.
- {deltacat-0.1.18b5/deltacat.egg-info → deltacat-0.1.18b7}/PKG-INFO +1 -1
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/__init__.py +1 -1
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/compaction_session.py +30 -6
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/utils/round_completion_file.py +11 -4
- {deltacat-0.1.18b5 → deltacat-0.1.18b7/deltacat.egg-info}/PKG-INFO +1 -1
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/LICENSE +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/MANIFEST.in +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/README.md +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/aws/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/aws/clients.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/aws/constants.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/aws/redshift/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/aws/redshift/model/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/aws/redshift/model/manifest.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/aws/s3u.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/catalog/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/catalog/delegate.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/catalog/interface.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/catalog/model/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/catalog/model/catalog.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/catalog/model/table_definition.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/model/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/model/compact_partition_params.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/model/compaction_session_audit_info.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/model/dedupe_result.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/model/delta_annotated.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/model/delta_file_envelope.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/model/delta_file_locator.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/model/hash_bucket_result.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/model/materialize_result.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/model/primary_key_index.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/model/pyarrow_write_result.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/model/repartition_result.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/model/round_completion_info.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/model/sort_key.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/repartition_session.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/steps/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/steps/dedupe.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/steps/hash_bucket.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/steps/materialize.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/steps/rehash/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/steps/rehash/rehash_bucket.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/steps/rehash/rewrite_index.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/steps/repartition.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/utils/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/utils/io.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/utils/primary_key_index.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/utils/system_columns.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/metastats/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/metastats/config/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/metastats/meta_stats.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/metastats/model/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/metastats/model/partition_stats_dict.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/metastats/model/stats_cluster_size_estimator.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/metastats/stats.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/metastats/utils/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/metastats/utils/constants.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/metastats/utils/io.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/metastats/utils/pyarrow_memory_estimation_function.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/metastats/utils/ray_utils.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/stats/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/stats/basic.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/stats/models/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/stats/models/delta_column_stats.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/stats/models/delta_stats.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/stats/models/delta_stats_cache_result.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/stats/models/manifest_entry_stats.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/stats/models/stats_result.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/stats/types.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/stats/utils/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/stats/utils/intervals.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/stats/utils/io.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/stats/utils/manifest_stats_file.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/constants.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/exceptions.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/io/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/io/aws/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/io/aws/redshift/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/io/aws/redshift/redshift_datasource.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/io/dataset.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/io/file_object_store.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/io/memcached_object_store.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/io/object_store.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/io/ray_plasma_object_store.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/io/read_api.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/io/redis_object_store.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/io/s3_object_store.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/logs.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/storage/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/storage/interface.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/storage/model/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/storage/model/delta.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/storage/model/list_result.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/storage/model/locator.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/storage/model/namespace.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/storage/model/partition.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/storage/model/stream.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/storage/model/table.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/storage/model/table_version.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/storage/model/types.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/tests/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/tests/compactor/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/tests/compactor/test_compact_partition_params.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/tests/compactor/utils/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/tests/compactor/utils/test_io.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/tests/io/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/tests/io/test_file_object_store.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/tests/io/test_memcached_object_store.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/tests/io/test_ray_plasma_object_store.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/tests/io/test_redis_object_store.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/tests/io/test_s3_object_store.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/tests/stats/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/tests/stats/test_intervals.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/tests/test_repartition.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/tests/test_utils/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/tests/test_utils/constants.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/tests/utils/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/tests/utils/test_record_batch_tables.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/tests/utils/test_resources.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/types/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/types/media.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/types/tables.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/utils/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/utils/common.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/utils/metrics.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/utils/numpy.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/utils/pandas.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/utils/performance.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/utils/placement.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/utils/pyarrow.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/utils/ray_utils/__init__.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/utils/ray_utils/collections.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/utils/ray_utils/concurrency.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/utils/ray_utils/dataset.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/utils/ray_utils/performance.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/utils/ray_utils/runtime.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/utils/resources.py +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat.egg-info/SOURCES.txt +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat.egg-info/dependency_links.txt +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat.egg-info/requires.txt +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat.egg-info/top_level.txt +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/setup.cfg +0 -0
- {deltacat-0.1.18b5 → deltacat-0.1.18b7}/setup.py +0 -0
@@ -115,6 +115,7 @@ def compact_partition(
|
|
115
115
|
read_kwargs_provider: Optional[ReadKwargsProvider] = None,
|
116
116
|
s3_table_writer_kwargs: Optional[Dict[str, Any]] = None,
|
117
117
|
object_store: Optional[IObjectStore] = RayPlasmaObjectStore(),
|
118
|
+
s3_client_kwargs: Optional[Dict[str, Any]] = None,
|
118
119
|
deltacat_storage=unimplemented_deltacat_storage,
|
119
120
|
**kwargs,
|
120
121
|
) -> Optional[str]:
|
@@ -155,6 +156,7 @@ def compact_partition(
|
|
155
156
|
read_kwargs_provider,
|
156
157
|
s3_table_writer_kwargs,
|
157
158
|
object_store,
|
159
|
+
s3_client_kwargs,
|
158
160
|
deltacat_storage,
|
159
161
|
**kwargs,
|
160
162
|
)
|
@@ -201,6 +203,7 @@ def _execute_compaction_round(
|
|
201
203
|
read_kwargs_provider: Optional[ReadKwargsProvider],
|
202
204
|
s3_table_writer_kwargs: Optional[Dict[str, Any]],
|
203
205
|
object_store: Optional[IObjectStore],
|
206
|
+
s3_client_kwargs: Optional[Dict[str, Any]],
|
204
207
|
deltacat_storage=unimplemented_deltacat_storage,
|
205
208
|
**kwargs,
|
206
209
|
) -> Tuple[Optional[Partition], Optional[RoundCompletionInfo], Optional[str]]:
|
@@ -330,7 +333,11 @@ def _execute_compaction_round(
|
|
330
333
|
delta_discovery_end - delta_discovery_start
|
331
334
|
)
|
332
335
|
|
333
|
-
s3_utils.upload(
|
336
|
+
s3_utils.upload(
|
337
|
+
compaction_audit.audit_url,
|
338
|
+
str(json.dumps(compaction_audit)),
|
339
|
+
**s3_client_kwargs,
|
340
|
+
)
|
334
341
|
|
335
342
|
if not input_deltas:
|
336
343
|
logger.info("No input deltas found to compact.")
|
@@ -424,7 +431,11 @@ def _execute_compaction_round(
|
|
424
431
|
hb_end - hb_start,
|
425
432
|
)
|
426
433
|
|
427
|
-
s3_utils.upload(
|
434
|
+
s3_utils.upload(
|
435
|
+
compaction_audit.audit_url,
|
436
|
+
str(json.dumps(compaction_audit)),
|
437
|
+
**s3_client_kwargs,
|
438
|
+
)
|
428
439
|
|
429
440
|
all_hash_group_idx_to_obj_id = defaultdict(list)
|
430
441
|
for hb_result in hb_results:
|
@@ -466,11 +477,16 @@ def _execute_compaction_round(
|
|
466
477
|
logger.info(f"Materialize Bucket Count: {num_materialize_buckets}")
|
467
478
|
|
468
479
|
dedupe_start = time.monotonic()
|
469
|
-
|
480
|
+
dd_max_parallelism = int(
|
481
|
+
max_parallelism * kwargs.get("dd_max_parallelism_ratio", 1)
|
482
|
+
)
|
483
|
+
logger.info(
|
484
|
+
f"dd max_parallelism is set to {dd_max_parallelism}, max_parallelism is {max_parallelism}"
|
485
|
+
)
|
470
486
|
dd_tasks_pending = invoke_parallel(
|
471
487
|
items=all_hash_group_idx_to_obj_id.values(),
|
472
488
|
ray_task=dd.dedupe,
|
473
|
-
max_parallelism=
|
489
|
+
max_parallelism=dd_max_parallelism,
|
474
490
|
options_provider=round_robin_opt_provider,
|
475
491
|
kwargs_provider=lambda index, item: {
|
476
492
|
"dedupe_task_index": index,
|
@@ -534,7 +550,11 @@ def _execute_compaction_round(
|
|
534
550
|
# parallel step 3:
|
535
551
|
# materialize records to keep by index
|
536
552
|
|
537
|
-
s3_utils.upload(
|
553
|
+
s3_utils.upload(
|
554
|
+
compaction_audit.audit_url,
|
555
|
+
str(json.dumps(compaction_audit)),
|
556
|
+
**s3_client_kwargs,
|
557
|
+
)
|
538
558
|
|
539
559
|
materialize_start = time.monotonic()
|
540
560
|
|
@@ -636,7 +656,11 @@ def _execute_compaction_round(
|
|
636
656
|
mat_results, telemetry_time_hb + telemetry_time_dd + telemetry_time_materialize
|
637
657
|
)
|
638
658
|
|
639
|
-
s3_utils.upload(
|
659
|
+
s3_utils.upload(
|
660
|
+
compaction_audit.audit_url,
|
661
|
+
str(json.dumps(compaction_audit)),
|
662
|
+
**s3_client_kwargs,
|
663
|
+
)
|
640
664
|
|
641
665
|
new_round_completion_info = RoundCompletionInfo.of(
|
642
666
|
last_stream_position_compacted,
|
{deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/utils/round_completion_file.py
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
import json
|
2
2
|
import logging
|
3
|
-
|
3
|
+
from typing import Dict, Any
|
4
4
|
from deltacat import logs
|
5
5
|
from deltacat.compute.compactor import RoundCompletionInfo
|
6
6
|
from deltacat.storage import PartitionLocator
|
@@ -19,7 +19,9 @@ def get_round_completion_file_s3_url(
|
|
19
19
|
|
20
20
|
|
21
21
|
def read_round_completion_file(
|
22
|
-
bucket: str,
|
22
|
+
bucket: str,
|
23
|
+
source_partition_locator: PartitionLocator,
|
24
|
+
**s3_client_kwargs: Optional[Dict[str, Any]],
|
23
25
|
) -> RoundCompletionInfo:
|
24
26
|
|
25
27
|
round_completion_file_url = get_round_completion_file_s3_url(
|
@@ -28,7 +30,7 @@ def read_round_completion_file(
|
|
28
30
|
)
|
29
31
|
logger.info(f"reading round completion file from: {round_completion_file_url}")
|
30
32
|
round_completion_info = None
|
31
|
-
result = s3_utils.download(round_completion_file_url, False)
|
33
|
+
result = s3_utils.download(round_completion_file_url, False, **s3_client_kwargs)
|
32
34
|
if result:
|
33
35
|
json_str = result["Body"].read().decode("utf-8")
|
34
36
|
round_completion_info = RoundCompletionInfo(json.loads(json_str))
|
@@ -41,6 +43,7 @@ def write_round_completion_file(
|
|
41
43
|
source_partition_locator: Optional[PartitionLocator],
|
42
44
|
round_completion_info: RoundCompletionInfo,
|
43
45
|
completion_file_s3_url: str = None,
|
46
|
+
**s3_client_kwargs: Optional[Dict[str, Any]],
|
44
47
|
) -> str:
|
45
48
|
if bucket is None and completion_file_s3_url is None:
|
46
49
|
raise AssertionError("Either bucket or completion_file_s3_url must be passed")
|
@@ -52,6 +55,10 @@ def write_round_completion_file(
|
|
52
55
|
source_partition_locator,
|
53
56
|
)
|
54
57
|
logger.info(f"writing round completion file to: {completion_file_s3_url}")
|
55
|
-
s3_utils.upload(
|
58
|
+
s3_utils.upload(
|
59
|
+
completion_file_s3_url,
|
60
|
+
str(json.dumps(round_completion_info)),
|
61
|
+
**s3_client_kwargs,
|
62
|
+
)
|
56
63
|
logger.info(f"round completion file written to: {completion_file_s3_url}")
|
57
64
|
return completion_file_s3_url
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/model/compact_partition_params.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/model/delta_file_envelope.py
RENAMED
File without changes
|
{deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/model/delta_file_locator.py
RENAMED
File without changes
|
{deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/model/hash_bucket_result.py
RENAMED
File without changes
|
{deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/model/materialize_result.py
RENAMED
File without changes
|
{deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/model/primary_key_index.py
RENAMED
File without changes
|
{deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/model/pyarrow_write_result.py
RENAMED
File without changes
|
{deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/model/repartition_result.py
RENAMED
File without changes
|
{deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/model/round_completion_info.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/steps/rehash/rehash_bucket.py
RENAMED
File without changes
|
{deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/steps/rehash/rewrite_index.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/compactor/utils/primary_key_index.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/metastats/model/partition_stats_dict.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/stats/models/delta_stats_cache_result.py
RENAMED
File without changes
|
{deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/compute/stats/models/manifest_entry_stats.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{deltacat-0.1.18b5 → deltacat-0.1.18b7}/deltacat/tests/compactor/test_compact_partition_params.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|