MCPcopy Create free account
hub / github.com/apache/datafusion / try_map_expr

Method try_map_expr

datafusion/expr/src/expr.rs:754–767  ·  view source on GitHub ↗
(self, f: impl FnOnce(Expr) -> Result<Expr>)

Source from the content-addressed store, hash-verified

752
753 #[doc(hidden)]
754 pub fn try_map_expr(self, f: impl FnOnce(Expr) -> Result<Expr>) -> Result<Expr> {
755 let Alias {
756 expr,
757 relation,
758 name,
759 metadata,
760 } = self;
761 Ok(Expr::Alias(Alias {
762 expr: Box::new(f(*expr)?),
763 relation,
764 name,
765 metadata,
766 }))
767 }
768}
769
770/// Binary expression for [`Expr::BinaryExpr`]

Callers

nothing calls this directly

Calls 2

AliasClass · 0.85
newFunction · 0.85

Tested by

no test coverage detected