Skip to content

Commit 7b0c2d1

Browse files
committed
Restrict cast_with_target_field to crate-only
Narrow cast_with_target_field from a public re-export to a crate-only re-export in datafusion/physical-expr/src/expressions/mod.rs. This change allows the planner to still utilize it while reducing the public expressions API surface.
1 parent 12acf9b commit 7b0c2d1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • datafusion/physical-expr/src/expressions

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub use crate::aggregate::stats::StatsType;
4141

4242
pub use binary::{BinaryExpr, binary, similar_to};
4343
pub use case::{CaseExpr, case};
44-
pub use cast::{CastExpr, cast, cast_with_target_field};
44+
pub use cast::{CastExpr, cast};
4545
pub use cast_column::CastColumnExpr;
4646
pub use column::{Column, col, with_new_schema};
4747
pub use datafusion_expr::utils::format_state_name;
@@ -56,3 +56,5 @@ pub use no_op::NoOp;
5656
pub use not::{NotExpr, not};
5757
pub use try_cast::{TryCastExpr, try_cast};
5858
pub use unknown_column::UnKnownColumn;
59+
60+
pub(crate) use cast::cast_with_target_field;

0 commit comments

Comments
 (0)