Skip to content

Commit

Permalink
change streaming_window -> window
Browse files Browse the repository at this point in the history
  • Loading branch information
emgeee committed Aug 12, 2024
1 parent 56e2dd1 commit e1234dd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion crates/core/src/datastream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ pub struct DataStream {
}

impl DataStream {
pub fn schema(&self) -> Result<Self> {
}

pub fn filter(&self, predicate: Expr) -> Result<Self> {
let (session_state, plan) = self.df.as_ref().clone().into_parts();

Expand All @@ -33,7 +36,7 @@ impl DataStream {
// drop_columns, sync, columns: &[&str]
// count

pub fn streaming_window(
pub fn window(
&self,
group_expr: Vec<Expr>,
aggr_expr: Vec<Expr>,
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/kafka_rideshare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async fn main() -> Result<()> {
]))
.await?;

let ds = ctx.from_topic(source_topic).await?.streaming_window(
let ds = ctx.from_topic(source_topic).await?.window(
vec![],
vec![
max(col("imu_measurement").field("gps").field("speed")),
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/simple_aggregation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async fn main() -> Result<()> {
let ds = ctx
.from_topic(source_topic)
.await?
.streaming_window(
.window(
vec![],
vec![
min(col("temperature")).alias("min"),
Expand Down

0 comments on commit e1234dd

Please sign in to comment.