Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for arithOp (0.04 sec)

  1. internal/s3select/sql/evaluate.go

    	// symbols.
    	for _, rightTerm := range e.Right {
    		op := rightTerm.Op
    		rval, rerr := rightTerm.Right.evalNode(r, tableAlias)
    		if rerr != nil {
    			return nil, rerr
    		}
    		err := lval.arithOp(op, rval)
    		if err != nil {
    			return nil, err
    		}
    	}
    	return lval, nil
    }
    
    func (e *MultOp) evalNode(r Record, tableAlias string) (*Value, error) {
    	lval, lerr := e.Left.evalNode(r, tableAlias)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. internal/s3select/sql/value.go

    	opModulo   = "%"
    )
    
    // For arithmetic operations, if both values are numeric then the
    // 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
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Feb 25 20:31:19 UTC 2022
    - 20.2K bytes
    - Viewed (0)
Back to top