@@ -8,8 +8,9 @@ using Arrow
88 # Test runtime initialization - this should work
99 @test_nowarn init_runtime ()
1010
11- # Test that we can initialize multiple times safely
12- @test_nowarn init_runtime ()
11+ # Test that we can initialize multiple times safely. But a new static config
12+ # wouldn't take effect, would silently ignore the config.
13+ @test_nowarn init_runtime (StaticConfig (1 ))
1314
1415 println (" ✅ Runtime initialization successful" )
1516end
397398 @test scan3. ptr != C_NULL
398399 println (" ✅ Incremental scan created with nothing for both snapshot IDs" )
399400
401+ RustyIceberg. with_manifest_file_concurrency_limit! (scan3, UInt (2 ))
402+ RustyIceberg. with_manifest_entry_concurrency_limit! (scan3, UInt (256 ))
403+ RustyIceberg. with_data_file_concurrency_limit! (scan3, UInt (1024 ))
404+ RustyIceberg. with_batch_size! (scan3, UInt (50 ))
405+
400406 inserts_stream3, deletes_stream3 = RustyIceberg. scan! (scan3)
401407 @test inserts_stream3 != C_NULL
402408 @test deletes_stream3 != C_NULL
671677 end
672678 end
673679
680+ @testset " with_manifest_file_concurrency_limit! - Full Scan" begin
681+ table = RustyIceberg. table_open (customer_path)
682+ scan = RustyIceberg. new_scan (table)
683+
684+ # Set concurrency limit (should not error)
685+ @test_nowarn RustyIceberg. with_manifest_file_concurrency_limit! (scan, UInt (4 ))
686+ stream = RustyIceberg. scan! (scan)
687+
688+ try
689+ batch_ptr = RustyIceberg. next_batch (stream)
690+ while batch_ptr != C_NULL
691+ RustyIceberg. free_batch (batch_ptr)
692+ batch_ptr = RustyIceberg. next_batch (stream)
693+ end
694+ println (" ✅ with_manifest_file_concurrency_limit! test passed for full scan" )
695+ finally
696+ RustyIceberg. free_stream (stream)
697+ RustyIceberg. free_scan! (scan)
698+ RustyIceberg. free_table (table)
699+ end
700+ end
701+
674702 @testset " with_manifest_entry_concurrency_limit! - Incremental Scan" begin
675703 table = RustyIceberg. table_open (incremental_path)
676704 scan = new_incremental_scan (table, from_snapshot_id, to_snapshot_id)
736764 RustyIceberg. select_columns! (scan, [" n" ])
737765 RustyIceberg. with_batch_size! (scan, UInt (5 ))
738766 RustyIceberg. with_data_file_concurrency_limit! (scan, UInt (2 ))
767+ RustyIceberg. with_manifest_file_concurrency_limit! (scan, UInt (2 ))
739768 RustyIceberg. with_manifest_entry_concurrency_limit! (scan, UInt (2 ))
740769
741770 inserts_stream, deletes_stream = RustyIceberg. scan! (scan)
0 commit comments