Skip to content

Commit

Permalink
Update analyze.rs (#8717)
Browse files Browse the repository at this point in the history
  • Loading branch information
berkaysynnada committed Jan 2, 2024
1 parent 82656af commit 94aff55
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions datafusion/physical-plan/src/analyze.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,12 @@ impl ExecutionPlan for AnalyzeExec {
/// Specifies whether this plan generates an infinite stream of records.
/// If the plan does not support pipelining, but its input(s) are
/// infinite, returns an error to indicate this.
fn unbounded_output(&self, _children: &[bool]) -> Result<bool> {
internal_err!("Optimization not supported for ANALYZE")
fn unbounded_output(&self, children: &[bool]) -> Result<bool> {
if children[0] {
internal_err!("Streaming execution of AnalyzeExec is not possible")
} else {
Ok(false)
}
}

/// Get the output partitioning of this plan
Expand Down

0 comments on commit 94aff55

Please sign in to comment.