Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. internal/s3select/sql/aggregation.go

    		f, ok := argVal.ToFloat()
    		if !ok {
    			return fmt.Errorf("Could not convert value %v (%s) to a number", argVal.value, argVal.GetTypeString())
    		}
    		argVal.setFloat(f)
    		err = e.aggregate.runningSum.arithOp(opPlus, argVal)
    
    	case aggFnMin:
    		err = e.aggregate.runningMin.minmax(argVal, false, isFirstRow)
    
    	case aggFnMax:
    		err = e.aggregate.runningMax.minmax(argVal, true, isFirstRow)
    
    	default:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Dec 23 07:19:11 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  2. 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)
Back to top