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

Function try_cast

datafusion/expr/src/expr_fn.rs:335–337  ·  view source on GitHub ↗

Create a try cast expression

(expr: Expr, data_type: DataType)

Source from the content-addressed store, hash-verified

333
334/// Create a try cast expression
335pub fn try_cast(expr: Expr, data_type: DataType) -> Expr {
336 Expr::TryCast(TryCast::new(Box::new(expr), data_type))
337}
338
339/// Create is null expression
340pub fn is_null(expr: Expr) -> Expr {

Calls 2

TryCastClass · 0.85
newFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…