-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fixes #933 replace placeholder fmt_as fr ExecutionPlan impls #939
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,8 +19,8 @@ | |
|
||
use crate::error::{DataFusionError, Result}; | ||
use crate::physical_plan::{ | ||
common, Distribution, ExecutionPlan, Partitioning, RecordBatchStream, | ||
SendableRecordBatchStream, WindowExpr, | ||
common, DisplayFormatType, Distribution, ExecutionPlan, Partitioning, | ||
RecordBatchStream, SendableRecordBatchStream, WindowExpr, | ||
}; | ||
use arrow::{ | ||
array::ArrayRef, | ||
|
@@ -143,6 +143,18 @@ impl ExecutionPlan for WindowAggExec { | |
)); | ||
Ok(stream) | ||
} | ||
|
||
fn fmt_as( | ||
&self, | ||
t: DisplayFormatType, | ||
f: &mut std::fmt::Formatter, | ||
) -> std::fmt::Result { | ||
match t { | ||
DisplayFormatType::Default => { | ||
write!(f, "WindowAggExec") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think might be worth including self.window_expr (aka You can check out https://github.com/apache/arrow-datafusion/blob/master/datafusion/src/physical_plan/hash_aggregate.rs#L260-L272 for an example There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
} | ||
} | ||
} | ||
} | ||
|
||
fn create_schema( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 for including
scheduler_url