Skip to content

Commit

Permalink
add drop_columns
Browse files Browse the repository at this point in the history
  • Loading branch information
emgeee committed Nov 6, 2024
1 parent ce87b06 commit a88c714
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/core/src/datastream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,15 @@ impl DataStream {
})
}

pub fn drop_columns(self, columns: &[&str]) -> Result<Self> {
Ok(Self {
df: Arc::new(self.df.as_ref().clone().drop_columns(columns)?),
context: self.context.clone(),
shutdown_tx: self.shutdown_tx.clone(),
shutdown_rx: self.shutdown_rx.clone(),
})
}

// Join two streams using the specified expression
pub fn join_on(
self,
Expand Down

0 comments on commit a88c714

Please sign in to comment.