| { |
| 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: "bigintcol", type: "BIGINT", mode: "REQUIRED"}, |
| {name: "intcol", type: "INT", mode: "REQUIRED"}, |
| {name: "float4col", type: "FLOAT4", mode: "REQUIRED"}, |
| {name: "float8col", type: "FLOAT8", mode: "REQUIRED"}, |
| {name: "varbinarycol", type: "VARBINARY", mode: "REQUIRED"} |
| ]} |
| ] |
| }, |
| { |
| @id:2, |
| child: 1, |
| pop:"project", |
| exprs: [ |
| { ref: "bigint1", expr:"cast(bigintcol as varchar(10))" }, |
| { ref: "bigint2", expr:"cast(bigintcol as varchar(30))" }, |
| { ref: "bigint3", expr:"cast(bigintcol as varchar(2))" }, |
| { ref: "int1", expr:"cast(intcol as varchar(10))" }, |
| { ref: "int2", expr:"cast(intcol as varchar(2))" }, |
| { ref: "float4_1", expr:"cast(float4col as varchar(2))" }, |
| { ref: "float4_2", expr:"cast(float4col as varchar(15))" }, |
| { ref: "float8_1", expr:"cast(float8col as varchar(2))" }, |
| { ref: "float8_2", expr:"cast(float8col as varchar(15))" }, |
| { ref: "varbinarycol", expr:"varbinarycol"}, |
| { ref: "varbinary_cast1", expr:"cast(varbinarycol as varchar(15))" }, |
| { ref: "varbinary_cast2", expr:"cast(varbinarycol as varchar(2))" }, |
| { ref: "int_lit_cast", expr:"cast(123 as varchar(10))"} |
| ] |
| }, |
| { |
| @id: 3, |
| child: 2, |
| pop: "screen" |
| } |
| ] |
| } |