Function Engine Configuration
Override the execution engine for specific functions.Setting Function Engines
When to Use
Force chdb for:- Functions with better ClickHouse performance
- Functions that benefit from SQL optimization
- Large-scale string/datetime operations
- Functions with pandas-specific behavior
- When exact pandas compatibility is required
- Custom string operations
Example
Overlapping Functions
159+ functions are available in both chdb and pandas engines:
For overlapping functions, the engine is selected based on:
- Explicit function configuration (if set)
- Global execution_engine setting
- Auto-selection based on context
chdb-Only Functions
Some functions are only available through ClickHouse:
These functions automatically use chdb engine regardless of configuration.
pandas-Only Functions
Some functions are only available through pandas:
These functions automatically use pandas engine regardless of configuration.
Dtype Correction
Configure how DataStore corrects data types between engines.Correction Levels
Correction Level Details
When Types Need Correction
Type differences can occur when:- ClickHouse → pandas: Different integer sizes (Int64 vs int64)
- pandas → ClickHouse: Python objects to SQL types
- NULL handling: pandas NA vs ClickHouse NULL
- Boolean: Different boolean representations
- DateTime: Timezone differences