- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for jsonpathEval (0.16 sec)
-
internal/s3select/sql/jsonpath.go
errWildcardObjectUsageInvalid = errors.New("Invalid usage of object wildcard") ) // jsonpathEval evaluates a JSON path and returns the value at the path. // If the value should be considered flat (from wildcards) any array returned should be considered individual values. func jsonpathEval(p []*JSONPathElement, v any) (r any, flat bool, err error) { // fmt.Printf("JPATHexpr: %v jsonobj: %v\n\n", p, v)
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 3.4K bytes - Viewed (0) -
internal/s3select/sql/statement.go
} _, rawVal := input.Raw() if format != "json" { return nil, errDataSource(errors.New("path not supported")) } switch rec := rawVal.(type) { case jstream.KVS: txedRec, _, err := jsonpathEval(e.selectAST.From.Table.PathExpr[1:], rec) if err != nil { return nil, err } var kvs jstream.KVS switch v := txedRec.(type) { case jstream.KVS: kvs = v case []any:
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 9K bytes - Viewed (0) -
internal/s3select/sql/jsonpath_test.go
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 2.7K bytes - Viewed (0) -
internal/s3select/sql/evaluate.go
switch rowVal := rawVal.(type) { case jstream.KVS, simdjson.Object: if len(pathExpr) == 0 { pathExpr = []*JSONPathElement{{Key: &ObjectKey{ID: e.BaseKey}}} } result, _, err := jsonpathEval(pathExpr, rowVal) if err != nil { return nil, err } return jsonToValue(result) default: if pathExpr[len(pathExpr)-1].Key == nil { return nil, errInvalidKeypath }Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 12K bytes - Viewed (0)