roots, Inc. All rights reserved. 11 Tokyo dbt Meetup #9 従来のセマンティックレイヤー Notebooks Frontend Apps AI Platforms BI Tools ユニバーサル・セマンティックレイヤー Notebooks Frontend Apps AI Platforms BI Tools Metrics Layer Metrics Layer Access Control Caching APIs
Inc. All rights reserved. 12 Tokyo dbt Meetup #9 理由 1: メトリクスの管理以外にも多くの役割を持つ Metrics Layer 理由 2: BI の枠を越えた汎用性の高い技術 Access Control Caching APIs BI Tools Notebooks Frontend Apps AI Platforms
and roots, Inc. All rights reserved. 39 Tokyo dbt Meetup #9 fct_order MDL order_fact SEM Semantic Graph dim_date MDL date_dimension SEM dim_product MDL product_dimension SEM dim_user MDL user_dimension SEM dim_order_junk MDL order_junk_dimension SEM sum_revenue MET sum_kitchen_revenue MET pct_kitchen_revenue MET Semantic Graph は、MetricFlow を可視化したもの。Semantic Models と Metrics との関係性 を表現したグラフ構造(DAG)。Semantic models や Metrics は DAG のノードとして表現さ れる。ゆえに Semantic Models 同士の関係性は可視化されない。
and roots, Inc. All rights reserved. 48 Tokyo dbt Meetup #9 CIF ( Corporate Information Factory ) Inmon Architecture を採用。 Data Warehouse: • Normalized tables (3NF) • Atomic data • Current business object • Soft business rules • Reference data Staging Area: • Many forms • Atomic data • Historical business object • Hard business rules • Meta data Data Marts: • OBT • Often summarized • Often department • Often target list Applications: • Looker Studio • Google Sheets • その他 フロントルーム バックルーム BigQuery
All rights reserved. 51 Tokyo dbt Meetup #9 Intermediate: • Many forms • Structural simplification • Re-graining • Isolating complex operations • Soft business rules Staging Area: • Many forms • Atomic data • Historical business object • Hard business rules • Meta data Presentation Area: • Dimensional (Star Schema) • Atomic and summary data • Organized by business process • Uses conformed dimension フロントルーム バックルーム BigQuery Applications: • Tableau (仮) • Mode (仮) • Hex (仮) • Google Sheets • Push.ai (仮) • その他 3. まだ dbt Semantic Layer を採用できない理由
dbt Meetup #9 Appendix このスライドの作成にあたり、以下の URL と書籍を参考にさせていただきました。 セマンティックレイヤー: • The Rise of the Semantic Layer: Metrics On-The-Fly | Airbyte • The Semantics of the Semantic Layer | AtScale • Rethinking Modern Business Intelligence with a Universal Semantic Layer | Cube • Why we need a universal semantic layer | dbt • Design Tip #158 Making Sense of the Semantic Layer | KIMBALL GROUP • セマンティックレイヤー / Headless BIとは | Zenn, たくまんさん(@takumanken) dbt Semantic Layer: • About MetricFlow | dbt • Semantic models | dbt • Metrics | dbt • dbt Semantic Layer FAQs | dbt ディメンショナルモデリング: • Kimball, Ralph, and Margy Ross. "The Data Warehouse Toolkit: The Definitive Guide to Dimensional Modeling". 3rd Edition, Wiley, July 1, 2013. • Adamson, Christopher. "Star Schema: The Complete Reference". McGraw-Hill Osborne Media, July 7, 2010.