databend icon indicating copy to clipboard operation
databend copied to clipboard

Migrate `Plan` to `RelOperator`

Open leiysky opened this issue 2 years ago • 2 comments

Background

Plan is a legacy design for planner v2 to be adapted with Interpreters. But in fact Interpreter is not a good abstraction.

In the ideal world, any statement can be optimized by optimizer and be expressed with a PhysicalPlan thus can be send to any node in the cluster to execute.

To make this work smoothly, we can migrate the Plans to RelOperator one by one, and introduce a universal Interpreter to execute the plans that can be expressed with a single SExpr(just like query execution in current implementation).

Tracking

  • Migrating delete plan https://github.com/datafuselabs/databend/issues/14482

leiysky avatar Dec 14 '23 09:12 leiysky

@BohuTANG PTAL

leiysky avatar Dec 14 '23 09:12 leiysky

@zhang2014 looks need this.

bohutang avatar Dec 14 '23 10:12 bohutang