We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given some JSON like this:
[ { "labels": { "foo.bar.baz/qux": 42 } } ]
I expect to be able to grab the innermost field like this (or with some other syntax):
parse-json | extend "quux"="labels.foo.bar.baz/qux"
But it's silently missed.
Here it is in the Infinity datasource:
Looking at get_single_value (
get_single_value
uql/src/parser/utils.ts
Line 5 in 3882e4d
get
> _.get({"l": {"a.b": 42}}, "l.a.b") undefined > _.get({"l": {"a.b": 42}}, ["l", "a.b"]) 42
I wonder if the fix is as simple as changing get_single_value's query type from string to any?
query
string
any
The text was updated successfully, but these errors were encountered:
What about extend "quax"="labels['foo.bar.baz/qux']" as a workaround? Haven't tested btw.
extend "quax"="labels['foo.bar.baz/qux']"
Sorry, something went wrong.
@yesoreyeram ah! that works! I guess some documentation is missing somewhere 😅
No branches or pull requests
Given some JSON like this:
I expect to be able to grab the innermost field like this (or with some other syntax):
But it's silently missed.
Here it is in the Infinity datasource:
Looking at
get_single_value
(uql/src/parser/utils.ts
Line 5 in 3882e4d
get
, which can work around the issue by taking an array-type argument:I wonder if the fix is as simple as changing
get_single_value
'squery
type fromstring
toany
?The text was updated successfully, but these errors were encountered: