| { |
| "head":{ |
| "type":"APACHE_DRILL_PHYSICAL", |
| "version":"1", |
| "generator":{ |
| "type":"manual" |
| } |
| }, |
| "graph" : [ { |
| "pop" : "fs-scan", |
| "@id" : 1, |
| "files" : [ #{TEST_FILE} ], |
| "storage" : { |
| "type" : "file", |
| "connection" : "file:///", |
| "enabled": true, |
| "workspaces" : { |
| "root" : { |
| "location" : "/", |
| "writable" : false |
| }, |
| "tmp" : { |
| "location" : "/tmp", |
| "writable" : true |
| } |
| }, |
| "formats" : { |
| "psv" : { |
| "type" : "text", |
| "extensions" : [ "tbl" ], |
| "delimiter" : "|" |
| }, |
| "csv" : { |
| "type" : "text", |
| "extensions" : [ "csv" ], |
| "delimiter" : "," |
| }, |
| "tsv" : { |
| "type" : "text", |
| "extensions" : [ "tsv" ], |
| "delimiter" : "\t" |
| }, |
| "parquet" : { |
| "type" : "parquet" |
| }, |
| "json" : { |
| "type" : "json" |
| } |
| } |
| }, |
| "format" : { |
| "type" : "json" |
| }, |
| "columns" : [ "`id`", "`summary`" ], |
| "selectionRoot" : #{TEST_FILE} |
| }, { |
| "pop" : "project", |
| "@id" : 2, |
| "exprs" : [ { |
| "ref" : "`id`", |
| "expr" : "`id`" |
| }, { |
| "ref" : "`summary`", |
| "expr" : "`summary`" |
| } ], |
| "child" : 1, |
| "initialAllocation" : 1000000, |
| "maxAllocation" : 10000000000 |
| }, { |
| "pop" : "hash-to-random-exchange", |
| "@id" : 3, |
| "child" : 2, |
| "expr" : "hash(`id`) ", |
| "initialAllocation" : 1000000, |
| "maxAllocation" : 10000000000 |
| }, { |
| "pop" : "external-sort", |
| "@id" : 4, |
| "child" : 3, |
| "orderings" : [ { |
| "order" : "ASC", |
| "expr" : "`id`", |
| "nullDirection" : "UNSPECIFIED" |
| } ], |
| "reverse" : false, |
| "initialAllocation" : 1000000, |
| "maxAllocation" : 10000000000 |
| }, { |
| "pop" : "selection-vector-remover", |
| "@id" : 5, |
| "child" : 4, |
| "initialAllocation" : 1000000, |
| "maxAllocation" : 10000000000 |
| }, { |
| "pop" : "single-merge-exchange", |
| "@id" : 6, |
| "child" : 5, |
| "orderings" : [ { |
| "order" : "ASC", |
| "expr" : "`id`", |
| "nullDirection" : "UNSPECIFIED" |
| } ], |
| "initialAllocation" : 1000000, |
| "maxAllocation" : 10000000000 |
| }, { |
| "pop" : "screen", |
| "@id" : 7, |
| "child" : 6, |
| "initialAllocation" : 1000000, |
| "maxAllocation" : 10000000000 |
| } ] |
| } |