Function datafusion_comet_spark_expr::spark_cast
source · pub fn spark_cast(
arg: ColumnarValue,
data_type: &DataType,
eval_mode: EvalMode,
timezone: String,
) -> Result<ColumnarValue>
Expand description
Spark-compatible cast implementation. Defers to DataFusion’s cast where that is known to be compatible, and returns an error when a not supported and not DF-compatible cast is requested.