| { | |
| head:{ | |
| type:"APACHE_DRILL_PHYSICAL", | |
| version:"1", | |
| generator:{ | |
| type:"manual" | |
| } | |
| }, | |
| graph:[ | |
| { | |
| @id:1, | |
| pop:"fs-scan", | |
| format: {type: "json"}, | |
| storage:{type: "file", connection: "file:///"}, | |
| files:["#{DATA_FILE}"] | |
| }, | |
| { | |
| @id:2, | |
| child: 1, | |
| pop:"external-sort", | |
| orderings: [ | |
| {expr: "a"} | |
| ] | |
| }, | |
| { | |
| @id:3, | |
| child: 2, | |
| pop:"window", | |
| within: [ | |
| { ref: "a", expr: "a" } | |
| ], | |
| aggregations: [ | |
| { ref: "cnt", expr:"count(1)" }, | |
| { ref: "sum", expr:"sum(b)" } | |
| ] | |
| }, | |
| { | |
| @id: 4, | |
| child: 3, | |
| pop: "screen" | |
| } | |
| ] | |
| } |