Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
ExprSchemable in datafusion_expr::expr_schema - Rust
[go: Go Back, main page]

pub trait ExprSchemable {
    fn get_type<S: ExprSchema>(&self, schema: &S) -> Result<DataType>;
    fn nullable<S: ExprSchema>(&self, input_schema: &S) -> Result<bool>;
    fn to_field(&self, input_schema: &DFSchema) -> Result<DFField>;
    fn cast_to<S: ExprSchema>(
        self,
        cast_to_type: &DataType,
        schema: &S
    ) -> Result<Expr>; }
Expand description

trait to allow expr to typable with respect to a schema

Required Methods

given a schema, return the type of the expr

given a schema, return the nullability of the expr

convert to a field with respect to a schema

cast to a type with respect to a schema

Implementors