Open luizcarloszup opened 9 months ago
Sugestão de modelagem
Sugestão de Payload
users
{
"name": "users",
"type": "API",
"fields":[
{
"name": "id",
"metadata": {
"type": "int",
"required": true
}
},
{
"name": "username",
"metadata": {
"type": "varchar",
"length": 50,
"required": true
}
},
{
"name": "gender",
"metadata": {
"type": "char",
"length": 5,
"required": true
}
},
{
"name": "email",
"metadata": {
"type": "varchar",
"length": 250,
"required": true
}
}
]
}
sales
{
"name": "sales",
"type": "ADAPTER",
"fields":[
{
"name": "sales_id",
"metadata": {
"type": "int",
"required": true
}
},
{
"name": "client_id",
"metadata": {
"type": "int",
"required": true
}
},
{
"name": "gross_value",
"metadata": {
"type": "float",
"scale": 5,
"precision": 18,
"required": true
}
},
{
"name": "net_value",
"metadata": {
"type": "float",
"scale": 5,
"precision": 18,
"required": true
}
}
]
}
_user_salessum
{
"name": "user_sales_sum",
"type": "DATASET",
"fields":[
{
"name": "id",
"metadata": {
"type": "int",
"required": true
},
"sources": [
{
"name": "users",
"fields": [
"id"
]
},
{
"name": "sales",
"fields": [
"client_id"
]
}
]
},
{
"name": "total_gross_value",
"metadata": {
"type": "float",
"scale": 5,
"precision": 18,
"required": true
},
"sources": [
{
"name": "sales",
"fields": [
"gross_value"
]
}
]
}
]
}
Apache TinkerPop Spline Local Gremlin Server (Docker) and Sample Write / Read Code Data Lineage for Data Lake
Exemplo de payload enviado pelo SplineAgent