This is an automated email from the ASF dual-hosted git repository.

alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new 6aeea6b6a7 Fix build on main due to logical conflict (#6875)
6aeea6b6a7 is described below

commit 6aeea6b6a71cbae3d52594f6f2ea0fac5f1f9823
Author: Andrew Lamb <[email protected]>
AuthorDate: Fri Jul 7 05:14:22 2023 -0400

    Fix build on main due to logical conflict (#6875)
---
 datafusion/core/src/physical_plan/streaming.rs | 72 +++++++++++---------------
 1 file changed, 29 insertions(+), 43 deletions(-)

diff --git a/datafusion/core/src/physical_plan/streaming.rs 
b/datafusion/core/src/physical_plan/streaming.rs
index 22ae2af205..97b244d1ac 100644
--- a/datafusion/core/src/physical_plan/streaming.rs
+++ b/datafusion/core/src/physical_plan/streaming.rs
@@ -30,9 +30,7 @@ use log::debug;
 
 use crate::datasource::physical_plan::{OutputOrderingDisplay, 
ProjectSchemaDisplay};
 use crate::physical_plan::stream::RecordBatchStreamAdapter;
-use crate::physical_plan::{
-    DisplayFormatType, ExecutionPlan, Partitioning, SendableRecordBatchStream,
-};
+use crate::physical_plan::{ExecutionPlan, Partitioning, 
SendableRecordBatchStream};
 use datafusion_execution::TaskContext;
 
 use super::{DisplayAs, DisplayFormatType};
@@ -106,7 +104,34 @@ impl DisplayAs for StreamingTableExec {
     ) -> std::fmt::Result {
         match t {
             DisplayFormatType::Default | DisplayFormatType::Verbose => {
-                write!(f, "StreamingTableExec")
+                write!(
+                    f,
+                    "StreamingTableExec: partition_sizes={:?}",
+                    self.partitions.len(),
+                )?;
+                if !self.projected_schema.fields().is_empty() {
+                    write!(
+                        f,
+                        ", projection={}",
+                        ProjectSchemaDisplay(&self.projected_schema)
+                    )?;
+                }
+                if self.infinite {
+                    write!(f, ", infinite_source=true")?;
+                }
+
+                self.projected_output_ordering
+                    .as_deref()
+                    .map_or(Ok(()), |ordering| {
+                        if !ordering.is_empty() {
+                            write!(
+                                f,
+                                ", output_ordering={}",
+                                OutputOrderingDisplay(ordering)
+                            )?;
+                        }
+                        Ok(())
+                    })
             }
         }
     }
@@ -164,45 +189,6 @@ impl ExecutionPlan for StreamingTableExec {
         })
     }
 
-    fn fmt_as(
-        &self,
-        t: DisplayFormatType,
-        f: &mut std::fmt::Formatter,
-    ) -> std::fmt::Result {
-        match t {
-            DisplayFormatType::Default | DisplayFormatType::Verbose => {
-                write!(
-                    f,
-                    "StreamingTableExec: partition_sizes={:?}",
-                    self.partitions.len(),
-                )?;
-                if !self.projected_schema.fields().is_empty() {
-                    write!(
-                        f,
-                        ", projection={}",
-                        ProjectSchemaDisplay(&self.projected_schema)
-                    )?;
-                }
-                if self.infinite {
-                    write!(f, ", infinite_source=true")?;
-                }
-
-                self.projected_output_ordering
-                    .as_deref()
-                    .map_or(Ok(()), |ordering| {
-                        if !ordering.is_empty() {
-                            write!(
-                                f,
-                                ", output_ordering={}",
-                                OutputOrderingDisplay(ordering)
-                            )?;
-                        }
-                        Ok(())
-                    })
-            }
-        }
-    }
-
     fn statistics(&self) -> Statistics {
         Default::default()
     }

Reply via email to