From b1996fc035c1615a4fdb8af0f4b19ce88cf2b654 Mon Sep 17 00:00:00 2001 From: ChihYu Yeh Date: Sun, 26 May 2024 13:47:44 +0800 Subject: [PATCH] add thoughts on schema transformation --- wren-ai-service/nebula_poc.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/wren-ai-service/nebula_poc.py b/wren-ai-service/nebula_poc.py index 116c78c8e6..f5553feebe 100644 --- a/wren-ai-service/nebula_poc.py +++ b/wren-ai-service/nebula_poc.py @@ -1,3 +1,20 @@ +""" +Thoughts on mapping mdl's data model to nebula's property graph schema +For models, columns and relationships: +1. each table in mdl will be a vertex in nebula +2. each column in mdl will also be a vertex in nebula +3. columns will have a relationship with the table they belong to +4. relationships between tables will be represented as edges between each column from respective table +5. we don't need to store the data in nebula, just the schema + +For metrics: + + +For views: + + +""" + import json from nebula3.Config import Config