| { |
| head:{ |
| type:"APACHE_DRILL_PHYSICAL", |
| version:"1", |
| generator:{ |
| type:"manual" |
| } |
| }, |
| graph:[ |
| { |
| @id:1, |
| pop:"mock-sub-scan", |
| url: "http://apache.org", |
| entries:[ |
| {records: 1, types: [ |
| {name: "varcharcol", type: "VARCHAR", mode: "REQUIRED"}, |
| {name: "nullvarcharcol", type: "VARCHAR", mode: "OPTIONAL"} |
| ]} |
| ] |
| }, |
| { |
| @id:2, |
| child: 1, |
| pop:"project", |
| exprs: [ |
| { ref: "col1", expr: "replace('aababcdf', 'ab', 'AB')"}, |
| { ref: "col2", expr: "replace('aababcdf', 'a', 'AB')"}, |
| { ref: "col3", expr: "replace('aababcdf', '', 'AB')"}, |
| { ref: "col4", expr: "replace('aababcdf', 'ab', '')"}, |
| { ref: "col5", expr: "replace('abc', 'abc', 'ABCD')"}, |
| { ref: "col6", expr: "replace('abc', 'abcdefg', 'ABCD')"} |
| ] |
| }, |
| { |
| @id: 3, |
| child: 2, |
| pop: "screen" |
| } |
| ] |
| } |