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::Display
and ensures secrets are not logged or deserialized in plain text.
Functions§
- create_
database - Create a database in the remote
ClickHouse
instance. - create_
options_ to_ params crate::ClickHouseTableProviderFactory
must receive all parameters as strings, this function is helpful to serialize the required options- create_
schema - Create a table in the remote
ClickHouse
instance. - map_
clickhouse_ err - Helper to map
ClickhouseNativeError
toDataFusionError
- map_
external_ err - Helper to map any
std::error::Error
toDataFusionError
- params_
to_ create_ options - Creates a
CreateOptions
from ‘params’ (HashMap<String, String>
) and ‘defaults’ (HashMap<String, Expr>
). - params_
to_ pool_ builder - Converts a
HashMap
of parameters to anArrowConnectionPoolBuilder
. - pool_
builder_ to_ params crate::ClickHouseTableProviderFactory
must 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.