Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions crates/paimon/src/spec/core_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -578,10 +578,10 @@ impl<'a> CoreOptions<'a> {

/// Maximum number of concurrent tasks for global-index I/O, mirroring Java
/// `CoreOptions.GLOBAL_INDEX_THREAD_NUM` (key `global-index.thread-num`,
/// default 32). Used as the fan-out limit for the primary-key vector search
/// (per-bucket and per-exact-file). A value of `1` reproduces strict
/// sequential execution. A non-positive value is a misconfiguration and fails
/// loud rather than being silently clamped.
/// default 32). Used as the per-operation fan-out limit for sorted BTree and
/// bitmap shard reads and for primary-key vector search. A value of `1`
/// reproduces strict sequential execution. A non-positive value is a
/// misconfiguration and fails loud rather than being silently clamped.
pub fn global_index_thread_num(&self) -> crate::Result<usize> {
let value = self
.parse_i64_option(GLOBAL_INDEX_THREAD_NUM_OPTION)?
Expand Down
2 changes: 2 additions & 0 deletions crates/paimon/src/table/btree_global_index_build_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1231,6 +1231,7 @@ mod tests {
predicates: &[predicate],
schema_fields: table.schema().fields(),
search_mode: GlobalIndexSearchMode::Fast,
global_index_thread_num: 32,
btree_fallback_scan_max_size: i64::MAX,
bitmap_fallback_scan_max_size: i64::MAX,
next_row_id: snapshot.next_row_id(),
Expand Down Expand Up @@ -1332,6 +1333,7 @@ mod tests {
predicates: &[predicate],
schema_fields: table.schema().fields(),
search_mode: GlobalIndexSearchMode::Fast,
global_index_thread_num: 32,
btree_fallback_scan_max_size: i64::MAX,
bitmap_fallback_scan_max_size: i64::MAX,
next_row_id: snapshot.next_row_id(),
Expand Down
Loading