Created
April 16, 2020 03:41
-
-
Save scudette/9ca408f7a77469a601c154e2e580b94a to your computer and use it in GitHub Desktop.
test artifact
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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