- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for inferTypeAsTimestamp (0.19 sec)
-
internal/s3select/sql/funceval.go
if err != nil { return nil, err } if err = inferTypeAsTimestamp(tval1); err != nil { return nil, err } ts1, ok := tval1.ToTimestamp() if !ok { return nil, fmt.Errorf("%s() expects two timestamp arguments", sqlFnDateDiff) } tval2, err := d.Timestamp2.evalNode(r, tableAlias) if err != nil { return nil, err } if err = inferTypeAsTimestamp(tval2); err != nil { return nil, err }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 13.2K bytes - Viewed (0) -
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)