Expand description
To simplify compatibility, crates for clickhouse_arrow
, datafusion
, and
datafusion::arrow
are re-exported.
Re-exports§
pub use super::analyzer::function_pushdown::ClickHouseFunctionPushdown;
pub use super::sql::SqlTable;
pub use super::table_factory::ClickHouseTableFactory;
pub use super::table_factory::ClickHouseTableProviderFactory;
pub use super::udfs::eval::clickhouse_eval_udf;
pub use super::udfs::register_clickhouse_functions;
pub use datafusion::arrow;
pub use clickhouse_arrow;
pub use datafusion;
pub use super::providers::*;
Modules§
- plan_
node - TEST
A
UserDefinedLogicalNodeCore
implementation for wrapping largest sub-trees of aDataFusion
logical plan for execution onClickHouse
directly. - planner
- An
ExtensionPlanner
implementation for executingClickHouseFunctionNode
s
Structs§
- Click
House Builder - Entrypoint builder for
ClickHouse
andDataFusion
integration. - Click
House Catalog Builder ClickHouseCatalogBuilder
can be used to create tables, register existing tables, and finally refresh theClickHouse
catalog inDataFusion
.- Click
House Connection - A wrapper around
ArrowPoolConnection
that provides additional functionality relevant forDataFusion
. - Click
House Connection Pool - A wrapper around a
clickhouse_arrow::ConnectionPool<ArrowFormat>
- Click
House Context Provider - Custom
ContextProvider
- Click
House Data Sink datafusion::datasource::sink::DataSink
forClickHouse
- Click
House Query Planner - A custom
QueryPlanner
leveragingClickHouseExtensionPlanner
- Click
House Session Context - Wrapper for
SessionContext
which allows running arbitraryClickHouse
functions. - Click
House Table Creator - Builder phase for creating
ClickHouse
tables.
Constants§
- DEFAULT_
CLICKHOUSE_ CATALOG - The default
DataFusion
catalog name if no other name is provided.
Functions§
- configure_
analyzer_ rules - Given a
SessionState
, configure the analyzer rules for theClickHouse
session context. - default_
arrow_ options - Simple function to provide default
ArrowOptions
fit for common use - prepare_
session_ context - Convenience method (opinionated) for preparing a session context both with federation if the
feature is enabled as well as UDF pushdown support through the custom
Analyzer
. It is called inClickHouseSessionContext::new
andClickHouseSessionContext::from
when creating a newClickHouseSessionContext
.
Type Aliases§
- Arrow
Pool Connection - Type alias for a pooled connection to a
ClickHouse
database.