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
cast in datafusion::physical_expr::expressions - Rust
[go: Go Back, main page]

datafusion::physical_expr::expressions

Function cast

source
pub fn cast(
    expr: Arc<dyn PhysicalExpr>,
    input_schema: &Schema,
    cast_type: DataType,
) -> Result<Arc<dyn PhysicalExpr>, DataFusionError>
Expand description

Return a PhysicalExpression representing expr casted to cast_type, if any casting is needed.

Note that such casts may lose type information