- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for bytesToFloat (0.12 sec)
-
internal/s3select/sql/value.go
// Check for numeric inference iA, okAi := a.bytesToInt() iB, okBi := b.bytesToInt() if okAi && okBi { a.setInt(iA) b.setInt(iB) return nil } fA, okAf := a.bytesToFloat() fB, okBf := b.bytesToFloat() if okAf && okBf { a.setFloat(fA) b.setFloat(fB) return nil } // Check if they int and float combination. if okAi && okBf { a.setInt(iA)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Feb 25 20:31:19 UTC 2022 - 20.2K bytes - Viewed (0) -
internal/s3select/sql/value_test.go
t.Run(tt.name, func(t *testing.T) { v := Value{ value: tt.fields.value, } got, got1 := v.bytesToFloat() diff := math.Abs(got - tt.want) if diff > floatCmpTolerance { t.Errorf("bytesToFloat() got = %v, want %v", got, tt.want) } if got1 != tt.wantOK { t.Errorf("bytesToFloat() got1 = %v, want %v", got1, tt.wantOK) } }) } } func TestValue_bytesToBool(t *testing.T) {
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/aggregation.go
// Here, we diverge from Amazon S3 behavior by // inferring untyped values are numbers. if !argVal.isNumeric() { if i, ok := argVal.bytesToInt(); ok { argVal.setInt(i) } else if f, ok := argVal.bytesToFloat(); ok { argVal.setFloat(f) } else { return errNonNumericArg(funcName) } } } // Mark that we have seen one non-null value. isFirstRow := false if !e.aggregate.seen {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Dec 23 07:19:11 UTC 2023 - 7.9K bytes - Viewed (0)