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
  • Coercion rules for all binary operators. Returns the ‘coerce_types’ is returns the type the arguments should be coerced to
  • 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.
  • returns the resulting type of a binary expression evaluating the op with the left and right hand types
  • 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