- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for inferTypeForArithOp (1.28 sec)
-
internal/s3select/sql/funceval.go
} func handleDateAdd(r Record, d *DateAddFunc, tableAlias string) (*Value, error) { q, err := d.Quantity.evalNode(r, tableAlias) if err != nil { return nil, err } inferTypeForArithOp(q) qty, ok := q.ToFloat() if !ok { return nil, fmt.Errorf("QUANTITY must be a numeric argument to %s()", sqlFnDateAdd) } ts, err := d.Timestamp.evalNode(r, tableAlias) if err != nil {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 13.2K bytes - Viewed (0) -
internal/s3select/sql/value.go
// operation shall succeed. If the types are unknown automatic type // conversion to a number is attempted. func (v *Value) arithOp(op string, a *Value) error { err := inferTypeForArithOp(v) if err != nil { return err } err = inferTypeForArithOp(a) if err != nil { return err } if !v.isNumeric() || !a.isNumeric() { return errInvalidDataType(errArithMismatchedTypes) }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 20.4K bytes - Viewed (0) -
internal/s3select/sql/evaluate.go
if e.Negated == nil { return e.Primary.evalNode(r, tableAlias) } v, err := e.Negated.Term.evalNode(r, tableAlias) if err != nil { return nil, err } inferTypeForArithOp(v) v.negate() if v.isNumeric() { return v, nil } return nil, errArithMismatchedTypes } func (e *JSONPath) evalNode(r Record, tableAlias string) (*Value, error) { alias := tableAliasRegistered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 12K bytes - Viewed (0)