-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/capsule-object-mapper-creator
- Loading branch information
Showing
4 changed files
with
117 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
backend/src/test/resources/tests/sql/not/with_sibling/content.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
pid,datum,geschlecht | ||
1,2012-01-01,"f" | ||
2,2010-07-15,"m" | ||
3,2013-11-10,"f" | ||
4,2012-11-11,"m" | ||
5,2007-11-11, | ||
6,2012-11-11, | ||
7,2012-11-11,"mf" | ||
8,2012-11-11,"fm" |
7 changes: 7 additions & 0 deletions
7
backend/src/test/resources/tests/sql/not/with_sibling/expected.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
result,dates | ||
2,{} | ||
4,{} | ||
5,{} | ||
6,{} | ||
7,{} | ||
8,{} |
101 changes: 101 additions & 0 deletions
101
backend/src/test/resources/tests/sql/not/with_sibling/not.spec.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
{ | ||
"label": "Simple negation query where NEGATION is not the first node to convert", | ||
"type": "QUERY_TEST", | ||
"sqlSpec": { | ||
"isEnabled": true | ||
}, | ||
"expectedCsv": "tests/sql/not/with_sibling/expected.csv", | ||
"query": { | ||
"type": "CONCEPT_QUERY", | ||
"root": { | ||
"type": "OR", | ||
"children": [ | ||
{ | ||
"ids": [ | ||
"geschlecht_select" | ||
], | ||
"type": "CONCEPT", | ||
"label": "Geschlecht SELECT", | ||
"tables": [ | ||
{ | ||
"id": "geschlecht_select.geschlecht_connector", | ||
"filters": [ | ||
{ | ||
"filter": "geschlecht_select.geschlecht_connector.geschlecht", | ||
"type": "BIG_MULTI_SELECT", | ||
"value": [ | ||
"m" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "NEGATION", | ||
"child": { | ||
"ids": [ | ||
"geschlecht_select" | ||
], | ||
"type": "CONCEPT", | ||
"label": "Geschlecht SELECT", | ||
"tables": [ | ||
{ | ||
"id": "geschlecht_select.geschlecht_connector", | ||
"filters": [ | ||
{ | ||
"filter": "geschlecht_select.geschlecht_connector.geschlecht", | ||
"type": "BIG_MULTI_SELECT", | ||
"value": [ | ||
"f" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"concepts": [ | ||
{ | ||
"label": "geschlecht_select", | ||
"type": "TREE", | ||
"connectors": [ | ||
{ | ||
"label": "geschlecht_connector", | ||
"table": "table1", | ||
"filters": { | ||
"label": "geschlecht", | ||
"description": "Geschlecht zur gegebenen Datumseinschränkung", | ||
"column": "table1.geschlecht", | ||
"type": "SELECT" | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"content": { | ||
"tables": [ | ||
{ | ||
"csv": "tests/sql/not/with_sibling/content.csv", | ||
"name": "table1", | ||
"primaryColumn": { | ||
"name": "pid", | ||
"type": "STRING" | ||
}, | ||
"columns": [ | ||
{ | ||
"name": "datum", | ||
"type": "DATE" | ||
}, | ||
{ | ||
"name": "geschlecht", | ||
"type": "STRING" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |