Commit f63ca2a 1 parent 74090dd commit f63ca2a Copy full SHA for f63ca2a
File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -2439,9 +2439,11 @@ def merge_per_chunk_storage(
2439
2439
run_id : str ,
2440
2440
target : str ,
2441
2441
per_chunked_dependency : str ,
2442
- rechunk = True ,
2443
2442
chunk_number_group : ty .Optional [ty .List [ty .List [int ]]] = None ,
2443
+ rechunk = True ,
2444
+ rechunk_to_mb : int = strax .DEFAULT_CHUNK_SIZE_MB ,
2444
2445
target_frontend_id : ty .Optional [int ] = None ,
2446
+ target_compressor : ty .Optional [str ] = None ,
2445
2447
check_is_stored : bool = True ,
2446
2448
):
2447
2449
"""Merge the per-chunked data from the per-chunked dependency into the target storage."""
@@ -2496,6 +2498,16 @@ def wrapped_loader():
2496
2498
s_be = source_sf ._get_backend (s_be_str )
2497
2499
md = s_be .get_metadata (s_be_key )
2498
2500
2501
+ if target_compressor is not None :
2502
+ self .log .info (f'Changing compressor { md ["compressor" ]} -> { target_compressor } .' )
2503
+ md .update ({"compressor" : target_compressor })
2504
+
2505
+ if rechunk and md ["chunk_target_size_mb" ] != rechunk_to_mb :
2506
+ self .log .info (
2507
+ f'Changing chunk-size: { md ["chunk_target_size_mb" ]} -> { rechunk_to_mb } .'
2508
+ )
2509
+ md .update ({"chunk_target_size_mb" : rechunk_to_mb })
2510
+
2499
2511
loader = s_be .loader (s_be_key )
2500
2512
try :
2501
2513
while True :
You can’t perform that action at this time.
0 commit comments