| { |
| "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:///", |
| "enabled": true |
| }, |
| "files" : [ "#{TEST_FILE}" ] |
| }, { |
| "pop" : "project", |
| "@id" : 2, |
| "child" : 1, |
| "exprs" : [ { |
| "ref" : "TS1", |
| "expr" : "age(cast('2010-01-01 10:10:10' as timestamp), cast('2001-01-01 11:10:10' as timestamp))" |
| }, { |
| "ref" : "TS2", |
| "expr" : "age(cast('2010-01-01 11:10:10' as timestamp), cast('2001-01-01 10:10:10' as timestamp))" |
| }, { |
| "ref" : "D1", |
| "expr" : "age(cast('2005-07-11' as date), cast('1991-04-29' as date))" |
| }, { |
| "ref" : "D2", |
| "expr" : "age(cast('1991-04-29' as date), cast('2005-07-11' as date))" |
| }, { |
| "ref" : "TS3", |
| "expr" : "age(cast('1997-12-17 23:37:54' as timestamp), cast('2001-03-20 17:17:27' as timestamp))" |
| }, { |
| "ref" : "TS4", |
| "expr" : "age(cast('1997-12-17 17:17:27' as timestamp), cast('2001-03-20 23:37:54' as timestamp))" |
| }, { |
| "ref" : "TS5", |
| "expr" : "age(cast('2021-02-01 00:29:00' as timestamp), cast('2021-01-31 23:30:00' as timestamp))" |
| }, { |
| "ref" : "UD1", |
| "expr" : "age(current_date())" |
| }, { |
| "ref" : "UTS1", |
| "expr" : "age(cast(current_date() as timestamp))" |
| }, { |
| "ref" : "UD2", |
| "expr" : "age(add(current_date(), 3))" |
| }, { |
| "ref" : "UTS2", |
| "expr" : "age(subtract(add(subtract(current_date() , cast('P3D' as INTERVALDAY)) , cast('PT3600S' as INTERVALDAY)) , cast('PT1800S' as INTERVALDAY)))" |
| } ] |
| }, { |
| "@id" : 3, |
| "child" : 2, |
| "pop" : "screen" |
| } ] |
| } |