Is it possible to use conditions and constraints in multi table? #637
Labels
data:multi-table
Related to multi-table, relational datasets
feature:constraints
Related to inputting rules or business logic
question
General question about the software
Environment details
If you are already running SDV, please indicate the following details about the environment in
which you are running it:
Problem description
I want to put some conditions or constraints in one of the table in multi-table evaluation. I have pasted the json format where i have put condition in bold in user table json. Is there any way to achieve the same since we are doing it for the single table?
{
"tables": {
"users": {
"fields": {
"user_id": {
"type": "id",
"subtype": "integer"
},
"country": {
"type": "categorical"
},
"gender": {
"type": "categorical"
},
"age": {
"type": "numerical",
"subtype": "integer"
}
},
"primary_key": "user_id",
"conditions":{"age" : 20}
},
"sessions": {
"fields": {
"session_id": {
"type": "id",
"subtype": "integer"
},
"user_id": {
"type": "id",
"subtype": "integer",
"ref": {
"table": "users",
"field": "user_id"
}
},
"device": {
"type": "categorical"
},
"os": {
"type": "categorical"
},
"minutes": {
"type": "numerical",
"subtype": "integer"
}
},
"primary_key": "session_id"
},
}
}
The text was updated successfully, but these errors were encountered: