- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for inferTypeAsString (0.12 sec)
-
internal/s3select/sql/funceval.go
} func charlen(v *Value) (*Value, error) { inferTypeAsString(v) s, ok := v.ToString() if !ok { err := fmt.Errorf("%s/%s expects a string argument", sqlFnCharLength, sqlFnCharacterLength) return nil, errIncorrectSQLFunctionArgumentType(err) } return FromInt(int64(len([]rune(s)))), nil } func lowerCase(v *Value) (*Value, error) { inferTypeAsString(v) s, ok := v.ToString() if !ok {
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/evaluate.go
inferTypeAsString(arg) s, ok := arg.ToString() if !ok { err := errLikeNonStrArg return nil, errLikeInvalidInputs(err) } pattern, err1 := e.Pattern.evalNode(r, tableAlias) if err1 != nil { return nil, err1 } // Infer pattern as string (in case it is untyped) inferTypeAsString(pattern) patternStr, ok := pattern.ToString()
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/sql/value.go
t, err := parseSQLTimestamp(s) if err != nil { return err } v.setTimestamp(t) } return nil } // inferTypeAsString is used to convert untyped values to string - it // is called when the caller requires a string context to proceed. func inferTypeAsString(v *Value) { b, ok := v.ToBytes() if !ok { return } v.setString(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)