-
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.
Fix full outer joining when converting forms (#3510)
- Loading branch information
Showing
7 changed files
with
157 additions
and
95 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
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
63 changes: 0 additions & 63 deletions
63
backend/src/test/resources/tests/form/MULTIPLE_FEATURES_AND_CONNECTOR.test.json
This file was deleted.
Oops, something went wrong.
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
79 changes: 79 additions & 0 deletions
79
...st/resources/tests/sql/form/ABSOLUT/MULTIPLE_FEATURES/MULTIPLE_FEATURES_OR_CONNECTOR.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,79 @@ | ||
{ | ||
"type": "FORM_TEST", | ||
"label": "ABS-EXPORT-FORM with multiple features and OR connector", | ||
"expectedCsv": { | ||
"results": "tests/sql/form/ABSOLUT/MULTIPLE_FEATURES/expected_or_connector.csv" | ||
}, | ||
"form": { | ||
"type": "EXPORT_FORM", | ||
"queryGroup": "00000000-0000-0000-0000-000000000001", | ||
"resolution": "QUARTERS", | ||
"alsoCreateCoarserSubdivisions": true, | ||
"features": [ | ||
{ | ||
"type": "OR", | ||
"children": [ | ||
{ | ||
"type": "CONCEPT", | ||
"ids": "abc-concept", | ||
"tables": { | ||
"id": "abc-concept.connector2", | ||
"filters": [ | ||
{ | ||
"filter": "abc-concept.connector2.value", | ||
"type": "MULTI_SELECT", | ||
"value": [ | ||
"A" | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "CONCEPT", | ||
"ids": "geschlecht", | ||
"tables": { | ||
"id": "geschlecht.geschlecht" | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"timeMode": { | ||
"value": "ABSOLUTE", | ||
"dateRange": { | ||
"min": "2012-01-01", | ||
"max": "2012-12-17" | ||
} | ||
} | ||
}, | ||
"concepts": [ | ||
"/tests/form/shared/abc.concept.json", | ||
"/shared/geschlecht.concept.json" | ||
], | ||
"content": { | ||
"tables": [ | ||
"/shared/vers_stamm.table.json", | ||
"/tests/form/shared/abc.table.json" | ||
], | ||
"secondaryIds": [ | ||
{ | ||
"name": "secondary" | ||
} | ||
], | ||
"previousQueries": [ | ||
{ | ||
"type": "CONCEPT_QUERY", | ||
"root": { | ||
"ids": [ | ||
"abc-concept" | ||
], | ||
"tables": { | ||
"id": "abc-concept.connector" | ||
}, | ||
"type": "CONCEPT" | ||
} | ||
} | ||
] | ||
} | ||
} |
14 changes: 7 additions & 7 deletions
14
...nd/src/test/resources/tests/sql/form/ABSOLUT/MULTIPLE_FEATURES/expected_and_connector.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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
result,resolution,index,date_range,Alter and Geschlecht | ||
1,complete,,2012-01-16/2012-12-17,1 | ||
1,year,1,2012-01-16/2012-12-17,1 | ||
1,quarter,1,2012-01-16/2012-03-31,1 | ||
1,quarter,2,2012-04-01/2012-06-30,1 | ||
1,quarter,3,2012-07-01/2012-09-30,1 | ||
1,quarter,4,2012-10-01/2012-12-17,1 | ||
result,resolution,index,date_range,abc-concept and Geschlecht | ||
1,complete,,2012-01-01/2012-12-17,1 | ||
1,year,1,2012-01-01/2012-12-17,1 | ||
1,quarter,1,2012-01-01/2012-03-31,1 | ||
1,quarter,2,2012-04-01/2012-06-30, | ||
1,quarter,3,2012-07-01/2012-09-30, | ||
1,quarter,4,2012-10-01/2012-12-17, |
7 changes: 7 additions & 0 deletions
7
...end/src/test/resources/tests/sql/form/ABSOLUT/MULTIPLE_FEATURES/expected_or_connector.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,resolution,index,date_range,abc-concept or Geschlecht | ||
1,complete,,2012-01-01/2012-12-17,1 | ||
1,quarter,1,2012-01-01/2012-03-31,1 | ||
1,quarter,2,2012-04-01/2012-06-30,1 | ||
1,quarter,3,2012-07-01/2012-09-30,1 | ||
1,quarter,4,2012-10-01/2012-12-17,1 | ||
1,year,1,2012-01-01/2012-12-17,1 |