Skip to content

Instantly share code, notes, and snippets.

@scudette
Created April 16, 2020 03:41
Show Gist options
  • Save scudette/9ca408f7a77469a601c154e2e580b94a to your computer and use it in GitHub Desktop.
Save scudette/9ca408f7a77469a601c154e2e580b94a to your computer and use it in GitHub Desktop.
test artifact
name: TestMe
parameters:
- name: data
default: |
[{
"config": [
{
"AttrCONFIG.SECTION": "SECTION 1"
},
{
"AttrCONFIG.SECTION": "SECTION 2"
}]
}
]
sources:
- query: |
LET conf = SELECT * FROM foreach(row=parse_json_array(data=data), query={
SELECT config from scope()
})
SELECT * FROM foreach(row=conf, query={
SELECT * FROM foreach(row=config,
query={
SELECT get(field='AttrCONFIG.SECTION') from scope()
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment