| { |
| head:{ |
| type:"APACHE_DRILL_PHYSICAL", |
| version:"1", |
| generator:{ |
| type:"manual" |
| } |
| }, |
| graph:[ |
| { |
| @id:1, |
| pop:"mock-sub-scan", |
| url: "http://apache.org", |
| entries:[ |
| {records: 100, types: [ |
| {name: "blue", type: "INT", mode: "REQUIRED"}, |
| {name: "red", type: "BIGINT", mode: "REQUIRED"}, |
| {name: "yellow", type: "VARCHAR", mode: "OPTIONAL"}, |
| {name: "green", type: "INT", mode: "REQUIRED"} |
| ]} |
| ] |
| }, |
| { |
| @id:2, |
| child: 1, |
| pop:"project", |
| exprs: [ |
| { ref: "col3", expr:"substring(yellow, -3, 2)" } |
| ] |
| }, |
| { |
| @id: 3, |
| child: 2, |
| pop: "screen" |
| } |
| ] |
| } |