mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-13 00:32:56 +00:00
* refactor: return PhysicalPlan in Table trait's scan method, to support partitioned execution in Frontend's distribute read * refactor: pub use necessary DataFusion types * refactor: replace old "PhysicalPlan" and its adapters Co-authored-by: luofucong <luofucong@greptime.com> Co-authored-by: Yingwen <realevenyag@gmail.com>
14 lines
313 B
Rust
14 lines
313 B
Rust
use std::sync::Arc;
|
|
|
|
use common_query::physical_plan::PhysicalPlan;
|
|
|
|
use crate::{error::Result, query_engine::QueryContext};
|
|
|
|
pub trait PhysicalOptimizer {
|
|
fn optimize_physical_plan(
|
|
&self,
|
|
ctx: &mut QueryContext,
|
|
plan: Arc<dyn PhysicalPlan>,
|
|
) -> Result<Arc<dyn PhysicalPlan>>;
|
|
}
|