deltacat 1.1.10__py3-none-any.whl → 1.1.11__py3-none-any.whl

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/__init__.py CHANGED
@@ -44,7 +44,7 @@ from deltacat.types.tables import TableWriteMode
44
44
 
45
45
  deltacat.logs.configure_deltacat_logger(logging.getLogger(__name__))
46
46
 
47
- __version__ = "1.1.10"
47
+ __version__ = "1.1.11"
48
48
 
49
49
 
50
50
  __all__ = [
@@ -162,7 +162,7 @@ def group_by_pk_hash_bucket(
162
162
  len(new_tables) == 1
163
163
  ), f"Expected only 1 table in the result but found {len(new_tables)}"
164
164
 
165
- table = generate_pk_hash_column([table], primary_keys, requires_hash=True)[0]
165
+ table = new_tables[0]
166
166
 
167
167
  # group hash bucket record indices
168
168
  result = group_record_indices_by_hash_bucket(
deltacat/exceptions.py CHANGED
@@ -213,11 +213,14 @@ def categorize_errors(func: Callable):
213
213
  except BaseException as e:
214
214
  deltacat_storage = None
215
215
  deltacat_storage_kwargs = {}
216
+ all_args = args
216
217
  if kwargs:
217
218
  deltacat_storage = kwargs.get(DELTACAT_STORAGE_PARAM)
218
219
  deltacat_storage_kwargs = kwargs.get(DELTACAT_STORAGE_KWARGS_PARAM, {})
219
- if not deltacat_storage and args:
220
- for arg in args:
220
+ all_args = all_args + tuple(kwargs.values())
221
+
222
+ if not deltacat_storage and all_args:
223
+ for arg in all_args:
221
224
  if (
222
225
  isinstance(arg, dict)
223
226
  and arg.get(DELTACAT_STORAGE_PARAM) is not None
@@ -179,6 +179,28 @@ class TestReadWriteRoundCompletionFile:
179
179
 
180
180
  assert rcf == expected_rcf_2
181
181
 
182
+ def test_read_when_none_destination_partition_id(self):
183
+
184
+ source_locator = get_test_partition_locator("source")
185
+ destination_locator = get_test_partition_locator(None)
186
+
187
+ expected_rcf = RoundCompletionInfo.of(
188
+ high_watermark=122,
189
+ compacted_delta_locator={},
190
+ compacted_pyarrow_write_result={},
191
+ sort_keys_bit_width=12,
192
+ )
193
+
194
+ write_round_completion_file(
195
+ RCF_BUCKET_NAME, source_locator, destination_locator, expected_rcf
196
+ )
197
+
198
+ rcf = read_round_completion_file(
199
+ RCF_BUCKET_NAME, source_locator, destination_locator
200
+ )
201
+
202
+ assert rcf == expected_rcf
203
+
182
204
  def test_write_when_custom_url_is_passed(self):
183
205
  """
184
206
  This test case tests the backward compatibility by successfully
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: deltacat
3
- Version: 1.1.10
3
+ Version: 1.1.11
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
@@ -27,7 +27,7 @@ Requires-Dist: tenacity ==8.1.0
27
27
  Requires-Dist: typing-extensions ==4.4.0
28
28
  Requires-Dist: pymemcache ==4.0.0
29
29
  Requires-Dist: redis ==4.6.0
30
- Requires-Dist: getdaft ==0.2.27
30
+ Requires-Dist: getdaft ==0.2.29
31
31
  Requires-Dist: schedule ==1.2.0
32
32
 
33
33
  # DeltaCAT
@@ -1,6 +1,6 @@
1
- deltacat/__init__.py,sha256=3zwJ4F2gVe9lTHU4b_d7KJ42x8OpAVxhXw4jG-T1TQk,1778
1
+ deltacat/__init__.py,sha256=z6zdRpLnxm9AOnjLtJBmkciFK82KnMkPjmtjy85AttM,1778
2
2
  deltacat/constants.py,sha256=_6oRI-3yp5c8J1qKGQZrt89I9-ttT_gSSvVsJ0h8Duc,1939
3
- deltacat/exceptions.py,sha256=q9HVyYLZc98c9TofAuD4SWCxPqV8F6F9gpczBUNCJWo,12672
3
+ deltacat/exceptions.py,sha256=yWM4RXK7uRrQc1VgJv6Lv2UiNZWAx2wolLq7cBwjlkg,12770
4
4
  deltacat/logs.py,sha256=6g16VkEFidbaMjgenAjggE1r2l664drMVhreRs8B1IQ,8438
5
5
  deltacat/aws/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  deltacat/aws/clients.py,sha256=VgddlV3AEjlBGIFmhhHxokYzwJ-lXnmHAeprVyADduI,6948
@@ -74,7 +74,7 @@ deltacat/compute/compactor_v2/utils/dedupe.py,sha256=62tFCY2iRP7I3-45GCIYs6_SJsQ
74
74
  deltacat/compute/compactor_v2/utils/delta.py,sha256=8hjkDeIIkSX-gAQ2utQSp2sZcO2tWZHMTxpFusZwBHw,3635
75
75
  deltacat/compute/compactor_v2/utils/io.py,sha256=autXlE3uHICdCCuJoS7mfdeJbRRiz2_xlz-3izlccB4,5264
76
76
  deltacat/compute/compactor_v2/utils/merge.py,sha256=7UHxm71iJ1dgRoz8v73CqoeylNzO36t90OJsVVBDFxk,5312
77
- deltacat/compute/compactor_v2/utils/primary_key_index.py,sha256=qE1s65HWlcWmvYyXAZm7R1h88M2Min9gp4rUgpfS3-A,11594
77
+ deltacat/compute/compactor_v2/utils/primary_key_index.py,sha256=ghyIifjXtqXgi8lN3lfnVQ2vi8uk_ny0FE7hsQlLjRQ,11538
78
78
  deltacat/compute/compactor_v2/utils/task_options.py,sha256=XFvZ_8mCq3cDnFlopFG84IahcYEddilZDmU1PkKq-zg,14067
79
79
  deltacat/compute/merge_on_read/__init__.py,sha256=ckbgngmqPjYBYz_NySsR1vNTOb_hNpeL1sYkZKvBI9M,214
80
80
  deltacat/compute/merge_on_read/daft.py,sha256=1oC38u5ig_aTrq7EzyWBo8Ui54rb6yERYMk-vEFbpxM,1400
@@ -158,7 +158,7 @@ deltacat/tests/compute/compactor/steps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JC
158
158
  deltacat/tests/compute/compactor/steps/test_repartition.py,sha256=0uRguPEKeLSYs746Jv8io-HZMWdyXNcOMBu8GO2mA0M,9305
159
159
  deltacat/tests/compute/compactor/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
160
160
  deltacat/tests/compute/compactor/utils/test_io.py,sha256=st5mlU4cVU-eQl7B4mvPgNA3izuNwbVawYOp-NcoyrI,4326
161
- deltacat/tests/compute/compactor/utils/test_round_completion_file.py,sha256=9c-EnE5zpToFKJl2djtEEDErUZVIhbEJXkg3hVdR_ps,6758
161
+ deltacat/tests/compute/compactor/utils/test_round_completion_file.py,sha256=LAQ4usiRF4oTx4cA85L0eOcBa_Z-febc-CuzUijSGrI,7439
162
162
  deltacat/tests/compute/compactor_v2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
163
163
  deltacat/tests/compute/compactor_v2/test_compaction_session.py,sha256=2wIXQW0Jm_FtWB5EviUR6Uk2ddVCJKs-CYGKE1xSPu4,9617
164
164
  deltacat/tests/compute/compactor_v2/test_hashlib.py,sha256=8csF2hFWtBvY2MbX3-6iphCsVXxRp0zP1NTnKhfdmkg,328
@@ -216,8 +216,8 @@ deltacat/utils/ray_utils/concurrency.py,sha256=JDVwMiQWrmuSlyCWAoiq9ctoJ0XADEfDD
216
216
  deltacat/utils/ray_utils/dataset.py,sha256=waHdtH0c835a-2t51HYRHnulfC0_zBxx8mFSAPvPSPM,3274
217
217
  deltacat/utils/ray_utils/performance.py,sha256=d7JFM7vTXHzkGx9qNQcZzUWajnqINvYRwaM088_FpsE,464
218
218
  deltacat/utils/ray_utils/runtime.py,sha256=rB0A-tU9WZHz0J11LzJdANYtL397YyuemcA1l-K9dAw,5029
219
- deltacat-1.1.10.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
220
- deltacat-1.1.10.dist-info/METADATA,sha256=nh4dJ-kcwCy3ZNso0NtMlAZcABxtLZtp8CYbZpz_x00,1757
221
- deltacat-1.1.10.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
222
- deltacat-1.1.10.dist-info/top_level.txt,sha256=RWdIcid4Bv2i2ozLVh-70kJpyB61xEKXod9XXGpiono,9
223
- deltacat-1.1.10.dist-info/RECORD,,
219
+ deltacat-1.1.11.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
220
+ deltacat-1.1.11.dist-info/METADATA,sha256=60wuPvw4-9iEcp9v1Bz0b4fpEwSGfgjYQ_0YGMaVuVo,1757
221
+ deltacat-1.1.11.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
222
+ deltacat-1.1.11.dist-info/top_level.txt,sha256=RWdIcid4Bv2i2ozLVh-70kJpyB61xEKXod9XXGpiono,9
223
+ deltacat-1.1.11.dist-info/RECORD,,