Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Jun 23, 2023
1 parent ee89487 commit 58f20c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
4 changes: 2 additions & 2 deletions datafusion/core/src/catalog/information_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ use arrow::{
record_batch::RecordBatch,
};

use crate::config::{ConfigEntry, ConfigOptions};
use crate::datasource::streaming::{PartitionStream, StreamingTable};
use crate::{config::{ConfigEntry, ConfigOptions}, physical_plan::streaming::PartitionStream};
use crate::datasource::streaming::{StreamingTable};
use crate::datasource::TableProvider;
use crate::execution::context::TaskContext;
use crate::logical_expr::TableType;
Expand Down
15 changes: 3 additions & 12 deletions datafusion/core/src/datasource/streaming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,9 @@ use datafusion_expr::{Expr, TableType};
use log::debug;

use crate::datasource::TableProvider;
use crate::execution::context::{SessionState, TaskContext};
use crate::physical_plan::streaming::StreamingTableExec;
use crate::physical_plan::{ExecutionPlan, SendableRecordBatchStream};

/// A partition that can be converted into a [`SendableRecordBatchStream`]
pub trait PartitionStream: Send + Sync {
/// Returns the schema of this partition
fn schema(&self) -> &SchemaRef;

/// Returns a stream yielding this partitions values
fn execute(&self, ctx: Arc<TaskContext>) -> SendableRecordBatchStream;
}
use crate::execution::context::{SessionState};
use crate::physical_plan::streaming::{StreamingTableExec, PartitionStream};
use crate::physical_plan::{ExecutionPlan};

/// A [`TableProvider`] that streams a set of [`PartitionStream`]
pub struct StreamingTable {
Expand Down
1 change: 0 additions & 1 deletion datafusion/core/src/physical_plan/streaming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ use datafusion_common::{DataFusionError, Result, Statistics};
use datafusion_physical_expr::PhysicalSortExpr;
use log::debug;

use crate::datasource::streaming::PartitionStream;
use crate::physical_plan::stream::RecordBatchStreamAdapter;
use crate::physical_plan::{ExecutionPlan, Partitioning, SendableRecordBatchStream};
use datafusion_execution::TaskContext;
Expand Down

0 comments on commit 58f20c6

Please sign in to comment.