> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# FE Configuration - Statistics and Storage

> FE configuration parameters for statistics collection and storage settings.

***

***

FE parameters are classified into dynamic parameters and static parameters.

* Dynamic parameters can be configured and adjusted by running SQL commands, which is very convenient. But the configurations become invalid if you restart your FE. Therefore, we recommend that you also modify the configuration items in the **fe.conf** file to prevent the loss of modifications.

* Static parameters can only be configured and adjusted in the FE configuration file **fe.conf**. **After you modify this file, you must restart your FE for the changes to take effect.**

Whether a parameter is a dynamic parameter is indicated by the `IsMutable` column in the output of [ADMIN SHOW CONFIG](/documents/4.2/sql-reference/sql-statements/cluster-management/config_vars/ADMIN_SHOW_CONFIG.md). `TRUE` indicates a dynamic parameter.

Note that both dynamic and static FE parameters can be configured in the **fe.conf** file.

## View FE configuration items

After your FE is started, you can run the ADMIN SHOW FRONTEND CONFIG command on your MySQL client to check the parameter configurations. If you want to query the configuration of a specific parameter, run the following command:

```SQL theme={null}
ADMIN SHOW FRONTEND CONFIG [LIKE "pattern"];
```

For detailed description of the returned fields, see [`ADMIN SHOW CONFIG`](/documents/4.2/sql-reference/sql-statements/cluster-management/config_vars/ADMIN_SHOW_CONFIG).

**Note**

You must have administrator privileges to run cluster administration-related commands.

## Configure FE parameters

### Configure FE dynamic parameters

You can configure or modify the settings of FE dynamic parameters using [`ADMIN SET FRONTEND CONFIG`](/documents/4.2/sql-reference/sql-statements/cluster-management/config_vars/ADMIN_SET_CONFIG).

```SQL theme={null}
ADMIN SET FRONTEND CONFIG ("key" = "value");
```

***

***

**Note**

The configuration changes made with `ADMIN SET FRONTEND` will be restored to the default values in the `fe.conf` file after the FE restarts. Therefore, we recommend that you also modify the configuration items in `fe.conf` if you want the changes to be permanent.

### Configure FE static parameters

***

***

**Note**

Static parameters of an FE are set by changing them in the configuration file **fe.conf** and restarting the FE to allow the changes to take effect.

***

This topic introduces the following types of FE configurations:

* [Statistic report](#statistic-report)
* [Storage](#storage)

## Statistic report

### `enable_collect_warehouse_metrics`

* Default: true
* Type: Boolean
* Unit: -
* Is mutable: Yes
* Description: When this item is set to `true`, the system will collect and export per-warehouse metrics. Enabling it adds warehouse-level metrics (slot/usage/availability) to the metric output and increases metric cardinality and collection overhead. Disable it to omit warehouse-specific metrics and reduce CPU/network and monitoring storage cost.
* Introduced in: v3.5.0

### `enable_http_detail_metrics`

* Default: false
* Type: boolean
* Unit: -
* Is mutable: Yes
* Description: When true, the HTTP server computes and exposes detailed HTTP worker metrics (notably the `HTTP_WORKER_PENDING_TASKS_NUM` gauge). Enabling this causes the server to iterate over Netty worker executors and call `pendingTasks()` on each `NioEventLoop` to sum pending task counts; when disabled the gauge returns 0 to avoid that cost. This extra collection can be CPU- and latency-sensitive — enable only for debugging or detailed investigation.
* Introduced in: v3.2.3

### `proc_profile_collect_time_s`

* Default: 120
* Type: Int
* Unit: Seconds
* Is mutable: Yes
* Description: Duration in seconds for a single process profile collection. When `proc_profile_cpu_enable` or `proc_profile_mem_enable` is set to `true`, AsyncProfiler is started, the collector thread sleeps for this duration, then the profiler is stopped and the profile is written. Larger values increase sample coverage and file size but prolong profiler runtime and delay subsequent collections; smaller values reduce overhead but may produce insufficient samples. Ensure this value aligns with retention settings such as `proc_profile_file_retained_days` and `proc_profile_file_retained_size_bytes`.
* Introduced in: v3.2.12

### `low_cardinality_dict_cache_max_bytes`

* Default: 1073741824
* Type: Long
* Unit: Bytes
* Is mutable: Yes
* Description: Maximum total size (in bytes) of the low-cardinality global dictionary cache (`CacheDictManager`). The cache is bounded by the combined byte size of its cached dictionaries rather than by entry count, so its memory footprint is bounded directly (each dictionary can be up to \~1 MB). When the limit is reached the least-valuable dictionaries are evicted, and affected columns fall back to non-dictionary query plans until re-collected. Changes apply to the live cache within one config-refresh cycle. The current tracked size is exported via the `low_cardinality_dict_cache_bytes` metric.
* Introduced in: v4.1.0

### `enable_dict_thrash_guard`

* Default: true
* Type: Boolean
* Unit: -
* Is mutable: Yes
* Description: Whether to enable the global-dictionary thrash guard. A "rolling" low-cardinality column—whose instantaneous distinct value count stays below the dictionary threshold but whose value set keeps rotating (for example, a daily-partitioned column that is reloaded with fresh values)—never trips the cardinality blacklist, yet every load introduces values missing from the current global dictionary and invalidates it. Each invalidation forces a full-table dictionary re-collection, which wastes IO and, in shared-data clusters, contends heavily on the segment metadata cache lock. When this guard is enabled, the database counts how often each column's dictionary is invalidated within `dict_thrash_guard_window_sec`; once a column reaches `dict_thrash_guard_threshold` invalidations, the database forbids collecting that column's global dictionary. The forbid takes effect immediately and is persisted as the table's `no_dict_columns` property, so it survives FE restart and leader failover. To re-enable dictionary collection for a column, run `ALTER TABLE ... ENABLE DICTIONARY (column)`.
* Introduced in: v4.2.0

### `dict_thrash_guard_window_sec`

* Default: 60
* Type: Int
* Unit: Seconds
* Is mutable: Yes
* Description: The length of the time window (in seconds) over which the global-dictionary thrash guard counts how often a column's dictionary is invalidated. This parameter takes effect only when `enable_dict_thrash_guard` is set to `true`.
* Introduced in: v4.2.0

### `dict_thrash_guard_threshold`

* Default: 5
* Type: Int
* Unit: -
* Is mutable: Yes
* Description: The number of dictionary invalidations within `dict_thrash_guard_window_sec` at which the global-dictionary thrash guard forbids collecting a column's global dictionary. Set to `0` to disable the count check while keeping the guard enabled (no column is automatically forbidden). This parameter takes effect only when `enable_dict_thrash_guard` is set to `true`.
* Introduced in: v4.2.0

### `min_max_stats_collect_interval_sec`

* Default: 60
* Type: Int
* Unit: Seconds
* Is mutable: Yes
* Description: Minimum interval between two min/max statistics collections for the same column. Min/max stats (used to constant-fold `min()`/`max()` and to build compressed group-by keys) are collected on demand via a `[_META_]` MetaScan that reads every segment's zone-map metadata; without throttling a frequently loaded column re-scans on every load, contending on the segment metadata cache the same way global-dictionary re-collection does. Within the interval the min/max optimization is skipped rather than re-collected -- a stale value is never served, so this only affects the optimization, never correctness. Set to `0` to disable throttling.
* Introduced in: v4.0.17, v4.1.7

### `min_max_stats_collect_max_tablets`

* Default: 100000
* Type: Int
* Unit: -
* Is mutable: Yes
* Description: Maximum number of tablets a table can have for its min/max statistics to be collected. The `[_META_]` MetaScan that collects min/max stats always reads the whole table, so its planning (tablet locations, scan ranges) and execution cost grow with the tablet count. For a table with more tablets than this value, min/max stats are not collected, and the optimizations that depend on them (constant-folding `min()`/`max()`, compressed group-by keys) are skipped for that table; values already cached for the table's current data version are still used. A skip is not cached, so a raised or disabled limit takes effect on the next collection allowed by `min_max_stats_collect_interval_sec`. This only affects the optimizations, never correctness. Set to `0` or a negative value to disable the limit.
* Introduced in: v4.0.17, v4.1.7

### `enable_external_predicate_columns_collection`

* Default: true
* Type: Boolean
* Unit: -
* Is mutable: Yes
* Description: Whether to record predicate column usage (columns used in WHERE/JOIN/GROUP BY) for external (non-native) tables during query optimization. The database uses this usage information to narrow down which columns ANALYZE collects statistics for on wide external tables. When disabled, external table predicate columns are not recorded, and ANALYZE falls back to collecting statistics for all columns.
* Introduced in: v4.2.0

### `statistic_external_predicate_columns_ttl_hours`

* Default: 168
* Type: Long
* Unit: Hours
* Is mutable: Yes
* Description: The time-to-live (TTL) of recorded external table predicate column usage. Entries whose `last_used` timestamp is older than this value are removed by the periodic vacuum job. Set to a negative value (e.g. -1) to disable vacuum. Defaults to a week because external table ANALYZE runs far less frequently than for internal tables, so a short TTL (matching the internal table's 24-hour default) would evict usage information between two collections.
* Introduced in: v4.2.0

### `statistic_external_predicate_columns_cache_ttl_sec`

* Default: 300
* Type: Long
* Unit: Seconds
* Is mutable: Yes
* Description: The TTL of the in-memory cache that serves external table predicate column queries (for example, during automatic ANALYZE column selection). A shorter value makes newly recorded usage visible sooner but increases the query load on the underlying storage table; a longer value reduces that load at the cost of staleness.
* Introduced in: v4.2.0

### `enable_temporary_table_statistic_collect`

* Default: true
* Type: Boolean
* Unit: -
* Is mutable: Yes
* Description: Whether analyze jobs collect statistics for temporary tables. It applies to the collection jobs built from analyze job definitions, that is, the automatic analyze jobs and the jobs created with CREATE ANALYZE. When this item is set to `false`, temporary tables are skipped while those jobs are built, and only non-temporary tables are analyzed. A one-off `ANALYZE TABLE` statement is not affected and still collects statistics for a temporary table. Set it to `false` when short-lived temporary tables generate collection work whose cost outweighs the value of their statistics.
* Introduced in: v3.4.0

## Storage

### `allow_implicit_key_column_in_agg_add_column`

* Default: false
* Type: Boolean
* Unit: -
* Is mutable: Yes
* Description: Whether `ALTER TABLE ... ADD COLUMN` on an Aggregate table may create a key column when the new column specifies neither an aggregate function nor the `KEY` keyword. Such a statement is ambiguous, and creating a key column changes the table's aggregation key and rewrites existing data. When set to `false`, the statement is rejected and the error names both options. Set to `true` to restore the earlier behavior, where the column is created as a key column. This item is mutable but is not persisted across a restart unless it is set with `WITH PERSISTENT`.
* Introduced in: v4.2.0

### `alter_table_timeout_second`

* Default: 86400
* Type: Int
* Unit: Seconds
* Is mutable: Yes
* Description: The timeout duration for the schema change operation (ALTER TABLE).
* Introduced in: -

### `enable_concurrent_add_partition_during_alter`

* Default: true
* Type: Boolean
* Unit: -
* Is mutable: Yes
* Description: When `true`, partition creation (manual `ALTER TABLE ... ADD PARTITION`, automatic creation during loading, and the dynamic partition scheduler) is allowed to proceed concurrently with metadata-only alter operations that are provably safe — currently the shared-data ADD/DROP INDEX fast-path jobs and the transient `UPDATING_META` state of fast schema evolution — instead of rejecting the DDL or cancelling the alter job. Set to `false` to restore the legacy exclusive behavior. This setting only relaxes partition creation; all other alter jobs and all non-`ADD PARTITION` DDL keep the legacy state checks.
* Introduced in: -

### `capacity_used_percent_high_water`

* Default: 0.75
* Type: double
* Unit: Fraction (0.0–1.0)
* Is mutable: Yes
* Description: The high-water threshold of disk capacity used percent (fraction of total capacity) used when computing backend load scores. `BackendLoadStatistic.calcSore` uses `capacity_used_percent_high_water` to set `LoadScore.capacityCoefficient`: if a backend's used percent less than 0.5 the coefficient equal to 0.5; if used percent `>` `capacity_used_percent_high_water` the coefficient = 1.0; otherwise the coefficient transitions linearly with used percent via (2 \* usedPercent - 0.5). When the coefficient is 1.0, the load score is driven entirely by capacity proportion; lower values increase the weight of replica count. Adjusting this value changes how aggressively the balancer penalizes backends with high disk utilization.
* Introduced in: v3.2.0

### `catalog_trash_expire_second`

* Default: 86400
* Type: Long
* Unit: Seconds
* Is mutable: Yes
* Description: The longest duration the metadata can be retained after a database, table, or partition is dropped. If this duration expires, the data will be deleted and cannot be recovered through the RECOVER command.
* Introduced in: -

### `catalog_recycle_bin_erase_min_latency_ms`

* Default: 600000
* Type: Long
* Unit: Milliseconds
* Is mutable: Yes
* Description: The minimum delay in milliseconds before the metadata is erased when a database, table, or partition is dropped. This avoids the erase log being written ahead of the drop log.
* Introduced in: -

### `catalog_recycle_bin_erase_max_operations_per_cycle`

* Default: 500
* Type: Int
* Unit: -
* Is mutable: Yes
* Description: The maximum number of erase operations per cycle for actually deleting databases, tables, or partitions from the recycle bin. The erase operation holds a lock, so one batch should not be too large.
* Introduced in: -

### `catalog_recycle_bin_erase_fail_retry_interval_ms`

* Default: 60000
* Type: Long
* Unit: Milliseconds
* Is mutable: Yes
* Description: The retry interval in milliseconds when an erase operation in the recycle bin fails.
* Introduced in: -

### `check_consistency_default_timeout_second`

* Default: 600
* Type: Long
* Unit: Seconds
* Is mutable: Yes
* Description: The timeout duration for a replica consistency check. You can set this parameter based on the size of your tablet.
* Introduced in: -

### `consistency_check_cooldown_time_second`

* Default: 24 \* 3600
* Type: Int
* Unit: Seconds
* Is mutable: Yes
* Description: Controls the minimal interval (in seconds) required between consistency checks of the same tablet. During tablet selection, a tablet is considered eligible only if `tablet.getLastCheckTime()` is less than `(currentTimeMillis - consistency_check_cooldown_time_second * 1000)`. The default value (24 \* 3600) enforces roughly one check per tablet per day to reduce backend disk I/O. Lowering this value increases check frequency and resource usage; raising it reduces I/O at the cost of slower detection of inconsistencies. The value is applied globally when filtering cooldowned tablets from an index's tablet list.
* Introduced in: v3.5.5

### `consistency_check_end_time`

* Default: "4"
* Type: String
* Unit: Hour of day (0-23)
* Is mutable: No
* Description: Specifies the end hour (hour-of-day) of the ConsistencyChecker work window. The value is parsed with SimpleDateFormat("HH") in the system time zone and accepted as 0–23 (single or two-digit). The database uses it with `consistency_check_start_time` to decide when to schedule and add consistency-check jobs. When `consistency_check_start_time` is greater than `consistency_check_end_time`, the window spans midnight (for example, default is `consistency_check_start_time` = "23" to `consistency_check_end_time` = "4"). When `consistency_check_start_time` is equal to `consistency_check_end_time`, the checker never runs. Parsing failure will cause FE startup to log an error and exit, so provide a valid hour string.
* Introduced in: v3.2.0

### `consistency_check_start_time`

* Default: "23"
* Type: String
* Unit: Hour of day (00-23)
* Is mutable: No
* Description: Specifies the start hour (hour-of-day) of the ConsistencyChecker work window. The value is parsed with SimpleDateFormat("HH") in the system time zone and accepted as 0–23 (single or two-digit). The database uses it with `consistency_check_end_time` to decide when to schedule and add consistency-check jobs. When `consistency_check_start_time` is greater than `consistency_check_end_time`, the window spans midnight (for example, default is `consistency_check_start_time` = "23" to `consistency_check_end_time` = "4"). When `consistency_check_start_time` is equal to `consistency_check_end_time`, the checker never runs. Parsing failure will cause FE startup to log an error and exit, so provide a valid hour string.
* Introduced in: v3.2.0

### `consistency_tablet_meta_check_interval_ms`

* Default: 2 \* 3600 \* 1000
* Type: Int
* Unit: Milliseconds
* Is mutable: Yes
* Description: Interval used by the ConsistencyChecker to run a full tablet-meta consistency scan between `TabletInvertedIndex` and `LocalMetastore`. The daemon in `runAfterCatalogReady` triggers checkTabletMetaConsistency when `current time - lastTabletMetaCheckTime` exceeds this value. When an invalid tablet is first detected, its `toBeCleanedTime` is set to `now + (consistency_tablet_meta_check_interval_ms / 2)` so actual deletion is delayed until a subsequent scan. Increase this value to reduce scan frequency and load (slower cleanup); decrease it to detect and remove stale tablets faster (higher overhead).
* Introduced in: v3.2.0

### `default_replication_num`

* Default: 3
* Type: Short
* Unit: -
* Is mutable: Yes
* Description: Sets the default number of replicas for each data partition when creating a table in the database. This setting can be overridden when creating a table by specifying `replication_num=x` in the CREATE TABLE DDL.
* Introduced in: -

### `enable_auto_tablet_distribution`

* Default: true
* Type: Boolean
* Unit: -
* Is mutable: Yes
* Description: Whether to automatically set the number of buckets.
  * If this parameter is set to `TRUE`, you don't need to specify the number of buckets when you create a table or add a partition. The database automatically determines the number of buckets.
  * If this parameter is set to `FALSE`, you need to manually specify the number of buckets when you create a table or add a partition. If you do not specify the bucket count when adding a new partition to a table, the new partition inherits the bucket count set at the creation of the table. However, you can also manually specify the number of buckets for the new partition.
* Introduced in: v2.5.7

### `enable_experimental_rowstore`

* Default: false
* Type: Boolean
* Unit: -
* Is mutable: Yes
* Description: Whether to enable the hybrid row-column storage feature.
* Introduced in: v3.2.3

### `enable_fast_schema_evolution`

* Default: true
* Type: Boolean
* Unit: -
* Is mutable: Yes
* Description: Whether to enable Fast Schema Evolution for all tables within the cluster. Valid values are `TRUE` and `FALSE` (default). Enabling Fast Schema Evolution can increase the speed of schema changes and reduce resource usage when columns are added or dropped.
* Introduced in: v3.2.0

> **NOTE**
>
> * the database shared-data clusters supports this parameter from v3.3.0.
> * If you need to configure the Fast Schema Evolution for a specific table, such as disabling Fast Schema Evolution for a specific table, you can set the table property `fast_schema_evolution` at table creation.

### `enable_online_optimize_table`

* Default: false
* Type: Boolean
* Unit: -
* Is mutable: Yes
* Description: Controls whether the database will use the non-blocking online optimization path when creating an optimize job. When `enable_online_optimize_table` is true and the target table meets compatibility checks (no partition/keys/sort specification, distribution is not `RandomDistributionDesc`, storage type is not `COLUMN_WITH_ROW`, replicated storage enabled, and the table is not a cloud-native table or materialized view), the planner creates an `OnlineOptimizeJobV2` to perform optimization without blocking writes. If false or any compatibility condition fails, the database falls back to `OptimizeJobV2`, which may block write operations during optimization.
* Introduced in: v3.3.3, v3.4.0, v3.5.0

### `enable_strict_storage_medium_check`

* Default: false
* Type: Boolean
* Unit: -
* Is mutable: Yes
* Description: Whether the FE strictly checks the storage medium of BEs when users create tables. If this parameter is set to `TRUE`, the FE checks the storage medium of BEs when users create tables and returns an error if the storage medium of the BE is different from the `storage_medium` parameter specified in the CREATE TABLE statement. For example, the storage medium specified in the CREATE TABLE statement is SSD but the actual storage medium of BEs is HDD. As a result, the table creation fails. If this parameter is `FALSE`, the FE does not check the storage medium of BEs when users create a table.
* Introduced in: -

### `max_bucket_number_per_partition`

* Default: 1024
* Type: Int
* Unit: -
* Is mutable: Yes
* Description: The maximum number of buckets can be created in a partition.
* Introduced in: v3.3.2

### `max_column_number_per_table`

* Default: 10000
* Type: Int
* Unit: -
* Is mutable: Yes
* Description: The maximum number of columns can be created in a table.
* Introduced in: v3.3.2

### `max_dynamic_partition_num`

* Default: 500
* Type: Int
* Unit: -
* Is mutable: Yes
* Description: Limits the maximum number of partitions that can be created at once when analyzing or creating a dynamic-partitioned table. During dynamic partition property validation, the `systemtask_runs_max_history_number` computes expected partitions (end offset + history partition number) and throws a DDL error if that total exceeds `max_dynamic_partition_num`. Raise this value only when you expect legitimately large partition ranges; increasing it allows more partitions to be created but can increase metadata size, scheduling work, and operational complexity.
* Introduced in: v3.2.0

### `max_partition_number_per_table`

* Default: 100000
* Type: Int
* Unit: -
* Is mutable: Yes
* Description: The maximum number of partitions can be created in a table.
* Introduced in: v3.3.2

### `max_task_consecutive_fail_count`

* Default: 10
* Type: Int
* Unit: -
* Is mutable: Yes
* Description: Maximum number of consecutive failures a task may have before the scheduler automatically suspends it. When `TaskSource.MV.equals(task.getSource())` and `max_task_consecutive_fail_count` are greater than 0, if a task's consecutive failure counter reaches or exceeds `max_task_consecutive_fail_count`, the task is suspended via the TaskManager and, for materialized-view tasks, the materialized view is inactivated. An exception is thrown indicating suspension and how to reactivate (for example, `ALTER MATERIALIZED VIEW <mv_name> ACTIVE`). Set this item to 0 or a negative value to disable automatic suspension.
* Introduced in: -

### `partition_recycle_retention_period_secs`

* Default: 1800
* Type: Long
* Unit: Seconds
* Is mutable: Yes
* Description: The metadata retention time for the partition that is dropped by INSERT OVERWRITE, materialized view refresh operations, or partition TTL (`partition_live_number`, `partition_ttl`, or `partition_retention_condition`). Note that such metadata cannot be recovered by executing RECOVER.
* Introduced in: v3.5.9

### `recover_with_empty_tablet`

* Default: false
* Type: Boolean
* Unit: -
* Is mutable: Yes
* Description: Whether to replace a lost or corrupted tablet replica with an empty one. If a tablet replica is lost or corrupted, data queries on this tablet or other healthy tablets may fail. Replacing the lost or corrupted tablet replica with an empty tablet ensures that the query can still be executed. However, the result may be incorrect because data is lost. The default value is `FALSE`, which means lost or corrupted tablet replicas are not replaced with empty ones, and the query fails.
* Introduced in: -

### `storage_usage_hard_limit_percent`

* Default: 95
* Alias: `storage_flood_stage_usage_percent`
* Type: Int
* Unit: -
* Is mutable: Yes
* Description: Hard limit of the storage usage percentage in a BE directory. If the storage usage (in percentage) of the BE storage directory exceeds this value and the remaining storage space is less than `storage_usage_hard_limit_reserve_bytes`, Load and Restore jobs are rejected. You need to set this item together with the BE configuration item `storage_flood_stage_usage_percent` to allow the configurations to take effect.
* Introduced in: -

### `storage_usage_hard_limit_reserve_bytes`

* Default: 100 \* 1024 \* 1024 \* 1024
* Alias: `storage_flood_stage_left_capacity_bytes`
* Type: Long
* Unit: Bytes
* Is mutable: Yes
* Description: Hard limit of the remaining storage space in a BE directory. If the remaining storage space in the BE storage directory is less than this value and the storage usage (in percentage) exceeds `storage_usage_hard_limit_percent`, Load and Restore jobs are rejected. You need to set this item together with the BE configuration item `storage_flood_stage_left_capacity_bytes` to allow the configurations to take effect.
* Introduced in: -

### `storage_usage_soft_limit_percent`

* Default: 90
* Alias: `storage_high_watermark_usage_percent`
* Type: Int
* Unit: -
* Is mutable: Yes
* Description: Soft limit of the storage usage percentage in a BE directory. If the storage usage (in percentage) of the BE storage directory exceeds this value and the remaining storage space is less than `storage_usage_soft_limit_reserve_bytes`, tablets cannot be cloned into this directory.
* Introduced in: -

### `storage_usage_soft_limit_reserve_bytes`

* Default: 200 \* 1024 \* 1024 \* 1024
* Alias: `storage_min_left_capacity_bytes`
* Type: Long
* Unit: Bytes
* Is mutable: Yes
* Description: Soft limit of the remaining storage space in a BE directory. If the remaining storage space in the BE storage directory is less than this value and the storage usage (in percentage) exceeds `storage_usage_soft_limit_percent`, tablets cannot be cloned into this directory.
* Introduced in: -

### `tablet_checker_lock_time_per_cycle_ms`

* Default: 1000
* Type: Int
* Unit: Milliseconds
* Is mutable: Yes
* Description: The maximum lock hold time per cycle for tablet checker before releasing and reacquiring the table lock. Values less than 100 will be treated as 100.
* Introduced in: v3.5.9, v4.0.2

### `tablet_create_timeout_second`

* Default: 10
* Type: Int
* Unit: Seconds
* Is mutable: Yes
* Description: The timeout duration for creating a tablet. The default value is changed from 1 to 10 from v3.1 onwards.
* Introduced in: -

### `tablet_delete_timeout_second`

* Default: 2
* Type: Int
* Unit: Seconds
* Is mutable: Yes
* Description: The timeout duration for deleting a tablet.
* Introduced in: -

### `tablet_sched_balance_load_disk_safe_threshold`

* Default: 0.5
* Alias: `balance_load_disk_safe_threshold`
* Type: Double
* Unit: -
* Is mutable: Yes
* Description: The percentage threshold for determining whether the disk usage of BEs is balanced. If the disk usage of all BEs is lower than this value, it is considered balanced. If the disk usage is greater than this value and the difference between the highest and lowest BE disk usage is greater than 10%, the disk usage is considered unbalanced and a tablet re-balancing is triggered.
* Introduced in: -

### `tablet_sched_balance_load_score_threshold`

* Default: 0.1
* Alias: `balance_load_score_threshold`
* Type: Double
* Unit: -
* Is mutable: Yes
* Description: The percentage threshold for determining whether the load of a BE is balanced. If a BE has a lower load than the average load of all BEs and the difference is greater than this value, this BE is in a low load state. On the contrary, if a BE has a higher load than the average load and the difference is greater than this value, this BE is in a high load state.
* Introduced in: -

### `tablet_sched_be_down_tolerate_time_s`

* Default: 900
* Type: Long
* Unit: Seconds
* Is mutable: Yes
* Description: The maximum duration the scheduler allows for a BE node to remain inactive. After the time threshold is reached, tablets on that BE node will be migrated to other active BE nodes.
* Introduced in: v2.5.7

### `tablet_sched_disable_balance`

* Default: false
* Alias: `disable_balance`
* Type: Boolean
* Unit: -
* Is mutable: Yes
* Description: Whether to disable tablet balancing. `TRUE` indicates that tablet balancing is disabled. `FALSE` indicates that tablet balancing is enabled.
* Introduced in: -

### `tablet_sched_disable_colocate_balance`

* Default: false
* Alias: `disable_colocate_balance`
* Type: Boolean
* Unit: -
* Is mutable: Yes
* Description: Whether to disable replica balancing for Colocate Table. `TRUE` indicates replica balancing is disabled. `FALSE` indicates replica balancing is enabled.
* Introduced in: -

### `tablet_sched_max_balancing_tablets`

* Default: 500
* Alias: `max_balancing_tablets`
* Type: Int
* Unit: -
* Is mutable: Yes
* Description: The maximum number of tablets that can be balanced at the same time. If this value is exceeded, tablet re-balancing will be skipped.
* Introduced in: -

### `tablet_sched_max_clone_task_timeout_sec`

* Default: 2 \* 60 \* 60
* Alias: `max_clone_task_timeout_sec`
* Type: Long
* Unit: Seconds
* Is mutable: Yes
* Description:The maximum timeout duration for cloning a tablet.
* Introduced in: -

### `tablet_sched_max_not_being_scheduled_interval_ms`

* Default: 15 \* 60 \* 1000
* Type: Long
* Unit: Milliseconds
* Is mutable: Yes
* Description: When the tablet clone tasks are being scheduled, if a tablet has not been scheduled for the specified time in this parameter, the database gives it a higher priority to schedule it as soon as possible.
* Introduced in: -

### `tablet_sched_max_scheduling_tablets`

* Default: 10000
* Alias: `max_scheduling_tablets`
* Type: Int
* Unit: -
* Is mutable: Yes
* Description: The maximum number of tablets that can be scheduled at the same time. If the value is exceeded, tablet balancing and repair checks will be skipped.
* Introduced in: -

### `tablet_sched_min_clone_task_timeout_sec`

* Default: 3 \* 60
* Alias: `min_clone_task_timeout_sec`
* Type: Long
* Unit: Seconds
* Is mutable: Yes
* Description: The minimum timeout duration for cloning a tablet.
* Introduced in: -

### `tablet_sched_num_based_balance_threshold_ratio`

* Default: 0.5
* Alias: -
* Type: Double
* Unit: -
* Is mutable: Yes
* Description: Doing num based balance may break the disk size balance, but the maximum gap between disks cannot exceed `tablet_sched_num_based_balance_threshold_ratio` \* `tablet_sched_balance_load_score_threshold`. If there are tablets in the cluster that are constantly balancing from A to B and B to A, reduce this value. If you want the tablet distribution to be more balanced, increase this value.
* Introduced in: - 3.1

### `tablet_sched_repair_delay_factor_second`

* Default: 60
* Alias: `tablet_repair_delay_factor_second`
* Type: Long
* Unit: Seconds
* Is mutable: Yes
* Description: The interval at which replicas are repaired, in seconds.
* Introduced in: -

### `tablet_sched_slot_num_per_path`

* Default: 8
* Alias: `schedule_slot_num_per_path`
* Type: Int
* Unit: -
* Is mutable: Yes
* Description: The maximum number of tablet-related tasks that can run concurrently in a BE storage directory. From v2.5 onwards, the default value of this parameter is changed from `4` to `8`.
* Introduced in: -

### `tablet_sched_storage_cooldown_second`

* Default: -1
* Alias: `storage_cooldown_second`
* Type: Long
* Unit: Seconds
* Is mutable: Yes
* Description: The latency of automatic cooling starting from the time of table creation. The default value `-1` specifies that automatic cooling is disabled. If you want to enable automatic cooling, set this parameter to a value greater than `-1`.
* Introduced in: -

### `tablet_stat_update_interval_second`

* Default: 300
* Type: Int
* Unit: Seconds
* Is mutable: Yes
* Description: The time interval at which the FE retrieves tablet statistics from each BE.
* Introduced in: -

### `enable_range_distribution`

* Default: true
* Type: Boolean
* Unit: -
* Is mutable: Yes
* Description: Whether to use the Range-based Distribution semantic as the default table distribution when a table is created without a `DISTRIBUTED BY` clause. This configuration only takes effect in shared-data mode; it has no effect in shared-nothing mode. Set it to `false` to disable this default, so such a table uses the previous default distribution behavior instead (a PRIMARY KEY table defaults to hash, a DUPLICATE KEY table to random, and an AGGREGATE or UNIQUE KEY table requires an explicit `DISTRIBUTED BY` clause). A materialized view created without a `DISTRIBUTED BY` clause additionally requires `enable_mv_range_distribution`.
* Introduced in: v4.1.0

### `enable_mv_range_distribution`

* Default: false
* Type: Boolean
* Unit: -
* Is mutable: Yes
* Description: Whether to use the Range-based Distribution semantic as the default distribution of an asynchronous materialized view that is created without a `DISTRIBUTED BY` clause. Tables are not affected by this configuration. The default selects the Range-based Distribution semantic only when this configuration and `enable_range_distribution` are both `true`, in shared-data mode. Otherwise the materialized view uses the previous default distribution behavior (a materialized view that is maintained incrementally defaults to hash over its key columns, and any other materialized view to random), even where a table would be range-distributed.
* Introduced in: v4.2.0

### `tablet_reshard_max_parallel_tablets`

* Default: 10240
* Type: Int
* Unit: -
* Is mutable: Yes
* Description: The maximum number of tablets that can be split or merged in parallel.
* Introduced in: v4.1.0

### `tablet_reshard_target_size`

* Default: 10737418240 (10 GB)
* Type: Int
* Unit: Bytes
* Is mutable: Yes
* Description: The target size of tablets after a SPLIT or MERGE operation. While this value is positive, a range-distributed table with the table property `tablet_reshard_target_size` uses that property in its place for automatic splitting and merging, for SPLIT and MERGE statements that do not specify a target size, for tablet pre-split, and for online range rewrites and rollups. `0` disables automatic size-based tablet splitting and merging for all tables, including tables with the table property. When a shared-data online range rewrite runs with this value set to `0`, it uses each latest base index's current tablet count as the requested count and recomputes boundaries in the new sort-key space instead of reusing the old boundaries. The actual count can be smaller if sampling cannot produce enough distinct boundaries.
* Introduced in: v4.1.0

### `tablet_reshard_max_split_count`

* Default: 1024
* Type: Int
* Unit: -
* Is mutable: Yes
* Description: The maximum number of new tablets that an old tablet can be split into.
* Introduced in: v4.1.0

### `tablet_reshard_orderby_max_split_count`

* Default: 2
* Type: Int
* Unit: -
* Is mutable: Yes
* Description: The maximum number of new tablets one source tablet may be split into when the split drags a full UNSHARE rewrite behind it, that is, on a range-distributed PRIMARY KEY table whose `ORDER BY` key differs from its primary key. Such a split cannot range-filter the parent's shared segments, so every child is rewritten wholesale and a wide fan-out multiplies that read amplification. Further clamped by `tablet_reshard_max_split_count`. Values less than or equal to `1` disable this extra clamp.
* Introduced in: -

### `tablet_reshard_orderby_max_split_tablets_per_job`

* Default: 0
* Type: Int
* Unit: -
* Is mutable: Yes
* Description: The maximum number of source tablets one split job may **split** when the split drags a full UNSHARE rewrite behind it. The largest tablets are chosen first. Note that this bounds the split fan-out, not the rewrite itself: every untouched sibling still becomes an identical tablet in the replacement index, and the UNSHARE compaction is partition-wide, so those are rewritten as well. Values less than or equal to `0` mean the compute-node count of the warehouse.
* Introduced in: -

### `tablet_reshard_orderby_split_interval_second`

* Default: 180
* Type: Int
* Unit: Second
* Is mutable: Yes
* Description: The quiet period after the previous tablet reshard job on a table finishes, before automatic splitting may trigger again, for tables whose split drags a full UNSHARE rewrite behind it. It gives size-tiered compaction a window to drain the small files that accumulated while the partition's compaction slot was held. Values less than or equal to `0` disable the wait. Note that the interval can only be enforced while the previous job is still retained, that is, up to `tablet_reshard_history_job_keep_max_ms`.
* Introduced in: -

### `tablet_reshard_min_split_size`

* Default: 2147483648 (2 GB)
* Type: Long
* Unit: Bytes
* Is mutable: Yes
* Description: The minimum size of a tablet produced by tablet pre-split. It bounds compute-node alignment during pre-split so that a small load on a large cluster is not split into many tiny tablets. It is also the smallest tablet automatic splitting produces while it widens an index: while a materialized index holds fewer tablets than its warehouse has compute nodes (capped by `tablet_reshard_max_split_count`) and less data than that many times the table's target size (its table property `tablet_reshard_target_size` if it has one, otherwise the FE configuration `tablet_reshard_target_size`), the tablets that size-based splitting does not already split are split one more tablet at a time, largest pieces first, until the index has one tablet per such slot or no further split can keep every resulting tablet at or above this value. No tablet is split into more tablets than one split allows. Raising this value therefore also delays that splitting, and setting it at or above a table's target size turns it off for that table, leaving only the size-based rule. Should be no larger than `tablet_reshard_target_size`.
* Introduced in: v4.1.0

### `tablet_reshard_history_job_max_keep_ms`

* Default: 259200000 (72 hours)
* Type: Int
* Unit: Milliseconds
* Is mutable: Yes
* Description: The maximum retention time of historical tablet SPLIT/MERGE jobs.
* Introduced in: v4.1.0

### `tablet_reshard_colocate_checker_membership_batch_size`

* Default: 1000
* Type: Int
* Unit: -
* Is mutable: Yes
* Description: The maximum number of tablets that the range-colocate checker sends to StarOS in a single `getShardInfo` membership-read batch RPC on shared-data clusters. Values less than `1` are treated as `1`.
* Introduced in: v4.1.3

### `tablet_reshard_colocate_checker_convergence_batch_size`

* Default: 64
* Type: Int
* Unit: -
* Is mutable: Yes
* Description: The maximum number of PACK shard groups that the range-colocate checker sends to StarOS in a single `queryShardGroupStable` placement-convergence batch RPC. Each group's stability check is computed server-side, so a smaller batch bounds per-RPC latency, and the full result is assembled across repeated calls. Values less than `1` are treated as `1`.
* Introduced in: v4.1.3

### `tablet_reshard_colocate_checker_convergence_cache_ttl_ms`

* Default: 1000
* Type: Long
* Unit: Milliseconds
* Is mutable: Yes
* Description: The TTL of the range-colocate checker's placement-convergence negative cache. Within this window, a PACK shard group that StarOS last reported as not yet converged is not re-queried, which throttles the per-tick `queryShardGroupStable` load while the group is still migrating. Only not-converged results are cached, so a stale entry can only delay the group's flip to stable by up to this window, never cause a premature flip. Values less than or equal to `0` disable the cache.
* Introduced in: v4.1.3

### `enable_tablet_pre_split_for_insert_from_files`

* Default: true
* Type: Boolean
* Unit: -
* Is mutable: Yes
* Description: Whether to enable Sample-Based Tablet Pre-Split for `INSERT INTO ... SELECT FROM FILES()` loads. On by default as of v4.1.0. Set to `false` to disable cluster-wide. The session variable `enable_tablet_pre_split` must also be `true` for pre-split to run.
* Introduced in: v4.1.0

### `enable_tablet_pre_split_for_broker_load`

* Default: true
* Type: Boolean
* Unit: -
* Is mutable: Yes
* Description: Whether to enable Sample-Based Tablet Pre-Split for Broker Load. On by default as of v4.1.0. Set to `false` to disable cluster-wide. The session variable `enable_tablet_pre_split` must also be `true` for pre-split to run.
* Introduced in: v4.1.0

### `enable_tablet_pre_split_for_insert_from_table`

* Default: true
* Type: Boolean
* Unit: -
* Is mutable: Yes
* Description: Whether to enable Sample-Based Tablet Pre-Split for `INSERT INTO ... SELECT FROM <table>` loads whose source is an internal OLAP table or a table in an external catalog, such as Hive, Iceberg, Paimon, Delta Lake, Hudi, JDBC, or Elasticsearch. Views are not supported as a source. When an external source cannot be sized from its table statistics, the load skips pre-split. The feature supports automatic range-partition targets, including explicitly named real or temporary partitions and both static and dynamic `INSERT OVERWRITE`. For `INSERT INTO` and static `INSERT OVERWRITE`, it also supports manually range-partitioned targets: `INSERT INTO` splits their existing empty partitions, and an overwrite splits the replacement temporary partitions, without creating any partition. When the source is an internal table restricted with `PARTITION (...)`, only those partitions are sampled. The refresh of a non-incremental asynchronous materialized view whose query selects from a single internal table, without aggregation, joins or set operations, is sampled the same way. On by default as of v4.1.0. Set to `false` to disable cluster-wide. The session variable `enable_tablet_pre_split` must also be `true` for pre-split to run. To roll back, set to `false`; new INSERT-from-table loads will skip pre-split immediately.
* Introduced in: v4.1.0

### `enable_tablet_pre_split_for_mv_refresh`

* Default: true
* Type: Boolean
* Unit: -
* Is mutable: Yes
* Description: Whether to enable Sample-Based Tablet Pre-Split for the refresh of a range-distributed incremental materialized view. Such a view is keyed by a hidden row-id column whose value domain is known in advance, so its boundaries are derived rather than sampled and no data is read. Set to `false` to disable cluster-wide. The session variable `enable_tablet_pre_split` must also be `true` for pre-split to run.
* Introduced in: v4.2.0

### `tablet_pre_split_pre_submit_timeout_seconds`

* Default: 300
* Type: Long
* Unit: Seconds
* Is mutable: Yes
* Description: Wall-clock budget for the pre-submit phase of Sample-Based Tablet Pre-Split (sample + plan boundaries + build reshard job). On expiry the coordinator skips pre-split and the load proceeds against the original single tablet. Default 300s: the data-tier sampler can take tens of seconds on large datasets / slow object storage (a \~40GB many-file Parquet load sampled in \~78s in testing), and this budget mainly bites large loads — exactly the ones pre-split benefits; small loads sample in well under a second regardless. The load stays `PENDING` for at most this long during sampling, so keep it below the load's own timeout.
* Introduced in: v4.1.0

### `tablet_pre_split_post_submit_wait_seconds`

* Default: 300
* Type: Long
* Unit: Seconds
* Is mutable: Yes
* Description: Maximum time the coordinator will wait for an admitted Sample-Based Tablet Pre-Split reshard job to reach `FINISHED`. Both INSERT-from-FILES and Broker Load synchronously wait and on expiry **proceed without abort** — the load then plans against the currently visible tablet layout (still the original layout if the daemon hasn't transitioned, or partially / fully post-split if the daemon raced past the wait); the `tablet_pre_split_post_submit_hard_cap` counter records the timeout. The strict `runPreSplit` wrapper used by tests aborts the calling load via `PreSplitPostSubmitTimeoutException`. For Broker Load the wait runs after the broker pending task resolves file statuses but before `beginTxn` opens `T_load` — it occupies a `pending_load_task_scheduler` thread for at most this many seconds per table, so size `max_broker_load_job_concurrency` accordingly when many concurrent Broker Loads target a pre-splittable layout. **Operator note:** the Broker Load remains `PENDING` in `SHOW LOAD` during the wait and is still subject to its own `timeoutSecond` — set this well below the smallest Broker Load timeout in normal use.
* Introduced in: v4.1.0

### `tablet_pre_split_sample_byte_limit`

* Default: 16777216 (16 MiB)
* Type: Long
* Unit: Bytes
* Is mutable: Yes
* Description: Soft byte cap on the FE-side accumulation buffer of the data-tier reservoir sampler used by Sample-Based Tablet Pre-Split. The sampler stops reading once accumulated values exceed this limit. The first row is always admitted so an oversize row still produces a non-empty sample.
* Introduced in: v4.1.0

### `tablet_pre_split_data_tier_scan_byte_limit`

* Default: 4294967296 (4 GiB)
* Type: Long
* Unit: Bytes
* Is mutable: Yes
* Description: Soft limit on the source-file bytes the data tier of Sample-Based Tablet Pre-Split scans for a Broker Load or `INSERT INTO ... SELECT FROM FILES()` load. When the input is larger, the sample reads a subset of the files instead of every file, so sampling time no longer grows with the input. The exception is a partition column read from the file data rather than from the path, or path and literal partition columns mixed: every file is then still scanned, because a subset could miss whole partitions. Files are sorted by path and picked at even byte intervals, which favors larger files. When the partition column comes from the file path (`COLUMNS FROM PATH` or `columns_from_path`), each partition gets a share of the limit in proportion to its bytes and at least one file (unless the load has more partitions than `tablet_pre_split_data_tier_max_scan_files`), and each partition's size is taken from the bytes of all of its files. Files are taken whole, so the scan can exceed the limit, for example when a single file is larger than it. The tablet count is still sized from the whole input. Set to `0` to scan every file.

### `tablet_pre_split_data_tier_min_scan_files`

* Default: 64
* Type: Int
* Unit: -
* Is mutable: Yes
* Description: Minimum number of files the data tier of Sample-Based Tablet Pre-Split scans once it samples a subset of a load's files (see `tablet_pre_split_data_tier_scan_byte_limit`), so that the sample spans enough independent files even when each file is large or holds only a narrow range of the sort key. When the partition column comes from the file path, the minimum is split across partitions in proportion to their bytes. Meeting it can take the scan above `tablet_pre_split_data_tier_scan_byte_limit`, but no files are added for it once the scan reaches four times that limit, so large files do not multiply the scan time. A positive `tablet_pre_split_data_tier_max_scan_files` takes precedence over this minimum.

### `tablet_pre_split_data_tier_max_scan_files`

* Default: 512
* Type: Int
* Unit: -
* Is mutable: Yes
* Description: Maximum number of files the data tier of Sample-Based Tablet Pre-Split scans once it samples a subset of a load's files (see `tablet_pre_split_data_tier_scan_byte_limit`). Every file in the subset costs one metadata lookup before any data is read, so without a cap a subset of many small files could spend minutes on lookups alone. When the partition column comes from the file path, the cap is split across partitions in proportion to their bytes; every partition still keeps at least one file, so the cap can be exceeded by up to one file per partition. When there are more partitions than the cap, only the heaviest partitions are sampled, one file each. The cap takes precedence over `tablet_pre_split_data_tier_min_scan_files`. Set to `0` or a negative value to remove the cap.

### `tablet_pre_split_meta_tier_overlap_threshold`

* Default: 0.3
* Type: Double
* Unit: -
* Is mutable: Yes
* Description: Maximum overlap fraction tolerated when Sample-Based Tablet Pre-Split's meta tier (Parquet/ORC row-group metadata) computes boundaries. Above this threshold the cumulative-row count stops being monotone in sorted-min order so meta tier falls back to data tier (row sampling).
* Introduced in: v4.1.0

### `tablet_pre_split_meta_tier_footer_read_parallelism`

* Default: 16
* Type: Int
* Unit: -
* Is mutable: Yes
* Description: Number of Parquet/ORC footers the Sample-Based Tablet Pre-Split meta tier reads concurrently from a file-backed load source (`FILES()` or Broker Load). Footer reads are independent per file and the sampler sorts the aggregated statistics, so concurrency only cuts the wall time of the pre-split hook (each footer is a remote round-trip; a many-file source otherwise serializes hundreds of round-trips). Set to `1` to disable concurrency.
* Introduced in: v4.1.0

### `tablet_pre_split_max_partitions_per_load`

* Default: 32
* Type: Int
* Unit: -
* Is mutable: Yes
* Description: Maximum number of predicted target partitions a single Sample-Based Tablet Pre-Split invocation will operate on. On a sampled load, excess predicted partitions (the lightest ones: fewest input bytes when the data tier sampled a subset of files whose partition values come from the file paths, otherwise fewest sampled rows) are dropped and fall back to runtime auto-create with no pre-split. Bounds hook latency on pathological multi-partition loads. On a refresh of an incremental materialized view whose row ids are fingerprints computed by the refresh query, the temporary partitions it writes are created before pre-split runs. The first eligible ones by name, up to the cap, are pre-split, and the rest keep the single tablet they were created with. Each partition's share of the refresh is still computed over all the partitions it writes. Set to zero or a negative value to disable the cap.
* Introduced in: v4.1.0

### `tablet_pre_split_target_size`

* Default: 0
* Type: Long
* Unit: Bytes
* Is mutable: Yes
* Description: Target tablet size that Sample-Based Tablet Pre-Split sizes a load's split count against. `0` (the default) inherits `tablet_reshard_target_size`. A range-distributed table with the table property `tablet_reshard_target_size` is pre-split against that property instead while the FE configuration `tablet_reshard_target_size` is positive, so the order is: the table property, then this value if it is greater than `0`, then the FE configuration `tablet_reshard_target_size`. Lower it to give a load more write parallelism without shrinking every tablet in the cluster: the background tablet split/merge daemon keeps measuring against `tablet_reshard_target_size`, so it merges the finer tablets back together after the load finishes. This matters most for a load that writes brand-new range-distributed partitions (for example the replacement partitions of an `INSERT OVERWRITE`), which start from a single catch-all tablet and would otherwise be written by a single backend.

#### Rolling back Sample-Based Tablet Pre-Split

To disable the feature safely before a downgrade or during a production rollback:

1. Set all four pre-split flags to `false`: `enable_tablet_pre_split_for_insert_from_files`, `enable_tablet_pre_split_for_broker_load`, `enable_tablet_pre_split_for_insert_from_table`, and `enable_tablet_pre_split_for_mv_refresh`. New loads will skip pre-split immediately.
2. Wait for in-flight reshard jobs created by pre-split to drain. Monitor them with the following query:

   ```SQL theme={null}
   SELECT DB_NAME, TABLE_NAME, JOB_TYPE, JOB_STATE
   FROM information_schema.tablet_reshard_jobs
   WHERE JOB_STATE NOT IN ('FINISHED', 'ABORTED');
   ```

   The rollback is complete once this query returns no rows. A job in any non-final state, including `PENDING`, `PREPARING`, `RUNNING`, `CLEANING`, and `ABORTING`, is still in flight; only `FINISHED` and `ABORTED` are final.
3. Proceed with the downgrade. The substrate (External-Boundaries Tablet Split) remains available regardless of the pre-split feature flag.

#### Behavioral notes for multi-partition Sample-Based Tablet Pre-Split (P2-a)

The multi-partition path extends Sample-Based Tablet Pre-Split to loads that target many partitions in one statement. Three operational caveats apply:

* **Broker Load triggering-load asymmetry.** The multi-partition pre-split hook fires from `BrokerLoadJob.createLoadingTask` **after** `task.prepare()` has built the load's sink plan against the catalog as it existed at that moment. For Broker Load, pre-created partitions and the post-reshard tablet layout are therefore only visible to **subsequent** loads on the same table — the triggering Broker Load itself runs against the original layout and uses BE runtime auto-create for any partitions it touches. INSERT-from-FILES (where the hook fires before `StatementPlanner.plan()`) is unaffected and benefits in the same load.
* **Pre-created partition leak on subsequent INSERT failure.** When pre-create succeeds and the triggering INSERT later fails for unrelated reasons (FILES schema mismatch, BE crash, load timeout, etc.), the empty pre-created partitions remain in the catalog. This matches the semantics of `ALTER TABLE ADD PARTITION`, which also leaves a partition behind on subsequent failure. Operators who care can drop the empty partitions manually with `ALTER TABLE ... DROP PARTITION`; in practice empty partitions are cheap and the next retry of the load will reuse them.
* **Manually range-partitioned targets.** For a table with user-declared RANGE partitions, pre-split never creates a partition. Each sampled row is mapped onto the existing partition whose range contains it, and a value outside every declared range is dropped from the plan. Only partitions that are still empty and hold a single tablet are split, typically a partition just added with `ALTER TABLE ... ADD PARTITION`; a load whose target partitions all hold data already skips pre-split without sampling the source. A static `INSERT OVERWRITE` splits the new temporary partitions that replace the named ones. Dynamic `INSERT OVERWRITE`, LIST partitioning, and expression partitioning are not covered for manually partitioned tables.

#### Production deployment guidance

Set `enable_execute_script_on_frontend = false` in production. Sample-Based Tablet Pre-Split exposes no SQL surface that depends on FE-side script execution; the production code paths sample through the connector + planner directly. Leaving `enable_execute_script_on_frontend = true` widens the FE attack surface without enabling any pre-split functionality, so the safe default for production clusters is to keep it off.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.