| { |
| head:{ |
| type:"APACHE_DRILL_PHYSICAL", |
| version:"1", |
| generator:{ |
| type:"manual" |
| } |
| }, |
| graph:[ |
| { |
| @id:1, |
| pop:"mock-scan", |
| url: "http://apache.org", |
| entries:[ |
| {records: 1000, types: [ |
| {name: "green", type: "VARBINARY", mode: "REQUIRED"} |
| ]}, |
| {records: 5000, types: [ |
| {name: "green", type: "VARBINARY", mode: "REQUIRED"} |
| ]}, |
| {records: 10000, types: [ |
| {name: "green", type: "VARBINARY", mode: "REQUIRED"} |
| ]}, |
| {records: 15000, types: [ |
| {name: "green", type: "INT", mode: "REQUIRED"} |
| ]} |
| ] |
| }, |
| { |
| @id:2, |
| child: 1, |
| pop:"project", |
| exprs: [ |
| { ref: "col1", expr:"randomBigInt(5)"}, |
| { ref: "col2", expr:"randomFloat8(1000)"} |
| ] |
| }, |
| { |
| @id: 3, |
| child: 2, |
| pop: "ordered-partition-exchange", |
| orderings: [ |
| {expr: "col1", order: "ASC"}, |
| {expr: "col2", order: "DESC"} |
| ], |
| ref: "partition", |
| recordsToSample: 15000, |
| completionFactor: 0.8 |
| }, |
| { |
| @id: 4, |
| child: 3, |
| pop: "union-exchange" |
| }, |
| { |
| @id:5, |
| child: 4, |
| pop:"sort", |
| orderings: [ |
| {expr: "partition"}, |
| {expr: "col1"}, |
| {expr: "col2", order: "DESC"} |
| ] |
| }, |
| { |
| @id:6, |
| child: 5, |
| pop:"selection-vector-remover" |
| }, |
| { |
| @id: 7, |
| child: 6, |
| pop: "screen" |
| } |
| ] |
| } |