Skip to content

Commit

Permalink
add thoughts on schema transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
cyyeh committed Jul 10, 2024
1 parent 53a0053 commit b1996fc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions wren-ai-service/nebula_poc.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit b1996fc

Please sign in to comment.