|
1 |
| -/* --title 'Table Types' --filter name --width 6 */ |
| 1 | +/* |
| 2 | +--title 'Table Types' |
| 3 | +--filter name |
| 4 | +--width 6 |
| 5 | +--overrides '{"spec":{ |
| 6 | + "encodings":{ |
| 7 | + "columns": [ |
| 8 | + {"fieldName": "name", "booleanValues": ["false", "true"], "linkUrlTemplate": "/explore/data/hive_metastore/{{ @ }}", "linkTextTemplate": "{{ @ }}", "linkTitleTemplate": "{{ @ }}", "linkOpenInNewTab": true, "type": "string", "displayAs": "link", "title": "name"}, |
| 9 | + {"fieldName": "type", "booleanValues": ["false", "true"], "type": "string", "displayAs": "string", "title": "type"}, |
| 10 | + {"fieldName": "format", "booleanValues": ["false", "true"], "type": "string", "displayAs": "string", "title": "format"}, |
| 11 | + {"fieldName": "storage", "booleanValues": ["false", "true"], "type": "string", "displayAs": "string", "title": "storage"}, |
| 12 | + {"fieldName": "is_delta", "booleanValues": ["false", "true"], "type": "string", "displayAs": "string", "title": "is_delta"}, |
| 13 | + {"fieldName": "location", "booleanValues": ["false", "true"], "type": "string", "displayAs": "string", "title": "location"}, |
| 14 | + {"fieldName": "table_size", "booleanValues": ["false", "true"], "type": "string", "displayAs": "string", "title": "table_size"} |
| 15 | + ]} |
| 16 | + }}' |
| 17 | +*/ |
2 | 18 | SELECT
|
3 | 19 | CONCAT(tables.`database`, '.', tables.name) AS name,
|
4 | 20 | object_type AS type,
|
|
42 | 58 | FROM inventory.tables AS tables
|
43 | 59 | LEFT OUTER JOIN inventory.table_size AS table_size
|
44 | 60 | ON tables.catalog = table_size.catalog AND tables.database = table_size.database AND tables.name = table_size.name
|
| 61 | +ORDER by type, name |
0 commit comments