Module utils

Module utils 

Source
Expand description

Helpers for bridging between ClickHouse, DataFusion, and clickhouse_arrow.

Structs§

ClientOptionParams
Wrapper for serialized client options

Enums§

ClientOption
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 to DataFusionError
map_external_err
Helper to map any std::error::Error to DataFusionError
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 an ArrowConnectionPoolBuilder.
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.