blob: 62f9dca612dbf81cc678e165ba2428e0ed01e279 [file] [log] [blame]
{
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: "varcharcol", type: "VARCHAR", mode: "REQUIRED"}
]}
]
},
{
@id:2,
child: 1,
pop:"project",
exprs: [
{ ref: "bigintcol", expr:"bigintcol" },
{ ref: "bigintcast1", expr:"cast(bigintcol as varbinary(10))" },
{ ref: "bigintcast2", expr:"cast(bigintcol as varbinary(30))" },
{ ref: "bigintcast3", expr:"cast(bigintcol as varbinary(2))" },
{ ref: "intcol", expr:"intcol" },
{ ref: "intcast1", expr:"cast(intcol as varbinary(10))" },
{ ref: "intcast2", expr:"cast(intcol as varbinary(2))" },
{ ref: "float4col", expr:"float4col" },
{ ref: "float4cast1", expr:"cast(float4col as varbinary(2))" },
{ ref: "float4cast2", expr:"cast(float4col as varbinary(15))" },
{ ref: "float8col", expr:"float8col" },
{ ref: "float8cast1", expr:"cast(float8col as varbinary(2))" },
{ ref: "float8cast2", expr:"cast(float8col as varbinary(15))" },
{ ref: "varcharcol", expr:"varcharcol" },
{ ref: "varchar_cast1", expr:"cast(varcharcol as varbinary(30))" },
{ ref: "varchar_cast2", expr:"cast(varcharcol as varbinary(2))" },
{ ref: "int_lit_cast", expr:"cast(123 as varbinary(5))" }
]
},
{
@id: 3,
child: 2,
pop: "screen"
}
]
}