Skip to content

Commit e737d3f

Browse files
authored
refactor reassign_predicate_columns to accept an &Schema instead of &Arc<Schema> (#16499)
1 parent 85eebcd commit e737d3f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • datafusion/physical-expr/src/utils

datafusion/physical-expr/src/utils/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use crate::tree_node::ExprContext;
2626
use crate::PhysicalExpr;
2727
use crate::PhysicalSortExpr;
2828

29-
use arrow::datatypes::SchemaRef;
29+
use arrow::datatypes::Schema;
3030
use datafusion_common::tree_node::{
3131
Transformed, TransformedResult, TreeNode, TreeNodeRecursion,
3232
};
@@ -242,7 +242,7 @@ pub fn collect_columns(expr: &Arc<dyn PhysicalExpr>) -> HashSet<Column> {
242242
/// This may be helpful when dealing with projections.
243243
pub fn reassign_predicate_columns(
244244
pred: Arc<dyn PhysicalExpr>,
245-
schema: &SchemaRef,
245+
schema: &Schema,
246246
ignore_not_found: bool,
247247
) -> Result<Arc<dyn PhysicalExpr>> {
248248
pred.transform_down(|expr| {

0 commit comments

Comments
 (0)