| { |
| 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(cast(float4col as bigint) as varchar(10))" }, |
| { ref: "intcol", expr:"intcol" }, |
| { ref: "int_float4_add", expr:"cast(intcol as bigint) + cast(float4col as bigint)" }, |
| { ref: "bigintcol", expr:"bigintcol" }, |
| { ref: "bigint2varchar2int", expr:"cast(cast(bigintcol as varchar(8)) as int)" }, |
| { ref: "add_cast", expr:"cast('100' as int) + cast(cast(200 as varchar(8)) as int)"} |
| ] |
| }, |
| { |
| @id: 3, |
| child: 2, |
| pop: "screen" |
| } |
| ] |
| } |