blob: 4e58a3c2253c23808176041d3dafa87dcf511c9e [file] [log] [blame]
{
"head" : {
"version" : 1,
"generator" : {
"type" : "org.apache.drill.exec.planner.logical.DrillImplementor",
"info" : ""
},
"type" : "APACHE_DRILL_PHYSICAL",
"resultMode" : "EXEC"
},
graph:[
{
@id:1,
pop:"fs-scan",
format: {type: "json"},
storage:{type: "file", connection: "classpath:///"},
files:["#{TEST_FILE}"]
},
{
pop:"project",
@id:2,
child: 1,
exprs: [ {
ref: "castExp", expr: "cast(#{COLUMN_NAME} as #{TEST_TYPE})"
} ]
},
{
pop:"project",
@id:3,
child: 2,
exprs: [
{ ref: "extractMinute", expr: "extractMinute(castExp)" },
{ ref: "extractHour", expr: "extractHour(castExp)" },
{ ref: "extractDay", expr: "extractDay(castExp)" },
{ ref: "extractMonth", expr: "extractMonth(castExp)" },
{ ref: "extractYear", expr: "extractYear(castExp)" }
]
},
{
@id: 4,
child: 3,
pop: "screen"
}
]
}