Expand description
Helpers for bridging between ClickHouse, DataFusion, and clickhouse_arrow.
Structs§
- Client
Option Params - Wrapper for serialized client options
Enums§
- Client
Option - Wrapper for serialized client options that impls
std::fmt::Displayand ensures secrets are not logged or deserialized in plain text.
Functions§
- create_
database - Create a database in the remote
ClickHouseinstance. - create_
options_ to_ params crate::ClickHouseTableProviderFactorymust receive all parameters as strings, this function is helpful to serialize the required options- create_
schema - Create a table in the remote
ClickHouseinstance. - map_
clickhouse_ err - Helper to map
ClickhouseNativeErrortoDataFusionError - map_
external_ err - Helper to map any
std::error::ErrortoDataFusionError - params_
to_ create_ options - Creates a
CreateOptionsfrom ‘params’ (HashMap<String, String>) and ‘defaults’ (HashMap<String, Expr>). - params_
to_ pool_ builder - Converts a
HashMapof parameters to anArrowConnectionPoolBuilder. - pool_
builder_ to_ params crate::ClickHouseTableProviderFactorymust receive all parameters as strings, this function is helpful to serialize the required options- register_
builtins - Helper function to register built-in functions in a session context.