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
comparison_coercion_numeric in datafusion_expr::binary - Rust
[go: Go Back, main page]

Function comparison_coercion_numeric

Source
pub fn comparison_coercion_numeric(
    lhs_type: &DataType,
    rhs_type: &DataType,
) -> Option<DataType>
Expand description

Similar to comparison_coercion but prefers numeric if compares with numeric and string

ยงNumeric comparisons

When comparing numeric values and strings, the values will be coerced to the numeric type. For example, '2' > 1 if 1 is an Int32, the arguments will be coerced to Int32.