| { |
| head:{ |
| type:"APACHE_DRILL_PHYSICAL", |
| version:"1", |
| generator:{ |
| type:"manual" |
| } |
| }, |
| graph:[ |
| { |
| @id:1, |
| pop:"mock-sub-scan", |
| url: "http://apache.org", |
| entries:[ |
| {records: 5, types: [ |
| {name: "float4col", type: "FLOAT4", mode: "REQUIRED"}, |
| {name: "float8col", type: "FLOAT8", mode: "REQUIRED"} , |
| {name: "intcol", type: "INT", mode: "REQUIRED"} , |
| {name: "bigintcol", type: "BIGINT", mode: "REQUIRED"} |
| ]} |
| ] |
| }, |
| { |
| @id:2, |
| child: 1, |
| pop:"project", |
| exprs: [ |
| { ref: "float4col", expr:"float4col" }, |
| { ref: "float4_cast", expr:"cast(float4col as bigint)" }, |
| { ref: "float8col", expr:"float8col" }, |
| { ref: "float8_cast", expr:"cast(float8col as bigint)" }, |
| { ref: "intcol", expr:"intcol" }, |
| { ref: "int_cast", expr:"cast(intcol as bigint)" }, |
| { ref: "varchar_cast", expr:"cast('1256' as bigint)" } |
| ] |
| }, |
| { |
| @id: 3, |
| child: 2, |
| pop: "screen" |
| } |
| ] |
| } |