Skip to content

Commit

Permalink
Add helper methods
Browse files Browse the repository at this point in the history
  • Loading branch information
OussamaSaoudi-db committed Dec 11, 2024
1 parent 7bcbb57 commit a25f508
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion kernel/src/table_changes/scan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,15 @@ impl TableChangesScan {
}
}

/// Get a shared reference to the [`Schema`] of the scan.
///
/// [`Schema`]: crate::schema::Schema
pub fn schema(&self) -> &SchemaRef {
&self.logical_schema
}

/// Get the predicate [`Expression`] of the scan.
fn physical_predicate(&self) -> Option<ExpressionRef> {
pub fn physical_predicate(&self) -> Option<ExpressionRef> {
if let PhysicalPredicate::Some(ref predicate, _) = self.physical_predicate {
Some(predicate.clone())
} else {
Expand Down

0 comments on commit a25f508

Please sign in to comment.