Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for inferTypeAsTimestamp (2.39 sec)

  1. internal/s3select/sql/value.go

    	floatA, _ := a.ToFloat()
    	var result float64
    	if !isMax {
    		result = math.Min(floatV, floatA)
    	} else {
    		result = math.Max(floatV, floatA)
    	}
    	v.setFloat(result)
    	return nil
    }
    
    func inferTypeAsTimestamp(v *Value) error {
    	if s, ok := v.ToString(); ok {
    		t, err := parseSQLTimestamp(s)
    		if err != nil {
    			return err
    		}
    		v.setTimestamp(t)
    	} else if b, ok := v.ToBytes(); ok {
    		s := string(b)
    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