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 - A
UserDefinedLogicalNodeCoreimplementation for wrapping largest sub-trees of aDataFusionlogical plan for execution onClickHousedirectly. - planner
- An
ExtensionPlannerimplementation for executingClickHouseFunctionNodes
Structs§
- Click
House Builder - Entrypoint builder for
ClickHouseandDataFusionintegration. - Click
House Catalog Builder ClickHouseCatalogBuildercan be used to create tables, register existing tables, and finally refresh theClickHousecatalog inDataFusion.- Click
House Connection - A wrapper around
ArrowPoolConnectionthat 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::DataSinkforClickHouse- Click
House Query Planner - A custom
QueryPlannerleveragingClickHouseExtensionPlanner - Click
House Session Context - Wrapper for
SessionContextwhich allows running arbitraryClickHousefunctions. - Click
House Table Creator - Builder phase for creating
ClickHousetables.
Constants§
- DEFAULT_
CLICKHOUSE_ CATALOG - The default
DataFusioncatalog name if no other name is provided.
Functions§
- configure_
analyzer_ rules - Given a
SessionState, configure the analyzer rules for theClickHousesession context. - default_
arrow_ options - Simple function to provide default
ArrowOptionsfit 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::newandClickHouseSessionContext::fromwhen creating a newClickHouseSessionContext.
Type Aliases§
- Arrow
Pool Connection - Type alias for a pooled connection to a
ClickHousedatabase.