Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(optimizer): split required and provided distribution property #2726

Merged
merged 20 commits into from
May 23, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
clippy
  • Loading branch information
st1page committed May 23, 2022
commit a453f14f23a0431f1918d3b83bdac9b64131f715
2 changes: 1 addition & 1 deletion src/frontend/src/optimizer/plan_node/batch_topn.rs
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ use risingwave_pb::batch_plan::TopNNode;

use super::{LogicalTopN, PlanBase, PlanRef, PlanTreeNodeUnary, ToBatchProst, ToDistributedBatch};
use crate::optimizer::plan_node::ToLocalBatch;
use crate::optimizer::property::{Distribution, Order, RequiredDist};
use crate::optimizer::property::{Order, RequiredDist};

/// `BatchTopN` implements [`super::LogicalTopN`] to find the top N elements with a heap
#[derive(Debug, Clone)]
2 changes: 1 addition & 1 deletion src/frontend/src/optimizer/plan_node/logical_agg.rs
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ use super::{
};
use crate::expr::{AggCall, Expr, ExprImpl, ExprRewriter, ExprType, FunctionCall, InputRef};
use crate::optimizer::plan_node::{gen_filter_and_pushdown, LogicalProject};
use crate::optimizer::property::{Distribution, RequiredDist};
use crate::optimizer::property::RequiredDist;
use crate::utils::{ColIndexMapping, Condition, Substitute};

/// Aggregation Call
2 changes: 1 addition & 1 deletion src/frontend/src/optimizer/plan_node/logical_topn.rs
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ use super::{
ToBatch, ToStream,
};
use crate::optimizer::plan_node::{BatchTopN, LogicalProject, StreamTopN};
use crate::optimizer::property::{Distribution, FieldOrder, Order, RequiredDist};
use crate::optimizer::property::{FieldOrder, Order, RequiredDist};
use crate::utils::{ColIndexMapping, Condition};

/// `LogicalTopN` sorts the input data and fetches up to `limit` rows from `offset`
2 changes: 1 addition & 1 deletion src/frontend/src/planner/query.rs
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ use risingwave_common::error::Result;

use crate::binder::BoundQuery;
use crate::optimizer::plan_node::{LogicalLimit, LogicalTopN};
use crate::optimizer::property::{Distribution, Order, RequiredDist};
use crate::optimizer::property::{Order, RequiredDist};
use crate::optimizer::PlanRoot;
use crate::planner::Planner;