- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for bytesToInt (0.26 sec)
-
internal/s3select/sql/value_test.go
for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { v := &Value{ value: tt.fields.value, } got, got1 := v.bytesToInt() if got != tt.want { t.Errorf("bytesToInt() got = %v, want %v", got, tt.want) } if got1 != tt.wantOK { t.Errorf("bytesToInt() got1 = %v, want %v", got1, tt.wantOK) } }) } } func TestValue_bytesToFloat(t *testing.T) { type fields struct {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Mar 06 16:56:10 GMT 2023 - 12.5K bytes - Viewed (0) -
internal/s3select/sql/value.go
return nil case okA && okB: // Both Values are untyped so try the types in order: // int, float, bool, string // 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)
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Feb 25 20:31:19 GMT 2022 - 20.2K bytes - Viewed (0) -
internal/s3select/sql/aggregation.go
// numeric argument. // 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) } } }
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)