| { |
| version: '1.0', |
| schemas: [ |
| { |
| name: 'DONUTS', |
| tables: [ |
| { |
| name: 'DONUTS', |
| type: 'custom', |
| factory: 'org.apache.drill.jdbc.DrillTable$Factory', |
| operand: { |
| path: '/donuts.json', |
| useReferenceInterpreter: 'true' |
| } |
| } |
| ] |
| }, |
| { |
| name: 'HR', |
| tables: [ |
| { |
| name: 'EMPLOYEES', |
| type: 'custom', |
| factory: 'org.apache.drill.jdbc.DrillTable$Factory', |
| operand: { |
| path: '/donuts.json', |
| useReferenceInterpreter: 'true' |
| } |
| }, |
| { |
| name: 'DEPARTMENTS', |
| type: 'custom', |
| factory: 'org.apache.drill.jdbc.DrillTable$Factory', |
| operand: { |
| path: '/donuts.json', |
| useReferenceInterpreter: 'true' |
| } |
| }, |
| { |
| name: 'EMP', |
| type: 'view', |
| sql: 'select _MAP[\'deptId\'] as deptid, cast(_MAP[\'lastName\'] as varchar) as lastName from employees' |
| }, |
| { |
| name: 'DEPT', |
| type: 'view', |
| sql: 'select _MAP[\'deptId\'] as deptid, _MAP[\'name\'] as name from departments' |
| } |
| ] |
| }, |
| { |
| name: 'FOODMART', |
| tables: [ |
| { |
| name: 'PRODUCT_CLASS', |
| type: 'custom', |
| factory: 'org.apache.drill.jdbc.DrillTable$Factory', |
| operand: { |
| path: '/donuts.json', |
| useReferenceInterpreter: 'true' |
| } |
| }, |
| { |
| name: 'TIME_BY_DAY', |
| type: 'custom', |
| factory: 'org.apache.drill.jdbc.DrillTable$Factory', |
| operand: { |
| path: '/donuts.json', |
| useReferenceInterpreter: 'true' |
| } |
| } |
| ] |
| } |
| ] |
| } |