| { |
| "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: "Date1", expr: "cast('2008-2-23' as date) - cast('2007-2-23' as date)"}, |
| { ref: "TimeStamp1", expr: "cast('2008-2-23 12:00:00' as timestamp) - cast('2009-2-23 12:01:00' as timestamp) "}, |
| { ref: "Time2", expr: "cast('12:20:30' as time) - cast('1:20:30' as time)"} |
| ] |
| }, |
| { |
| @id: 3, |
| child: 2, |
| pop: "screen" |
| } |
| ] |
| } |