- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for FromBool (0.06 sec)
-
internal/s3select/sql/evaluate.go
if arr, ok := rhs.ToArray(); ok { for _, element := range arr { // If we have an array we are on the wrong level. if cmp(element, *lhs) { return FromBool(true), nil } } return FromBool(false), nil } return FromBool(cmp(rhs, *lhs)), nil } func (e *Operand) 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) -
internal/s3select/simdj/record.go
v, err := iter.Float() return sql.FromFloat(v), err } return sql.FromInt(v), nil case simdjson.TypeBool: v, err := iter.Bool() if err != nil { return nil, err } return sql.FromBool(v), nil case simdjson.TypeNull: return sql.FromNull(), nil case simdjson.TypeObject, simdjson.TypeArray: b, err := iter.MarshalJSON() return sql.FromBytes(b), err }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 5.4K bytes - Viewed (0) -
internal/s3select/sql/value_test.go
"testing" "time" ) // valueBuilders contains one constructor for each value type. // Values should match if type is the same. var valueBuilders = []func() *Value{ FromNull, func() *Value { return FromBool(true) }, func() *Value { return FromBytes([]byte("byte contents")) }, func() *Value { return FromFloat(math.Pi) }, func() *Value { return FromInt(0x1337) }, func() *Value {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Mar 06 16:56:10 UTC 2023 - 12.5K bytes - Viewed (0) -
internal/s3select/sql/value.go
func FromInt(f int64) *Value { return &Value{value: f} } // FromString creates a Value from a string func FromString(str string) *Value { return &Value{value: str} } // FromBool creates a Value from a bool func FromBool(b bool) *Value { return &Value{value: b} } // FromTimestamp creates a Value from a timestamp func FromTimestamp(t time.Time) *Value { return &Value{value: t} }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Feb 25 20:31:19 UTC 2022 - 20.2K bytes - Viewed (0)