Metadata view_hierarchy_depth_analysis
Metadata benchmark · all Metadata queries
Representative SQL
Rendered in the benchmark’s native SQL with default parameters (no dialect translation available).
SELECT table_name AS view_name, CASE WHEN table_name LIKE '%_d1' THEN 1 WHEN table_name LIKE '%_d2' THEN 2 WHEN table_name LIKE '%_d3' THEN 3 WHEN table_name LIKE '%_d4' THEN 4 WHEN table_name LIKE '%_d5' THEN 5 ELSE 0 END AS depth_levelFROM information_schema.viewsWHERE table_name LIKE 'benchbox_view_%'ORDER BY depth_level, table_nameRepresentative DataFrame
No DataFrame implementation is registered for this query.
Get the exact query for your run
The blocks above are representative. To get the precise statement a specific platform runs at a specific scale, substitute your own values:
from benchbox import MetadataPrimitives
bench = MetadataPrimitives(scale_factor=1.0) # your scale factorprint(bench.get_queries()['view_hierarchy_depth_analysis'])Source
Query text: benchbox/core/metadata_primitives/queries.py