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

Expand description

Coercion rules for matching argument types for binary operators

Functions

  • Determine if at least of one of lhs and rhs is decimal
  • Returns the return type of a binary operator or an error when the binary operator cannot perform the computation between the argument’s types, even after type coercion.
  • Coercion rules for all binary operators. Returns the output type of applying op to an argument of lhs_type and rhs_type.
  • Returns the coerced type of applying mathematics operations on decimal types. Two sides of the mathematics operation will be coerced to the same type. Note that we don’t coerce the decimal operands in analysis phase, but do it in the execution phase because this is not idempotent.
  • Returns the output type of applying comparison operations such as eq, not eq, lt, lteq, gt, and gteq to arguments of lhs_type and rhs_type.
  • Returns the output type of applying mathematics operations on decimal types. The rule is from spark. Note that this is different to the coerced type applied to two sides of the arithmetic operation.
  • coercion rules for like operations. This is a union of string coercion rules and dictionary coercion rules
  • Coercion rules for mathematics operators between decimal and non-decimal types.
  • coercion rules for regular expression comparison operations. This is a union of string coercion rules and dictionary coercion rules