deltacat 1.1.7__tar.gz → 1.1.9__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-1.1.9/LICENSE +201 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/PKG-INFO +2 -3
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/__init__.py +1 -1
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/aws/constants.py +6 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/aws/s3u.py +46 -25
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/model/compact_partition_params.py +12 -1
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/model/materialize_result.py +0 -4
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/compaction_session.py +11 -5
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/constants.py +2 -11
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/model/merge_input.py +6 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/steps/hash_bucket.py +5 -7
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/steps/merge.py +12 -12
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/utils/merge.py +1 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/utils/primary_key_index.py +9 -4
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/utils/task_options.py +2 -12
- deltacat-1.1.9/deltacat/exceptions.py +349 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/io/memcached_object_store.py +7 -4
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/storage/interface.py +14 -0
- deltacat-1.1.9/deltacat/tests/compute/compact_partition_rebase_test_cases.py +88 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/compute/compact_partition_rebase_then_incremental_test_cases.py +3 -2
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/compute/compact_partition_test_cases.py +4 -2
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/compute/compactor_v2/test_compaction_session.py +3 -1
- deltacat-1.1.9/deltacat/tests/compute/test_compact_partition_rebase.py +289 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/compute/test_util_create_table_deltas_repo.py +1 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/io/test_memcached_object_store.py +5 -2
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/local_deltacat_storage/__init__.py +41 -10
- deltacat-1.1.9/deltacat/tests/local_deltacat_storage/exceptions.py +10 -0
- deltacat-1.1.9/deltacat/tests/test_exceptions.py +100 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/test_logs.py +1 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/utils/test_daft.py +0 -1
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/utils/test_resources.py +0 -28
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/utils/daft.py +3 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/utils/pyarrow.py +8 -5
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/utils/ray_utils/runtime.py +2 -2
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/utils/resources.py +0 -45
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat.egg-info/PKG-INFO +2 -3
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat.egg-info/SOURCES.txt +5 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat.egg-info/requires.txt +3 -3
- {deltacat-1.1.7 → deltacat-1.1.9}/setup.py +4 -5
- deltacat-1.1.7/deltacat/exceptions.py +0 -14
- {deltacat-1.1.7 → deltacat-1.1.9}/MANIFEST.in +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/README.md +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/aws/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/aws/clients.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/aws/redshift/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/aws/redshift/model/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/aws/redshift/model/manifest.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/benchmarking/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/benchmarking/benchmark_parquet_reads.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/benchmarking/conftest.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/catalog/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/catalog/default_catalog_impl/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/catalog/delegate.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/catalog/interface.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/catalog/model/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/catalog/model/catalog.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/catalog/model/table_definition.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/compaction_session.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/model/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/model/compaction_session_audit_info.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/model/compactor_version.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/model/dedupe_result.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/model/delta_annotated.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/model/delta_file_envelope.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/model/delta_file_locator.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/model/hash_bucket_result.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/model/primary_key_index.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/model/pyarrow_write_result.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/model/repartition_result.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/model/round_completion_info.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/model/table_object_store.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/repartition_session.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/steps/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/steps/dedupe.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/steps/hash_bucket.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/steps/materialize.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/steps/repartition.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/utils/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/utils/io.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/utils/primary_key_index.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/utils/round_completion_file.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/utils/sort_key.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/utils/system_columns.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/deletes/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/deletes/delete_file_envelope.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/deletes/delete_strategy.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/deletes/delete_strategy_equality_delete.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/deletes/model.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/deletes/utils.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/model/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/model/compaction_session.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/model/hash_bucket_input.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/model/hash_bucket_result.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/model/merge_file_group.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/model/merge_result.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/steps/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/utils/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/utils/content_type_params.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/utils/dedupe.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/utils/delta.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor_v2/utils/io.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/merge_on_read/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/merge_on_read/daft.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/merge_on_read/model/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/merge_on_read/model/merge_on_read_params.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/merge_on_read/utils/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/merge_on_read/utils/delta.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/metastats/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/metastats/config/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/metastats/meta_stats.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/metastats/model/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/metastats/model/partition_stats_dict.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/metastats/model/stats_cluster_size_estimator.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/metastats/stats.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/metastats/utils/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/metastats/utils/constants.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/metastats/utils/io.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/metastats/utils/pyarrow_memory_estimation_function.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/metastats/utils/ray_utils.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/stats/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/stats/basic.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/stats/models/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/stats/models/delta_column_stats.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/stats/models/delta_stats.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/stats/models/delta_stats_cache_result.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/stats/models/manifest_entry_stats.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/stats/models/stats_result.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/stats/types.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/stats/utils/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/stats/utils/intervals.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/stats/utils/io.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/stats/utils/manifest_stats_file.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/constants.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/io/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/io/aws/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/io/aws/redshift/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/io/aws/redshift/redshift_datasource.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/io/dataset.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/io/file_object_store.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/io/object_store.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/io/ray_plasma_object_store.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/io/read_api.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/io/redis_object_store.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/io/s3_object_store.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/logs.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/storage/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/storage/model/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/storage/model/delete_parameters.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/storage/model/delta.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/storage/model/list_result.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/storage/model/locator.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/storage/model/namespace.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/storage/model/partition.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/storage/model/sort_key.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/storage/model/stream.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/storage/model/table.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/storage/model/table_version.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/storage/model/types.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/aws/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/aws/test_clients.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/aws/test_s3u.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/catalog/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/catalog/test_default_catalog_impl.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/compute/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/compute/compactor/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/compute/compactor/steps/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/compute/compactor/steps/test_repartition.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/compute/compactor/utils/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/compute/compactor/utils/test_io.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/compute/compactor_v2/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/compute/compactor_v2/test_hashlib.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/compute/compactor_v2/utils/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/compute/compactor_v2/utils/test_task_options.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/compute/test_compact_partition_incremental.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/compute/test_compact_partition_params.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/compute/test_compact_partition_rebase_then_incremental.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/compute/test_util_common.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/compute/test_util_constant.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/io/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/io/test_cloudpickle_bug_fix.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/io/test_file_object_store.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/io/test_ray_plasma_object_store.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/io/test_redis_object_store.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/io/test_s3_object_store.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/stats/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/stats/test_intervals.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/test_utils/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/test_utils/constants.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/test_utils/pyarrow.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/test_utils/storage.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/test_utils/utils.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/utils/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/utils/data/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/utils/ray_utils/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/utils/ray_utils/test_concurrency.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/utils/test_cloudpickle.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/utils/test_metrics.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/utils/test_placement.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/utils/test_pyarrow.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/tests/utils/test_record_batch_tables.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/types/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/types/media.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/types/partial_download.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/types/tables.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/utils/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/utils/arguments.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/utils/cloudpickle.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/utils/common.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/utils/metrics.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/utils/numpy.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/utils/pandas.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/utils/performance.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/utils/placement.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/utils/ray_utils/__init__.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/utils/ray_utils/collections.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/utils/ray_utils/concurrency.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/utils/ray_utils/dataset.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/utils/ray_utils/performance.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/utils/s3fs.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat/utils/schema.py +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat.egg-info/dependency_links.txt +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/deltacat.egg-info/top_level.txt +0 -0
- {deltacat-1.1.7 → deltacat-1.1.9}/setup.cfg +0 -0
deltacat-1.1.9/LICENSE
ADDED
@@ -0,0 +1,201 @@
|
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|
175
|
+
|
176
|
+
END OF TERMS AND CONDITIONS
|
177
|
+
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
179
|
+
|
180
|
+
To apply the Apache License to your work, attach the following
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
182
|
+
replaced with your own identifying information. (Don't include
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
184
|
+
comment syntax for the file format. We also recommend that a
|
185
|
+
file or class name and description of purpose be included on the
|
186
|
+
same "printed page" as the copyright notice for easier
|
187
|
+
identification within third-party archives.
|
188
|
+
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
190
|
+
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
192
|
+
you may not use this file except in compliance with the License.
|
193
|
+
You may obtain a copy of the License at
|
194
|
+
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
196
|
+
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200
|
+
See the License for the specific language governing permissions and
|
201
|
+
limitations under the License.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: deltacat
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.9
|
4
4
|
Summary: A scalable, fast, ACID-compliant Data Catalog powered by Ray.
|
5
5
|
Home-page: https://github.com/ray-project/deltacat
|
6
6
|
Author: Ray Team
|
@@ -40,9 +40,8 @@ Platform: UNKNOWN
|
|
40
40
|
Classifier: Development Status :: 4 - Beta
|
41
41
|
Classifier: Intended Audience :: Developers
|
42
42
|
Classifier: Programming Language :: Python :: 3 :: Only
|
43
|
-
Classifier: Programming Language :: Python :: 3.7
|
44
43
|
Classifier: Programming Language :: Python :: 3.8
|
45
44
|
Classifier: Programming Language :: Python :: 3.9
|
46
45
|
Classifier: Operating System :: OS Independent
|
47
|
-
Requires-Python: >=3.
|
46
|
+
Requires-Python: >=3.8
|
48
47
|
Description-Content-Type: text/markdown
|
@@ -1,9 +1,14 @@
|
|
1
1
|
import botocore
|
2
2
|
from typing import Set
|
3
|
+
from daft.exceptions import DaftTransientError
|
3
4
|
|
4
5
|
from deltacat.utils.common import env_integer, env_string
|
5
6
|
|
7
|
+
|
6
8
|
DAFT_MAX_S3_CONNECTIONS_PER_FILE = env_integer("DAFT_MAX_S3_CONNECTIONS_PER_FILE", 8)
|
9
|
+
DEFAULT_FILE_READ_TIMEOUT_MS = env_integer(
|
10
|
+
"DEFAULT_FILE_READ_TIMEOUT_MS", 300_000
|
11
|
+
) # 5 mins
|
7
12
|
BOTO_MAX_RETRIES = env_integer("BOTO_MAX_RETRIES", 5)
|
8
13
|
BOTO_TIMEOUT_ERROR_CODES: Set[str] = {"ReadTimeoutError", "ConnectTimeoutError"}
|
9
14
|
BOTO_THROTTLING_ERROR_CODES: Set[str] = {"Throttling", "SlowDown"}
|
@@ -14,6 +19,7 @@ RETRYABLE_TRANSIENT_ERRORS = (
|
|
14
19
|
botocore.exceptions.NoCredentialsError,
|
15
20
|
botocore.exceptions.ConnectTimeoutError,
|
16
21
|
botocore.exceptions.ReadTimeoutError,
|
22
|
+
DaftTransientError,
|
17
23
|
)
|
18
24
|
AWS_REGION = env_string("AWS_REGION", "us-east-1")
|
19
25
|
UPLOAD_DOWNLOAD_RETRY_STOP_AFTER_DELAY = env_integer(
|
@@ -26,14 +26,12 @@ from ray.types import ObjectRef
|
|
26
26
|
from tenacity import (
|
27
27
|
Retrying,
|
28
28
|
retry_if_exception_type,
|
29
|
-
retry_if_not_exception_type,
|
30
29
|
stop_after_delay,
|
31
30
|
wait_random_exponential,
|
32
31
|
)
|
33
32
|
from deltacat.utils.ray_utils.concurrency import invoke_parallel
|
34
33
|
import deltacat.aws.clients as aws_utils
|
35
34
|
from deltacat import logs
|
36
|
-
from deltacat.exceptions import NonRetryableError, RetryableError
|
37
35
|
from deltacat.storage import (
|
38
36
|
DistributedDataset,
|
39
37
|
LocalDataset,
|
@@ -55,8 +53,20 @@ from deltacat.types.tables import (
|
|
55
53
|
DISTRIBUTED_DATASET_TYPE_TO_READER_FUNC,
|
56
54
|
get_table_length,
|
57
55
|
)
|
56
|
+
from deltacat.exceptions import (
|
57
|
+
RetryableError,
|
58
|
+
RetryableUploadTableError,
|
59
|
+
RetryableDownloadTableError,
|
60
|
+
RetryableDownloadFileError,
|
61
|
+
RetryableUploadFileError,
|
62
|
+
NonRetryableDownloadFileError,
|
63
|
+
NonRetryableUploadFileError,
|
64
|
+
NonRetryableUploadTableError,
|
65
|
+
NonRetryableDownloadTableError,
|
66
|
+
)
|
58
67
|
from deltacat.types.partial_download import PartialFileDownloadParams
|
59
68
|
from deltacat.utils.common import ReadKwargsProvider
|
69
|
+
from deltacat.exceptions import categorize_errors
|
60
70
|
|
61
71
|
logger = logs.configure_deltacat_logger(logging.getLogger(__name__))
|
62
72
|
|
@@ -232,6 +242,7 @@ def filter_objects_by_prefix(
|
|
232
242
|
more_objects_to_list = params["ContinuationToken"] is not None
|
233
243
|
|
234
244
|
|
245
|
+
@categorize_errors
|
235
246
|
def read_file(
|
236
247
|
s3_url: str,
|
237
248
|
content_type: ContentType,
|
@@ -263,15 +274,15 @@ def read_file(
|
|
263
274
|
in BOTO_TIMEOUT_ERROR_CODES | BOTO_THROTTLING_ERROR_CODES
|
264
275
|
):
|
265
276
|
# Timeout error not caught by botocore
|
266
|
-
raise
|
267
|
-
f"Retry table download from: {s3_url} after receiving {type(e).__name__}"
|
277
|
+
raise RetryableDownloadTableError(
|
278
|
+
f"Retry table download from: {s3_url} after receiving {type(e).__name__}",
|
268
279
|
) from e
|
269
|
-
raise
|
280
|
+
raise NonRetryableDownloadTableError(
|
270
281
|
f"Failed table download from: {s3_url} after receiving {type(e).__name__}"
|
271
282
|
) from e
|
272
283
|
except RETRYABLE_TRANSIENT_ERRORS as e:
|
273
|
-
raise
|
274
|
-
f"Retry
|
284
|
+
raise RetryableDownloadTableError(
|
285
|
+
f"Retry download for: {s3_url} after receiving {type(e).__name__}"
|
275
286
|
) from e
|
276
287
|
except BaseException as e:
|
277
288
|
logger.warn(
|
@@ -279,7 +290,10 @@ def read_file(
|
|
279
290
|
f"and encoding={content_encoding}. Error: {e}",
|
280
291
|
exc_info=True,
|
281
292
|
)
|
282
|
-
raise
|
293
|
+
raise NonRetryableDownloadTableError(
|
294
|
+
f"Read has failed for {s3_url} and content_type={content_type} "
|
295
|
+
f"and encoding={content_encoding}",
|
296
|
+
) from e
|
283
297
|
|
284
298
|
|
285
299
|
def upload_sliced_table(
|
@@ -378,29 +392,31 @@ def upload_table(
|
|
378
392
|
except ClientError as e:
|
379
393
|
if e.response["Error"]["Code"] == "NoSuchKey":
|
380
394
|
# s3fs may swallow S3 errors - we were probably throttled
|
381
|
-
raise
|
382
|
-
f"Retry table
|
395
|
+
raise RetryableUploadTableError(
|
396
|
+
f"Retry table upload from: {s3_url} after receiving {type(e).__name__}",
|
383
397
|
) from e
|
384
398
|
if (
|
385
399
|
e.response["Error"]["Code"]
|
386
400
|
in BOTO_TIMEOUT_ERROR_CODES | BOTO_THROTTLING_ERROR_CODES
|
387
401
|
):
|
388
|
-
raise
|
389
|
-
f"Retry table
|
402
|
+
raise RetryableUploadTableError(
|
403
|
+
f"Retry table upload from: {s3_url} after receiving {type(e).__name__}",
|
390
404
|
) from e
|
391
|
-
raise
|
392
|
-
f"Failed table upload to: {s3_url} after receiving {type(e).__name__}"
|
405
|
+
raise NonRetryableUploadTableError(
|
406
|
+
f"Failed table upload to: {s3_url} after receiving {type(e).__name__}",
|
393
407
|
) from e
|
394
408
|
except RETRYABLE_TRANSIENT_ERRORS as e:
|
395
|
-
raise
|
396
|
-
f"Retry upload for: {s3_url} after receiving {type(e).__name__}"
|
409
|
+
raise RetryableUploadTableError(
|
410
|
+
f"Retry upload for: {s3_url} after receiving {type(e).__name__}",
|
397
411
|
) from e
|
398
412
|
except BaseException as e:
|
399
413
|
logger.warn(
|
400
414
|
f"Upload has failed for {s3_url} and content_type={content_type}. Error: {e}",
|
401
415
|
exc_info=True,
|
402
416
|
)
|
403
|
-
raise
|
417
|
+
raise NonRetryableUploadTableError(
|
418
|
+
f"Upload has failed for {s3_url} and content_type={content_type} because of {type(e).__name__}",
|
419
|
+
) from e
|
404
420
|
return manifest_entries
|
405
421
|
|
406
422
|
|
@@ -443,7 +459,7 @@ def download_manifest_entry(
|
|
443
459
|
retrying = Retrying(
|
444
460
|
wait=wait_random_exponential(multiplier=1, max=60),
|
445
461
|
stop=stop_after_delay(DOWNLOAD_MANIFEST_ENTRY_RETRY_STOP_AFTER_DELAY),
|
446
|
-
retry=
|
462
|
+
retry=retry_if_exception_type(RetryableError),
|
447
463
|
)
|
448
464
|
table = retrying(
|
449
465
|
read_file,
|
@@ -559,12 +575,15 @@ def _put_object(
|
|
559
575
|
)
|
560
576
|
except ClientError as e:
|
561
577
|
if e.response["Error"]["Code"] in BOTO_THROTTLING_ERROR_CODES:
|
562
|
-
|
563
|
-
|
578
|
+
error_code = e.response["Error"]["Code"]
|
579
|
+
raise RetryableUploadFileError(
|
580
|
+
f"Retry upload for: {bucket}/{key} after receiving {error_code}",
|
564
581
|
) from e
|
565
|
-
raise
|
582
|
+
raise NonRetryableUploadFileError(
|
583
|
+
f"Failed table upload to: {bucket}/{key}"
|
584
|
+
) from e
|
566
585
|
except RETRYABLE_TRANSIENT_ERRORS as e:
|
567
|
-
raise
|
586
|
+
raise RetryableUploadFileError(
|
568
587
|
f"Retry upload for: {bucket}/{key} after receiving {type(e).__name__}"
|
569
588
|
) from e
|
570
589
|
except BaseException as e:
|
@@ -572,7 +591,9 @@ def _put_object(
|
|
572
591
|
f"Upload has failed for {bucket}/{key}. Error: {type(e).__name__}",
|
573
592
|
exc_info=True,
|
574
593
|
)
|
575
|
-
raise
|
594
|
+
raise NonRetryableUploadFileError(
|
595
|
+
f"Failed table upload to: {bucket}/{key}"
|
596
|
+
) from e
|
576
597
|
|
577
598
|
|
578
599
|
def download(
|
@@ -604,12 +625,12 @@ def _get_object(s3_client, bucket: str, key: str, fail_if_not_found: bool = True
|
|
604
625
|
except ClientError as e:
|
605
626
|
if e.response["Error"]["Code"] == "NoSuchKey":
|
606
627
|
if fail_if_not_found:
|
607
|
-
raise
|
628
|
+
raise NonRetryableDownloadFileError(
|
608
629
|
f"Failed get object from: {bucket}/{key}"
|
609
630
|
) from e
|
610
631
|
logger.info(f"file not found: {bucket}/{key}")
|
611
632
|
except RETRYABLE_TRANSIENT_ERRORS as e:
|
612
|
-
raise
|
633
|
+
raise RetryableDownloadFileError(
|
613
634
|
f"Retry get object: {bucket}/{key} after receiving {type(e).__name__}"
|
614
635
|
) from e
|
615
636
|
|
{deltacat-1.1.7 → deltacat-1.1.9}/deltacat/compute/compactor/model/compact_partition_params.py
RENAMED
@@ -21,6 +21,7 @@ from deltacat.compute.compactor_v2.constants import (
|
|
21
21
|
TASK_MAX_PARALLELISM,
|
22
22
|
DROP_DUPLICATES,
|
23
23
|
TOTAL_MEMORY_BUFFER_PERCENTAGE,
|
24
|
+
DEFAULT_DISABLE_COPY_BY_REFERENCE,
|
24
25
|
)
|
25
26
|
from deltacat.constants import PYARROW_INFLATION_MULTIPLIER
|
26
27
|
from deltacat.compute.compactor.utils.sort_key import validate_sort_keys
|
@@ -50,7 +51,6 @@ class CompactPartitionParams(dict):
|
|
50
51
|
|
51
52
|
result = CompactPartitionParams(params)
|
52
53
|
|
53
|
-
# TODO: move defaults to single file
|
54
54
|
result.records_per_compacted_file = params.get(
|
55
55
|
"records_per_compacted_file", MAX_RECORDS_PER_COMPACTED_FILE
|
56
56
|
)
|
@@ -92,6 +92,9 @@ class CompactPartitionParams(dict):
|
|
92
92
|
result.hash_group_count = params.get(
|
93
93
|
"hash_group_count", result.hash_bucket_count
|
94
94
|
)
|
95
|
+
result.disable_copy_by_reference = params.get(
|
96
|
+
"disable_copy_by_reference", DEFAULT_DISABLE_COPY_BY_REFERENCE
|
97
|
+
)
|
95
98
|
result.drop_duplicates = params.get("drop_duplicates", DROP_DUPLICATES)
|
96
99
|
result.ray_custom_resources = params.get("ray_custom_resources")
|
97
100
|
|
@@ -238,6 +241,14 @@ class CompactPartitionParams(dict):
|
|
238
241
|
def enable_profiler(self, value: bool) -> None:
|
239
242
|
self["enable_profiler"] = value
|
240
243
|
|
244
|
+
@property
|
245
|
+
def disable_copy_by_reference(self) -> bool:
|
246
|
+
return self["disable_copy_by_reference"]
|
247
|
+
|
248
|
+
@disable_copy_by_reference.setter
|
249
|
+
def disable_copy_by_reference(self, value: bool) -> None:
|
250
|
+
self["disable_copy_by_reference"] = value
|
251
|
+
|
241
252
|
@property
|
242
253
|
def list_deltas_kwargs(self) -> dict:
|
243
254
|
return self["list_deltas_kwargs"]
|
@@ -55,10 +55,6 @@ class MaterializeResult(dict):
|
|
55
55
|
self["paWriteResult"] = val = PyArrowWriteResult(val)
|
56
56
|
return val
|
57
57
|
|
58
|
-
@property
|
59
|
-
def count_of_src_dfl_not_touched(self) -> int:
|
60
|
-
return self["countOfSrcFileNotTouched"]
|
61
|
-
|
62
58
|
@property
|
63
59
|
def referenced_pyarrow_write_result(self) -> PyArrowWriteResult:
|
64
60
|
val: Dict[str, Any] = self.get("referencedPaWriteResult")
|
@@ -77,6 +77,7 @@ from deltacat.compute.compactor_v2.utils.task_options import (
|
|
77
77
|
local_merge_resource_options_provider,
|
78
78
|
)
|
79
79
|
from deltacat.compute.compactor.model.compactor_version import CompactorVersion
|
80
|
+
from deltacat.exceptions import categorize_errors
|
80
81
|
|
81
82
|
if importlib.util.find_spec("memray"):
|
82
83
|
import memray
|
@@ -86,6 +87,7 @@ logger = logs.configure_deltacat_logger(logging.getLogger(__name__))
|
|
86
87
|
|
87
88
|
|
88
89
|
@metrics
|
90
|
+
@categorize_errors
|
89
91
|
def compact_partition(params: CompactPartitionParams, **kwargs) -> Optional[str]:
|
90
92
|
assert (
|
91
93
|
params.hash_bucket_count is not None and params.hash_bucket_count >= 1
|
@@ -123,12 +125,12 @@ def compact_partition(params: CompactPartitionParams, **kwargs) -> Optional[str]
|
|
123
125
|
f"Committing compacted partition to: {execute_compaction_result.new_compacted_partition.locator} "
|
124
126
|
f"using previous partition: {previous_partition.locator if previous_partition else None}"
|
125
127
|
)
|
126
|
-
|
128
|
+
committed_partition: Partition = params.deltacat_storage.commit_partition(
|
127
129
|
execute_compaction_result.new_compacted_partition,
|
128
130
|
previous_partition,
|
129
131
|
**params.deltacat_storage_kwargs,
|
130
132
|
)
|
131
|
-
logger.info(f"Committed compacted partition: {
|
133
|
+
logger.info(f"Committed compacted partition: {committed_partition}")
|
132
134
|
round_completion_file_s3_url = rcf.write_round_completion_file(
|
133
135
|
params.compaction_artifact_s3_bucket,
|
134
136
|
execute_compaction_result.new_round_completion_file_partition_locator,
|
@@ -479,6 +481,7 @@ def _execute_compaction(
|
|
479
481
|
delete_strategy=delete_strategy,
|
480
482
|
delete_file_envelopes=delete_file_envelopes,
|
481
483
|
memory_logs_enabled=params.memory_logs_enabled,
|
484
|
+
disable_copy_by_reference=params.disable_copy_by_reference,
|
482
485
|
)
|
483
486
|
}
|
484
487
|
|
@@ -662,13 +665,16 @@ def _execute_compaction(
|
|
662
665
|
)
|
663
666
|
|
664
667
|
logger.info(
|
665
|
-
f"
|
668
|
+
f"Partition-{params.source_partition_locator.partition_values},"
|
666
669
|
f"compacted at: {params.last_stream_position_to_compact},"
|
667
670
|
)
|
671
|
+
logger.info(
|
672
|
+
f"Checking if partition {rcf_source_partition_locator} is inplace compacted against {params.destination_partition_locator}..."
|
673
|
+
)
|
668
674
|
is_inplace_compacted: bool = (
|
669
|
-
|
675
|
+
rcf_source_partition_locator.partition_values
|
670
676
|
== params.destination_partition_locator.partition_values
|
671
|
-
and
|
677
|
+
and rcf_source_partition_locator.stream_id
|
672
678
|
== params.destination_partition_locator.stream_id
|
673
679
|
)
|
674
680
|
if is_inplace_compacted:
|
@@ -1,5 +1,3 @@
|
|
1
|
-
from deltacat.utils.common import env_integer
|
2
|
-
|
3
1
|
TOTAL_BYTES_IN_SHA1_HASH = 20
|
4
2
|
|
5
3
|
PK_DELIMITER = "L6kl7u5f"
|
@@ -43,15 +41,8 @@ DROP_DUPLICATES = True
|
|
43
41
|
# size in metadata to pyarrow table size.
|
44
42
|
PARQUET_TO_PYARROW_INFLATION = 4
|
45
43
|
|
46
|
-
#
|
47
|
-
|
48
|
-
# This timeout depends on total data processed per task.
|
49
|
-
MERGE_TASK_TIMEOUT_IN_SECONDS = env_integer("MERGE_TASK_TIMEOUT_IN_SECONDS", 25 * 60)
|
50
|
-
|
51
|
-
# A hash bucket task will fail after this timeout
|
52
|
-
HASH_BUCKET_TASK_TIMEOUT_IN_SECONDS = env_integer(
|
53
|
-
"HASH_BUCKET_TASK_TIMEOUT_IN_SECONDS", 25 * 60
|
54
|
-
)
|
44
|
+
# By default, copy by reference is enabled
|
45
|
+
DEFAULT_DISABLE_COPY_BY_REFERENCE = False
|
55
46
|
|
56
47
|
# Metric Names
|
57
48
|
# Time taken for a hash bucket task
|
@@ -47,6 +47,7 @@ class MergeInput(Dict):
|
|
47
47
|
deltacat_storage=unimplemented_deltacat_storage,
|
48
48
|
deltacat_storage_kwargs: Optional[Dict[str, Any]] = None,
|
49
49
|
memory_logs_enabled: Optional[bool] = None,
|
50
|
+
disable_copy_by_reference: Optional[bool] = None,
|
50
51
|
) -> MergeInput:
|
51
52
|
|
52
53
|
result = MergeInput()
|
@@ -69,6 +70,7 @@ class MergeInput(Dict):
|
|
69
70
|
result["deltacat_storage"] = deltacat_storage
|
70
71
|
result["deltacat_storage_kwargs"] = deltacat_storage_kwargs or {}
|
71
72
|
result["memory_logs_enabled"] = memory_logs_enabled
|
73
|
+
result["disable_copy_by_reference"] = disable_copy_by_reference
|
72
74
|
return result
|
73
75
|
|
74
76
|
@property
|
@@ -148,3 +150,7 @@ class MergeInput(Dict):
|
|
148
150
|
@property
|
149
151
|
def delete_strategy(self) -> Optional[DeleteStrategy]:
|
150
152
|
return self.get("delete_strategy")
|
153
|
+
|
154
|
+
@property
|
155
|
+
def disable_copy_by_reference(self) -> bool:
|
156
|
+
return self["disable_copy_by_reference"]
|
@@ -29,14 +29,15 @@ from deltacat.utils.metrics import emit_timer_metrics, failure_metric, success_m
|
|
29
29
|
from deltacat.utils.resources import (
|
30
30
|
get_current_process_peak_memory_usage_in_bytes,
|
31
31
|
ProcessUtilizationOverTimeRange,
|
32
|
-
timeout,
|
33
32
|
)
|
34
33
|
from deltacat.constants import BYTES_PER_GIBIBYTE
|
35
34
|
from deltacat.compute.compactor_v2.constants import (
|
36
35
|
HASH_BUCKET_TIME_IN_SECONDS,
|
37
36
|
HASH_BUCKET_FAILURE_COUNT,
|
38
37
|
HASH_BUCKET_SUCCESS_COUNT,
|
39
|
-
|
38
|
+
)
|
39
|
+
from deltacat.exceptions import (
|
40
|
+
categorize_errors,
|
40
41
|
)
|
41
42
|
|
42
43
|
if importlib.util.find_spec("memray"):
|
@@ -79,7 +80,7 @@ def _group_file_records_by_pk_hash_bucket(
|
|
79
80
|
logger.info("Grouping by pk hash bucket")
|
80
81
|
group_start = time.monotonic()
|
81
82
|
hash_bucket_to_table = group_by_pk_hash_bucket(
|
82
|
-
dfe.table, num_hash_buckets, primary_keys
|
83
|
+
table=dfe.table, num_buckets=num_hash_buckets, primary_keys=primary_keys
|
83
84
|
)
|
84
85
|
group_end = time.monotonic()
|
85
86
|
logger.info(f"Grouping took: {group_end - group_start}")
|
@@ -98,12 +99,9 @@ def _group_file_records_by_pk_hash_bucket(
|
|
98
99
|
return hb_to_delta_file_envelopes, total_record_count, total_size_bytes
|
99
100
|
|
100
101
|
|
101
|
-
# TODO: use timeout parameter in ray.remote
|
102
|
-
# https://github.com/ray-project/ray/issues/18916
|
103
|
-
# Note: order of decorators is important
|
104
102
|
@success_metric(name=HASH_BUCKET_SUCCESS_COUNT)
|
105
103
|
@failure_metric(name=HASH_BUCKET_FAILURE_COUNT)
|
106
|
-
@
|
104
|
+
@categorize_errors
|
107
105
|
def _timed_hash_bucket(input: HashBucketInput):
|
108
106
|
task_id = get_current_ray_task_id()
|
109
107
|
worker_id = get_current_ray_worker_id()
|