- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ToFloat (0.29 sec)
-
internal/s3select/json/record.go
} // Set - sets the value for a column name. func (r *Record) Set(name string, value *sql.Value) (sql.Record, error) { var v interface{} if b, ok := value.ToBool(); ok { v = b } else if f, ok := value.ToFloat(); ok { v = f } else if i, ok := value.ToInt(); ok { v = i } else if t, ok := value.ToTimestamp(); ok { v = sql.FormatSQLTimestamp(t) } else if s, ok := value.ToString(); ok { v = s
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Feb 25 20:31:19 GMT 2022 - 5.2K bytes - Viewed (0) -
internal/s3select/sql/aggregation.go
case aggFnCount: // For all non-null values, the count is incremented. e.aggregate.runningCount++ case aggFnAvg, aggFnSum: e.aggregate.runningCount++ // Convert to float. 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)
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sat Dec 23 07:19:11 GMT 2023 - 7.9K bytes - Viewed (0)