Skip to content

Commit

Permalink
resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel committed Jul 22, 2024
1 parent 4fa8ad6 commit a859688
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions src/frontend/src/optimizer/plan_node/logical_agg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,7 @@ impl LogicalAggBuilder {
}
AggKind::ApproxPercentile => {
if agg_call.order_by.sort_exprs[0].order_type == OrderType::descending() {
// Rewrite DESC into 1.0-percentile for approx_percentile.
let prev_percentile = agg_call.direct_args[0].clone();
let new_percentile = 1.0
- prev_percentile
Expand Down
3 changes: 0 additions & 3 deletions src/frontend/src/optimizer/plan_node/stream_keyed_merge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ impl StreamKeyedMerge {
let schema = Schema::new(schema_fields);
let watermark_columns = FixedBitSet::with_capacity(schema.fields.len());

// FIXME: schema is wrong.
let base = PlanBase::new_stream(
lhs_input.ctx(),
schema,
Expand All @@ -99,8 +98,6 @@ impl StreamKeyedMerge {
impl Distill for StreamKeyedMerge {
fn distill<'a>(&self) -> XmlNode<'a> {
let mut out = Vec::with_capacity(1);
// out.push(("lhs_col_mapping", Pretty::debug(&self.lhs_mapping)));
// out.push(("rhs_col_mapping", Pretty::debug(&self.rhs_mapping)));

if self.base.ctx().is_explain_verbose() {
let f = |t| Pretty::debug(&t);
Expand Down

0 comments on commit a859688

Please sign in to comment.