Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for negPre (0.35 sec)

  1. internal/s3select/sql/value.go

    		return string(x)
    	case []Value:
    		b, _ := json.Marshal(x)
    		return string(b)
    
    	default:
    		return "CSV serialization not implemented for this type"
    	}
    }
    
    // negate negates a numeric value
    func (v *Value) negate() {
    	switch x := v.value.(type) {
    	case float64:
    		v.value = -x
    	case int64:
    		v.value = -x
    	}
    }
    
    // Value comparison functions: we do not expose them outside the
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 20.2K bytes
    - Viewed (0)
  2. 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 := tableAlias
    	if tableAlias == "" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 12K bytes
    - Viewed (0)
Back to top