diff --git a/relational/find_missing_responses.sh b/relational/find_missing_responses.sh new file mode 100755 index 0000000..93a75e9 --- /dev/null +++ b/relational/find_missing_responses.sh @@ -0,0 +1,78 @@ +#!/bin/bash + +# Set error handling +set -euo pipefail + +# Function to print error messages +error() { + echo "ERROR: $1" >&2 + exit 1 +} + +# Function to print status messages +info() { + echo "INFO: $1" +} + +# Function to print folder paths in a consistent format +print_folder() { + local dir="$1" + local request_file="$dir/request.json" + local request_size="" + + # Get the size of request.json if it exists + if [ -f "$request_file" ]; then + request_size=$(wc -l < "$request_file") + fi + + printf "%-60s | request.json: %3s lines\n" "$dir" "$request_size" +} + +echo "===========================================================================" +echo " MISSING RESPONSE.JSON FILES REPORT" +echo "===========================================================================" +echo +echo "Folders containing request.json but missing response.json:" +echo "-----------------------------------------------------------" + +# Initialize counter for missing response files +missing_count=0 +missing_folders=() + +# Find all directories containing request.json +while IFS= read -r -d '' dir; do + dir=$(dirname "$dir") + if [ ! -f "$dir/response.json" ]; then + missing_folders+=("$dir") + ((missing_count++)) + fi +done < <(find . -name "request.json" -print0) + +# Sort the missing folders for consistent output +IFS=$'\n' sorted_folders=($(sort <<<"${missing_folders[*]}")) +unset IFS + +# Print the sorted folders +for dir in "${sorted_folders[@]}"; do + print_folder "$dir" +done + +echo +echo "===========================================================================" +echo "SUMMARY:" +echo " - Total folders scanned: $(find . -name "request.json" | wc -l)" +echo " - Folders missing response.json: $missing_count" +echo "===========================================================================" + +# Export to file if missing folders were found +if [ $missing_count -gt 0 ]; then + report_file="missing_responses_report.txt" + { + echo "Missing response.json files report" + echo "Generated on: $(date)" + echo "----------------------------------------" + printf "%s\n" "${sorted_folders[@]}" + } > "$report_file" + echo + info "Report saved to $report_file" +fi diff --git a/relational/query/aggregate_count_albums/expected.json b/relational/query/aggregate_count_albums/expected.json new file mode 100644 index 0000000..9f24de9 --- /dev/null +++ b/relational/query/aggregate_count_albums/expected.json @@ -0,0 +1,12 @@ +[ + { + "aggregates": { + "how_many_albums": 347, + "how_many_artist_ids": 347, + "how_many_distinct_artist_ids": 204, + "min_artist_id": 1, + "max_artist_id": 275, + "avg_artist_id": 121.94236311239192 + } + } +] diff --git a/relational/query/aggregate_count_albums_plus_field/expected.json b/relational/query/aggregate_count_albums_plus_field/expected.json new file mode 100644 index 0000000..0aad4fd --- /dev/null +++ b/relational/query/aggregate_count_albums_plus_field/expected.json @@ -0,0 +1,44 @@ +[ + { + "aggregates": { + "how_many_albums": 10, + "how_many_artist_ids": 10, + "how_many_distinct_artist_ids": 8, + "min_artist_id": 8, + "max_artist_id": 15, + "avg_artist_id": 11.5 + }, + "rows": [ + { + "Title": "Out Of Exile" + }, + { + "Title": "BackBeat Soundtrack" + }, + { + "Title": "The Best Of Billy Cobham" + }, + { + "Title": "Alcohol Fueled Brewtality Live! [Disc 1]" + }, + { + "Title": "Alcohol Fueled Brewtality Live! [Disc 2]" + }, + { + "Title": "Black Sabbath" + }, + { + "Title": "Black Sabbath Vol. 4 (Remaster)" + }, + { + "Title": "Body Count" + }, + { + "Title": "Chemical Wedding" + }, + { + "Title": "The Best Of Buddy Guy - The Millenium Collection" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/aggregate_count_artist_albums/expected.json b/relational/query/aggregate_count_artist_albums/expected.json new file mode 100644 index 0000000..7766a90 --- /dev/null +++ b/relational/query/aggregate_count_artist_albums/expected.json @@ -0,0 +1,46 @@ +[ + { + "rows": [ + { + "Name": "Accept", + "Albums": { + "aggregates": { + "how_many_albums": 2 + } + } + }, + { + "Name": "Aerosmith", + "Albums": { + "aggregates": { + "how_many_albums": 1 + } + } + }, + { + "Name": "Alanis Morissette", + "Albums": { + "aggregates": { + "how_many_albums": 1 + } + } + }, + { + "Name": "Alice In Chains", + "Albums": { + "aggregates": { + "how_many_albums": 1 + } + } + }, + { + "Name": "Antônio Carlos Jobim", + "Albums": { + "aggregates": { + "how_many_albums": 2 + } + } + } + ] + } +] \ No newline at end of file diff --git a/relational/query/aggregate_count_artist_albums_plus_field/expected.json b/relational/query/aggregate_count_artist_albums_plus_field/expected.json new file mode 100644 index 0000000..e4775d6 --- /dev/null +++ b/relational/query/aggregate_count_artist_albums_plus_field/expected.json @@ -0,0 +1,77 @@ +[ + { + "rows": [ + { + "Name": "Accept", + "Albums": { + "rows": [ + { + "Title": "Balls to the Wall" + }, + { + "Title": "Restless and Wild" + } + ], + "aggregates": { + "how_many_albums": 2 + } + } + }, + { + "Name": "Aerosmith", + "Albums": { + "rows": [ + { + "Title": "Big Ones" + } + ], + "aggregates": { + "how_many_albums": 1 + } + } + }, + { + "Name": "Alanis Morissette", + "Albums": { + "rows": [ + { + "Title": "Jagged Little Pill" + } + ], + "aggregates": { + "how_many_albums": 1 + } + } + }, + { + "Name": "Alice In Chains", + "Albums": { + "rows": [ + { + "Title": "Facelift" + } + ], + "aggregates": { + "how_many_albums": 1 + } + } + }, + { + "Name": "Antônio Carlos Jobim", + "Albums": { + "rows": [ + { + "Title": "Warner 25 Anos" + }, + { + "Title": "Chill: Brazil (Disc 2)" + } + ], + "aggregates": { + "how_many_albums": 2 + } + } + } + ] + } +] \ No newline at end of file diff --git a/relational/query/aggregate_max_enum/request.json b/relational/query/aggregate_max_enum/request.json deleted file mode 100644 index bcc9c8b..0000000 --- a/relational/query/aggregate_max_enum/request.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "collection": "deck_of_cards", - "query": { - "aggregates": { - "max_suit": { - "type": "single_column", - "column": "suit", - "function": "max" - } - } - }, - "arguments": {}, - "collection_relationships": {} -} diff --git a/relational/query/aggregate_max_enum/response.json b/relational/query/aggregate_max_enum/response.json deleted file mode 100644 index 624eee0..0000000 --- a/relational/query/aggregate_max_enum/response.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - { - "aggregates": { - "max_suit": "spades" - } - } -] diff --git a/relational/query/dup_array_relationship/expected.json b/relational/query/dup_array_relationship/expected.json new file mode 100644 index 0000000..53440b2 --- /dev/null +++ b/relational/query/dup_array_relationship/expected.json @@ -0,0 +1,66 @@ +[ + { + "rows": [ + { + "albums": { + "rows": [ + { + "title": "For Those About To Rock We Salute You" + }, + { + "title": "Let There Be Rock" + } + ] + }, + "Albums": { + "rows": [ + { + "title": "For Those About To Rock We Salute You" + }, + { + "title": "Let There Be Rock" + } + ] + } + }, + { + "albums": { + "rows": [ + { + "title": "Balls to the Wall" + }, + { + "title": "Restless and Wild" + } + ] + }, + "Albums": { + "rows": [ + { + "title": "Balls to the Wall" + }, + { + "title": "Restless and Wild" + } + ] + } + }, + { + "albums": { + "rows": [ + { + "title": "Big Ones" + } + ] + }, + "Albums": { + "rows": [ + { + "title": "Big Ones" + } + ] + } + } + ] + } +] \ No newline at end of file diff --git a/relational/query/duplicate_filter_results/expected.json b/relational/query/duplicate_filter_results/expected.json new file mode 100644 index 0000000..4d187fc --- /dev/null +++ b/relational/query/duplicate_filter_results/expected.json @@ -0,0 +1,21 @@ +[ + { + "rows": [ + { + "Name": "AC/DC" + }, + { + "Name": "Accept" + }, + { + "Name": "Aerosmith" + }, + { + "Name": "Alanis Morissette" + }, + { + "Name": "Alice In Chains" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/duplicate_filter_results_nested/expected.json b/relational/query/duplicate_filter_results_nested/expected.json new file mode 100644 index 0000000..4d187fc --- /dev/null +++ b/relational/query/duplicate_filter_results_nested/expected.json @@ -0,0 +1,21 @@ +[ + { + "rows": [ + { + "Name": "AC/DC" + }, + { + "Name": "Accept" + }, + { + "Name": "Aerosmith" + }, + { + "Name": "Alanis Morissette" + }, + { + "Name": "Alice In Chains" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/filter_by_nested_field/request.json b/relational/query/filter_by_nested_field/request.json deleted file mode 100644 index fb59e9c..0000000 --- a/relational/query/filter_by_nested_field/request.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "collection": "group_leader", - "query": { - "fields": { - "name": { - "type": "column", - "column": "name", - "arguments": {} - }, - "characters": { - "type": "column", - "column": "characters", - "arguments": {} - } - }, - "predicate": { - "type": "binary_comparison_operator", - "column": { - "type": "column", - "name": "characters", - "path": [], - "field_path": ["name"] - }, - "operator": "_eq", - "value": { - "type": "scalar", - "value": "Fellowship" - } - } - }, - "arguments": {}, - "collection_relationships": {} -} diff --git a/relational/query/filter_by_nested_field/response.json b/relational/query/filter_by_nested_field/response.json deleted file mode 100644 index 345d537..0000000 --- a/relational/query/filter_by_nested_field/response.json +++ /dev/null @@ -1,25 +0,0 @@ -[ - { - "rows": [ - { - "name": { - "name": "Frodo", - "popularity": "3" - }, - "characters": { - "members": [ - { - "name": "Legolas", - "popularity": "200" - }, - { - "name": "Gimli", - "popularity": "300" - } - ], - "name": "Fellowship" - } - } - ] - } -] diff --git a/relational/query/filter_by_nested_field_collection/request.json b/relational/query/filter_by_nested_field_collection/request.json deleted file mode 100644 index c6d1b5d..0000000 --- a/relational/query/filter_by_nested_field_collection/request.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "collection": "group_leader", - "query": { - "fields": { - "name": { - "type": "column", - "column": "name", - "arguments": {} - }, - "characters": { - "type": "column", - "column": "characters", - "arguments": {} - } - }, - "predicate": { - "type": "exists", - "in_collection": { - "type": "nested_collection", - "column_name": "characters", - "field_path": ["members"], - "arguments": {} - }, - "predicate": { - "type": "binary_comparison_operator", - "column": { - "type": "column", - "name": "name", - "path": [] - }, - "operator": "_like", - "value": { - "type": "scalar", - "value": "Sam" - } - } - } - }, - "arguments": {}, - "collection_relationships": {} -} diff --git a/relational/query/filter_by_nested_field_collection/response.json b/relational/query/filter_by_nested_field_collection/response.json deleted file mode 100644 index ead638e..0000000 --- a/relational/query/filter_by_nested_field_collection/response.json +++ /dev/null @@ -1,25 +0,0 @@ -[ - { - "rows": [ - { - "name": { - "name": "Gollum", - "popularity": "1" - }, - "characters": { - "members": [ - { - "name": "Frodo", - "popularity": "3" - }, - { - "name": "Sam", - "popularity": "9000" - } - ], - "name": "Mellowship" - } - } - ] - } -] diff --git a/relational/query/filter_institution_by_nested_field_collection/request.json b/relational/query/filter_institution_by_nested_field_collection/request.json deleted file mode 100644 index 7cf0f5a..0000000 --- a/relational/query/filter_institution_by_nested_field_collection/request.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "collection": "institution_institution", - "query": { - "fields": { - "id": { - "type": "column", - "column": "id" - }, - "name": { - "type": "column", - "column": "name" - }, - "staff": { - "type": "column", - "column": "staff", - "fields": { - "type": "array", - "fields": { - "type": "object", - "fields": { - "first_name": { - "type": "column", - "column": "first_name" - }, - "last_name": { - "type": "column", - "column": "last_name" - }, - "specialities": { - "type": "column", - "column": "specialities" - } - } - } - } - } - }, - "predicate": { - "type": "exists", - "in_collection": { - "type": "nested_collection", - "column_name": "staff", - "field_path": [], - "arguments": {} - }, - "predicate": { - "type": "binary_comparison_operator", - "column": { - "type": "column", - "name": "last_name", - "path": [] - }, - "operator": "_eq", - "value": { - "type": "scalar", - "value": "Hughes" - } - } - } - }, - "arguments": {}, - "collection_relationships": {} -} diff --git a/relational/query/filter_institution_by_nested_field_collection/response.json b/relational/query/filter_institution_by_nested_field_collection/response.json deleted file mode 100644 index b63ed78..0000000 --- a/relational/query/filter_institution_by_nested_field_collection/response.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "rows": [ - { - "id": 2, - "name": "Chalmers University of Technology", - "staff": [ - { - "first_name": "John", - "last_name": "Hughes", - "specialities": [ - "Computer Science", - "Functional Programming", - "Software Testing" - ] - }, - { - "first_name": "Koen", - "last_name": "Claessen", - "specialities": [ - "Computer Science", - "Functional Programming", - "Automated Reasoning" - ] - } - ] - } - ] - } -] diff --git a/relational/query/nested_array_relationships/expected.json b/relational/query/nested_array_relationships/expected.json new file mode 100644 index 0000000..3480c22 --- /dev/null +++ b/relational/query/nested_array_relationships/expected.json @@ -0,0 +1,115 @@ +[ + { + "rows": [ + { + "artist": "Queen", + "Albums": { + "rows": [ + { + "album": "Greatest Hits II", + "Tracks": { + "rows": [ + { + "track": "A Kind Of Magic" + }, + { + "track": "Under Pressure" + }, + { + "track": "Radio GA GA" + }, + { + "track": "I Want It All" + } + ] + } + }, + { + "album": "Greatest Hits I", + "Tracks": { + "rows": [ + { + "track": "Bohemian Rhapsody" + }, + { + "track": "Another One Bites The Dust" + }, + { + "track": "Killer Queen" + }, + { + "track": "Fat Bottomed Girls" + } + ] + } + }, + { + "album": "News Of The World", + "Tracks": { + "rows": [ + { + "track": "We Will Rock You" + }, + { + "track": "We Are The Champions" + }, + { + "track": "Sheer Heart Attack" + }, + { + "track": "All Dead, All Dead" + } + ] + } + } + ] + } + }, + { + "artist": "Kiss", + "Albums": { + "rows": [ + { + "album": "Greatest Kiss", + "Tracks": { + "rows": [ + { + "track": "Detroit Rock City" + }, + { + "track": "Black Diamond" + }, + { + "track": "Hard Luck Woman" + }, + { + "track": "Sure Know Something" + } + ] + } + }, + { + "album": "Unplugged [Live]", + "Tracks": { + "rows": [ + { + "track": "Comin' Home" + }, + { + "track": "Plaster Caster" + }, + { + "track": "Goin' Blind" + }, + { + "track": "Do You Love Me" + } + ] + } + } + ] + } + } + ] + } +] \ No newline at end of file diff --git a/relational/query/nested_field_relationship/request.json b/relational/query/nested_field_relationship/request.json deleted file mode 100644 index 50e1be3..0000000 --- a/relational/query/nested_field_relationship/request.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "collection": "institution_institution", - "query": { - "fields": { - "name": { - "type": "column", - "column": "name", - "fields": null - }, - "staff": { - "type": "column", - "column": "staff", - "fields": { - "type": "array", - "fields": { - "type": "object", - "fields": { - "favourite_artist": { - "type": "relationship", - "query": { - "fields": { - "artist_id": { - "type": "column", - "column": "ArtistId", - "fields": null - }, - "name": { - "type": "column", - "column": "Name", - "fields": null - } - } - }, - "relationship": "default___staff_member__favourite_artist", - "arguments": {} - } - } - } - } - } - } - }, - "arguments": {}, - "collection_relationships": { - "default___staff_member__favourite_artist": { - "column_mapping": { - "favourite_artist_id": "ArtistId" - }, - "relationship_type": "object", - "target_collection": "Artist", - "arguments": {} - } - } -} diff --git a/relational/query/nested_field_relationship/response.json b/relational/query/nested_field_relationship/response.json deleted file mode 100644 index cde88b1..0000000 --- a/relational/query/nested_field_relationship/response.json +++ /dev/null @@ -1,50 +0,0 @@ -[ - { - "rows": [ - { - "name": "Queen Mary University of London", - "staff": [ - { - "favourite_artist": { - "rows": [ - { - "artist_id": 1, - "name": "AC/DC" - } - ] - } - } - ] - }, - { - "name": "Chalmers University of Technology", - "staff": [ - { - "favourite_artist": { - "rows": [ - { - "artist_id": 2, - "name": "Accept" - } - ] - } - }, - { - "favourite_artist": { - "rows": [ - { - "artist_id": 3, - "name": "Aerosmith" - } - ] - } - } - ] - }, - { - "name": "University of Nowhere", - "staff": null - } - ] - } -] diff --git a/relational/query/nested_object_relationships/expected.json b/relational/query/nested_object_relationships/expected.json new file mode 100644 index 0000000..f66cfc8 --- /dev/null +++ b/relational/query/nested_object_relationships/expected.json @@ -0,0 +1,91 @@ +[ + { + "rows": [ + { + "track": "Grito De Alerta", + "Album": { + "rows": [ + { + "album": "Meus Momentos", + "Artist": { + "rows": [ + { + "artist": "Gonzaguinha" + } + ] + } + } + ] + } + }, + { + "track": "Não Dá Mais Pra Segurar (Explode Coração)", + "Album": { + "rows": [ + { + "album": "Meus Momentos", + "Artist": { + "rows": [ + { + "artist": "Gonzaguinha" + } + ] + } + } + ] + } + }, + { + "track": "Começaria Tudo Outra Vez", + "Album": { + "rows": [ + { + "album": "Meus Momentos", + "Artist": { + "rows": [ + { + "artist": "Gonzaguinha" + } + ] + } + } + ] + } + }, + { + "track": "O Que É O Que É ?", + "Album": { + "rows": [ + { + "album": "Meus Momentos", + "Artist": { + "rows": [ + { + "artist": "Gonzaguinha" + } + ] + } + } + ] + } + }, + { + "track": "Sangrando", + "Album": { + "rows": [ + { + "album": "Meus Momentos", + "Artist": { + "rows": [ + { + "artist": "Gonzaguinha" + } + ] + } + } + ] + } + } + ] + } +] \ No newline at end of file diff --git a/relational/query/order_by_nested_field/request.json b/relational/query/order_by_nested_field/request.json deleted file mode 100644 index f32c0aa..0000000 --- a/relational/query/order_by_nested_field/request.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "collection": "group_leader", - "query": { - "fields": { - "name": { - "type": "column", - "column": "name", - "arguments": {} - }, - "characters": { - "type": "column", - "column": "characters", - "arguments": {} - } - }, - "order_by": { - "elements": [ - { - "order_direction": "desc", - "target": { - "type": "column", - "name": "characters", - "path": [], - "field_path": ["name"] - } - } - ] - } - }, - "arguments": {}, - "collection_relationships": {} -} diff --git a/relational/query/order_by_nested_field/response.json b/relational/query/order_by_nested_field/response.json deleted file mode 100644 index cb13856..0000000 --- a/relational/query/order_by_nested_field/response.json +++ /dev/null @@ -1,59 +0,0 @@ -[ - { - "rows": [ - { - "name": { - "name": "Witch-king of Angmar", - "popularity": "70" - }, - "characters": { - "members": [ - { - "name": "Otsëa", - "popularity": "7" - } - ], - "name": "Nazgûl" - } - }, - { - "name": { - "name": "Gollum", - "popularity": "1" - }, - "characters": { - "members": [ - { - "name": "Frodo", - "popularity": "3" - }, - { - "name": "Sam", - "popularity": "9000" - } - ], - "name": "Mellowship" - } - }, - { - "name": { - "name": "Frodo", - "popularity": "3" - }, - "characters": { - "members": [ - { - "name": "Legolas", - "popularity": "200" - }, - { - "name": "Gimli", - "popularity": "300" - } - ], - "name": "Fellowship" - } - } - ] - } -] diff --git a/relational/query/select_5/expected.json b/relational/query/select_5/expected.json new file mode 100644 index 0000000..782627a --- /dev/null +++ b/relational/query/select_5/expected.json @@ -0,0 +1,21 @@ +[ + { + "rows": [ + { + "Title": "Let There Be Rock" + }, + { + "Title": "Big Ones" + }, + { + "Title": "Jagged Little Pill" + }, + { + "Title": "Facelift" + }, + { + "Title": "Warner 25 Anos" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_album_object_relationship_to_artist/expected.json b/relational/query/select_album_object_relationship_to_artist/expected.json new file mode 100644 index 0000000..6c591d8 --- /dev/null +++ b/relational/query/select_album_object_relationship_to_artist/expected.json @@ -0,0 +1,56 @@ +[ + { + "rows": [ + { + "Title": "Let There Be Rock", + "Artist": { + "rows": [ + { + "Name": "AC/DC" + } + ] + } + }, + { + "Title": "Big Ones", + "Artist": { + "rows": [ + { + "Name": "Aerosmith" + } + ] + } + }, + { + "Title": "Jagged Little Pill", + "Artist": { + "rows": [ + { + "Name": "Alanis Morissette" + } + ] + } + }, + { + "Title": "Facelift", + "Artist": { + "rows": [ + { + "Name": "Alice In Chains" + } + ] + } + }, + { + "Title": "Warner 25 Anos", + "Artist": { + "rows": [ + { + "Name": "Antônio Carlos Jobim" + } + ] + } + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_array_column/request.json b/relational/query/select_array_column/request.json deleted file mode 100644 index 2e6b026..0000000 --- a/relational/query/select_array_column/request.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "collection": "array_series", - "query": { - "fields": { - "series": { - "type": "column", - "column": "series", - "arguments": {} - } - } - }, - "arguments": { - "from": { - "type": "literal", - "value": 1 - }, - "to": { - "type": "literal", - "value": 5 - } - }, - "collection_relationships": {} -} diff --git a/relational/query/select_array_column/response.json b/relational/query/select_array_column/response.json deleted file mode 100644 index d275d51..0000000 --- a/relational/query/select_array_column/response.json +++ /dev/null @@ -1,15 +0,0 @@ -[ - { - "rows": [ - { - "series": [ - 1, - 2, - 3, - 4, - 5 - ] - } - ] - } -] diff --git a/relational/query/select_array_column_nested_types/request.json b/relational/query/select_array_column_nested_types/request.json deleted file mode 100644 index 1ac8631..0000000 --- a/relational/query/select_array_column_nested_types/request.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "collection": "summarize_organizations", - "query": { - "fields": { - "result": { - "type": "column", - "column": "result", - "arguments": {} - } - } - }, - "arguments": { - "organizations": { - "type": "literal", - "value": [ - { - "name": "RC Model Airplane Enthusiasts", - "committees": [ - { - "name": "Founders", - "members": [ - { - "first_name": "Orville", - "last_name": "Wright" - }, - { - "first_name": "Wilbur", - "last_name": "Wright" - } - ] - }, - { - "name": "Parts supply management", - "members": [ - { - "first_name": "Orville", - "last_name": "Wright" - }, - { - "first_name": "Wilbur", - "last_name": "Wright" - }, - { - "first_name": "Guybrush", - "last_name": "Threepwood" - } - ] - } - ] - }, - { - "name": "Argonauts' Alumni Association", - "committees": [ - { - "name": "Crew", - "members": [ - { - "first_name": "Jason", - "last_name": "(The)" - }, - { - "first_name": "Heracles", - "last_name": "(The)" - }, - { - "first_name": "Castor", - "last_name": "(The)" - }, - { - "first_name": "Polydeuces", - "last_name": "(The)" - } - ] - } - ] - } - ] - } - }, - "collection_relationships": {} -} diff --git a/relational/query/select_array_column_nested_types/response.json b/relational/query/select_array_column_nested_types/response.json deleted file mode 100644 index 6324d2f..0000000 --- a/relational/query/select_array_column_nested_types/response.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "rows": [ - { - "result": "The organization RC Model Airplane Enthusiasts has 2 committees, the largest of which has 3 members." - }, - { - "result": "The organization Argonauts' Alumni Association has 1 committees, the largest of which has 4 members." - } - ] - } -] diff --git a/relational/query/select_array_column_reverse/request.json b/relational/query/select_array_column_reverse/request.json deleted file mode 100644 index a190d20..0000000 --- a/relational/query/select_array_column_reverse/request.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "collection": "array_reverse", - "query": { - "fields": { - "reversed": { - "type": "column", - "column": "reversed", - "arguments": {} - } - } - }, - "arguments": { - "array": { - "type": "literal", - "value": ["a", "b", "c"] - } - }, - "collection_relationships": {} -} diff --git a/relational/query/select_array_column_reverse/response.json b/relational/query/select_array_column_reverse/response.json deleted file mode 100644 index 72ad9d7..0000000 --- a/relational/query/select_array_column_reverse/response.json +++ /dev/null @@ -1,13 +0,0 @@ -[ - { - "rows": [ - { - "reversed": [ - "c", - "b", - "a" - ] - } - ] - } -] diff --git a/relational/query/select_array_composite_field/request.json b/relational/query/select_array_composite_field/request.json deleted file mode 100644 index e966731..0000000 --- a/relational/query/select_array_composite_field/request.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "collection": "group_leader", - "query": { - "fields": { - "name": { - "type": "column", - "column": "name", - "arguments": {} - }, - "characters": { - "type": "column", - "column": "characters", - "arguments": {} - } - }, - "order_by": { - "elements": [ - { - "order_direction": "asc", - "target": { - "type": "column", - "name": "characters", - "path": [] - } - } - ] - }, - "limit": 1 - }, - "arguments": {}, - "collection_relationships": {} -} diff --git a/relational/query/select_array_composite_field/response.json b/relational/query/select_array_composite_field/response.json deleted file mode 100644 index 345d537..0000000 --- a/relational/query/select_array_composite_field/response.json +++ /dev/null @@ -1,25 +0,0 @@ -[ - { - "rows": [ - { - "name": { - "name": "Frodo", - "popularity": "3" - }, - "characters": { - "members": [ - { - "name": "Legolas", - "popularity": "200" - }, - { - "name": "Gimli", - "popularity": "300" - } - ], - "name": "Fellowship" - } - } - ] - } -] diff --git a/relational/query/select_array_variable/request.json b/relational/query/select_array_variable/request.json deleted file mode 100644 index c4de718..0000000 --- a/relational/query/select_array_variable/request.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "collection": "count_elements", - "query": { - "fields": { - "result": { - "type": "column", - "column": "result", - "arguments": {} - } - } - }, - "arguments": { - "array_argument": { - "type": "variable", - "name": "variable_array_argument" - } - }, - "collection_relationships": {}, - "variables": [ - { - "variable_array_argument": ["one", "two"] - }, - { - "variable_array_argument": ["one", "two", "three"] - } - ] -} diff --git a/relational/query/select_array_variable/response.json b/relational/query/select_array_variable/response.json deleted file mode 100644 index e98c004..0000000 --- a/relational/query/select_array_variable/response.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - { - "rows": [ - { - "result": 2 - } - ] - }, - { - "rows": [ - { - "result": 3 - } - ] - } -] diff --git a/relational/query/select_array_variable_nested_types/request.json b/relational/query/select_array_variable_nested_types/request.json deleted file mode 100644 index b1e338e..0000000 --- a/relational/query/select_array_variable_nested_types/request.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "collection": "summarize_organizations", - "query": { - "fields": { - "result": { - "type": "column", - "column": "result", - "arguments": {} - } - } - }, - "arguments": { - "organizations": { - "type": "variable", - "name": "variable_organizations" - } - }, - "collection_relationships": {}, - "variables": [ - { - "variable_organizations": [] - }, - { - "variable_organizations": [ - { - "name": "Federation of United Solipsists", - "committees": [ - { - "name": "Positively existing entities", - "members": [ - { - "first_name": "Yo", - "last_name": "El mismo" - } - ] - } - ] - } - ] - }, - { - "variable_organizations": [ - { - "name": "RC Model Airplane Enthusiasts", - "committees": [ - { - "name": "Founders", - "members": [ - { - "first_name": "Orville", - "last_name": "Wright" - }, - { - "first_name": "Wilbur", - "last_name": "Wright" - } - ] - }, - { - "name": "Parts supply management", - "members": [ - { - "first_name": "Orville", - "last_name": "Wright" - }, - { - "first_name": "Wilbur", - "last_name": "Wright" - }, - { - "first_name": "Guybrush", - "last_name": "Threepwood" - } - ] - } - ] - }, - { - "name": "Argonauts' Alumni Association", - "committees": [ - { - "name": "Crew", - "members": [ - { - "first_name": "Jason", - "last_name": "(The)" - }, - { - "first_name": "Heracles", - "last_name": "(The)" - }, - { - "first_name": "Castor", - "last_name": "(The)" - }, - { - "first_name": "Polydeuces", - "last_name": "(The)" - } - ] - } - ] - } - ] - } - ] -} diff --git a/relational/query/select_array_variable_nested_types/response.json b/relational/query/select_array_variable_nested_types/response.json deleted file mode 100644 index 35d420b..0000000 --- a/relational/query/select_array_variable_nested_types/response.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "rows": [] - }, - { - "rows": [ - { - "result": "The organization Federation of United Solipsists has 1 committees, the largest of which has 1 members." - } - ] - }, - { - "rows": [ - { - "result": "The organization RC Model Airplane Enthusiasts has 2 committees, the largest of which has 3 members." - }, - { - "result": "The organization Argonauts' Alumni Association has 1 committees, the largest of which has 4 members." - } - ] - } -] diff --git a/relational/query/select_artist_array_relationship_to_album/expected.json b/relational/query/select_artist_array_relationship_to_album/expected.json new file mode 100644 index 0000000..cc02272 --- /dev/null +++ b/relational/query/select_artist_array_relationship_to_album/expected.json @@ -0,0 +1,65 @@ +[ + { + "rows": [ + { + "Name": "Alanis Morissette", + "Albums": { + "rows": [ + { + "Title": "Jagged Little Pill" + } + ] + } + }, + { + "Name": "Alice In Chains", + "Albums": { + "rows": [ + { + "Title": "Facelift" + } + ] + } + }, + { + "Name": "Antônio Carlos Jobim", + "Albums": { + "rows": [ + { + "Title": "Warner 25 Anos" + }, + { + "Title": "Chill: Brazil (Disc 2)" + } + ] + } + }, + { + "Name": "Apocalyptica", + "Albums": { + "rows": [ + { + "Title": "Plays Metallica By Four Cellos" + } + ] + } + }, + { + "Name": "Audioslave", + "Albums": { + "rows": [ + { + "Title": "Audioslave" + }, + { + "Title": "Out Of Exile" + }, + { + "Title": "Revelations" + } + ] + } + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_by_pk/expected.json b/relational/query/select_by_pk/expected.json new file mode 100644 index 0000000..a8b2fed --- /dev/null +++ b/relational/query/select_by_pk/expected.json @@ -0,0 +1,9 @@ +[ + { + "rows": [ + { + "Title": "Garage Inc. (Disc 1)" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_composite_column_complex/request.json b/relational/query/select_composite_column_complex/request.json deleted file mode 100644 index 3805c9e..0000000 --- a/relational/query/select_composite_column_complex/request.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "collection": "make_person", - "query": { - "fields": { - "result": { - "type": "column", - "column": "result", - "arguments": {} - } - } - }, - "arguments": { - "name": { - "type": "literal", - "value": { - "first_name": "John", - "last_name": "Doe" - } - }, - "address": { - "type": "literal", - "value": { - "address_line_1": "Somstreet 159", - "address_line_2": "Second door to the right" - } - } - }, - "collection_relationships": {} -} diff --git a/relational/query/select_composite_column_complex/response.json b/relational/query/select_composite_column_complex/response.json deleted file mode 100644 index 38b7b21..0000000 --- a/relational/query/select_composite_column_complex/response.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "rows": [ - { - "result": { - "address": { - "address_line_1": "Somstreet 159", - "address_line_2": "Second door to the right" - }, - "name": { - "first_name": "John", - "last_name": "Doe" - } - } - } - ] - } -] diff --git a/relational/query/select_composite_column_simple/request.json b/relational/query/select_composite_column_simple/request.json deleted file mode 100644 index cb51fee..0000000 --- a/relational/query/select_composite_column_simple/request.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "collection": "address_identity_function", - "query": { - "fields": { - "result": { - "type": "column", - "column": "result", - "arguments": {} - } - } - }, - "arguments": { - "address": { - "type": "literal", - "value": { - "address_line_1": "Somstreet 159", - "address_line_2": "Second door to the right" - } - } - }, - "collection_relationships": {} -} diff --git a/relational/query/select_composite_column_simple/response.json b/relational/query/select_composite_column_simple/response.json deleted file mode 100644 index c691f0a..0000000 --- a/relational/query/select_composite_column_simple/response.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "rows": [ - { - "result": { - "address_line_1": "Somstreet 159", - "address_line_2": "Second door to the right" - } - } - ] - } -] diff --git a/relational/query/select_composite_variable_complex/request.json b/relational/query/select_composite_variable_complex/request.json deleted file mode 100644 index 562c75b..0000000 --- a/relational/query/select_composite_variable_complex/request.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "collection": "make_person", - "query": { - "fields": { - "result": { - "type": "column", - "column": "result", - "arguments": {} - } - } - }, - "arguments": { - "name": { - "type": "variable", - "name": "variable_name" - }, - "address": { - "type": "variable", - "name": "variable_address" - } - }, - "collection_relationships": {}, - "variables": [ - { - "variable_name": { - "first_name": "John", - "last_name": "Doe" - }, - "variable_address": { - "address_line_1": "Somstreet 159", - "address_line_2": "Second door to the right" - } - }, - { - "variable_name": { - "first_name": "Jane", - "last_name": "Doe" - }, - "variable_address": { - "address_line_1": "Somstreet 159", - "address_line_2": "Second door to the right" - } - } - ] -} diff --git a/relational/query/select_composite_variable_complex/response.json b/relational/query/select_composite_variable_complex/response.json deleted file mode 100644 index 192f584..0000000 --- a/relational/query/select_composite_variable_complex/response.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "rows": [ - { - "result": { - "address": { - "address_line_1": "Somstreet 159", - "address_line_2": "Second door to the right" - }, - "name": { - "first_name": "John", - "last_name": "Doe" - } - } - } - ] - }, - { - "rows": [ - { - "result": { - "address": { - "address_line_1": "Somstreet 159", - "address_line_2": "Second door to the right" - }, - "name": { - "first_name": "Jane", - "last_name": "Doe" - } - } - } - ] - } -] diff --git a/relational/query/select_composite_variable_simple/request.json b/relational/query/select_composite_variable_simple/request.json deleted file mode 100644 index 85b15ab..0000000 --- a/relational/query/select_composite_variable_simple/request.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "collection": "address_identity_function", - "query": { - "fields": { - "result": { - "type": "column", - "column": "result", - "arguments": {} - } - } - }, - "arguments": { - "address": { - "type": "variable", - "name": "variable_address" - } - }, - "collection_relationships": {}, - "variables": [ - { - "variable_address": { - "address_line_1": "Somstreet 159", - "address_line_2": "Second door to the right" - } - }, - { - "variable_address": { - "address_line_1": "Somstreet 159", - "address_line_2": "Second door to the right" - } - } - ] -} diff --git a/relational/query/select_composite_variable_simple/response.json b/relational/query/select_composite_variable_simple/response.json deleted file mode 100644 index 9a07c0e..0000000 --- a/relational/query/select_composite_variable_simple/response.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "rows": [ - { - "result": { - "address_line_1": "Somstreet 159", - "address_line_2": "Second door to the right" - } - } - ] - }, - { - "rows": [ - { - "result": { - "address_line_1": "Somstreet 159", - "address_line_2": "Second door to the right" - } - } - ] - } -] diff --git a/relational/query/select_discoverable_composite_column/request.json b/relational/query/select_discoverable_composite_column/request.json deleted file mode 100644 index 9716bde..0000000 --- a/relational/query/select_discoverable_composite_column/request.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "collection": "discoverable_types_root_occurrence", - "query": { - "fields": { - "result": { - "type": "column", - "column": "col", - "arguments": {} - } - } - }, - "arguments": {}, - "collection_relationships": {} -} diff --git a/relational/query/select_discoverable_composite_column/response.json b/relational/query/select_discoverable_composite_column/response.json deleted file mode 100644 index 688f74a..0000000 --- a/relational/query/select_discoverable_composite_column/response.json +++ /dev/null @@ -1,11 +0,0 @@ -[ - { - "rows": [ - { - "result": { - "only_occurring_here1": "1152921504606846976" - } - } - ] - } -] diff --git a/relational/query/select_enum/request.json b/relational/query/select_enum/request.json deleted file mode 100644 index d818ca6..0000000 --- a/relational/query/select_enum/request.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "collection": "deck_of_cards", - "query": { - "fields": { - "Pips": { - "type": "column", - "column": "pips", - "arguments": {} - }, - "Suit": { - "type": "column", - "column": "suit", - "arguments": {} - } - }, - "predicate": { - "type": "binary_comparison_operator", - "column": { - "type": "column", - "name": "pips", - "path": [] - }, - "operator": "_eq", - "value": { - "type": "scalar", - "value": 13 - } - } - }, - "arguments": {}, - "collection_relationships": {} -} diff --git a/relational/query/select_enum/response.json b/relational/query/select_enum/response.json deleted file mode 100644 index ee8efaf..0000000 --- a/relational/query/select_enum/response.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "rows": [ - { - "Pips": 13, - "Suit": "hearts" - }, - { - "Pips": 13, - "Suit": "clubs" - }, - { - "Pips": 13, - "Suit": "diamonds" - }, - { - "Pips": 13, - "Suit": "spades" - } - ] - } -] diff --git a/relational/query/select_int_and_string/expected.json b/relational/query/select_int_and_string/expected.json new file mode 100644 index 0000000..3178cf6 --- /dev/null +++ b/relational/query/select_int_and_string/expected.json @@ -0,0 +1,10 @@ +[ + { + "rows": [ + { + "AlbumId": 35, + "title": "Garage Inc. (Disc 1)" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_nested_column_complex/request.json b/relational/query/select_nested_column_complex/request.json deleted file mode 100644 index 260c8da..0000000 --- a/relational/query/select_nested_column_complex/request.json +++ /dev/null @@ -1,113 +0,0 @@ -{ - "collection": "organization_identity_function", - "query": { - "fields": { - "the_organization": { - "type": "column", - "column": "result_the_field", - "fields": { - "type": "object", - "fields": { - "name_of_the_org": { - "type": "column", - "column": "name" - }, - "committees_of_the_org": { - "type": "column", - "column": "committees", - "fields": { - "type": "array", - "fields": { - "type": "object", - "fields": { - "name_of_the_committee": { - "type": "column", - "column": "name" - }, - "members_of_the_committee": { - "type": "column", - "column": "members", - "fields": { - "type": "array", - "fields": { - "type": "object", - "fields": { - "member_first_name": { - "type": "column", - "column": "first_name" - }, - "member_last_name": { - "type": "column", - "column": "last_name" - } - } - } - } - }, - "members_of_the_committee_last_names_only": { - "type": "column", - "column": "members", - "fields": { - "type": "array", - "fields": { - "type": "object", - "fields": { - "member_last_name": { - "type": "column", - "column": "last_name" - } - } - } - } - } - } - } - } - } - } - } - } - } - }, - "arguments": { - "organization": { - "type": "literal", - "value": { - "name": "RC Model Airplane Enthusiasts", - "committees": [ - { - "name": "Founders", - "members": [ - { - "first_name": "Orville", - "last_name": "Wright" - }, - { - "first_name": "Wilbur", - "last_name": "Wright" - } - ] - }, - { - "name": "Parts supply management", - "members": [ - { - "first_name": "Orville", - "last_name": "Wright" - }, - { - "first_name": "Wilbur", - "last_name": "Wright" - }, - { - "first_name": "Guybrush", - "last_name": "Threepwood" - } - ] - } - ] - } - } - }, - "collection_relationships": {} -} diff --git a/relational/query/select_nested_column_complex/response.json b/relational/query/select_nested_column_complex/response.json deleted file mode 100644 index 42a7f3d..0000000 --- a/relational/query/select_nested_column_complex/response.json +++ /dev/null @@ -1,62 +0,0 @@ -[ - { - "rows": [ - { - "the_organization": { - "name_of_the_org": "RC Model Airplane Enthusiasts", - "committees_of_the_org": [ - { - "name_of_the_committee": "Founders", - "members_of_the_committee": [ - { - "member_first_name": "Orville", - "member_last_name": "Wright" - }, - { - "member_first_name": "Wilbur", - "member_last_name": "Wright" - } - ], - "members_of_the_committee_last_names_only": [ - { - "member_last_name": "Wright" - }, - { - "member_last_name": "Wright" - } - ] - }, - { - "name_of_the_committee": "Parts supply management", - "members_of_the_committee": [ - { - "member_first_name": "Orville", - "member_last_name": "Wright" - }, - { - "member_first_name": "Wilbur", - "member_last_name": "Wright" - }, - { - "member_first_name": "Guybrush", - "member_last_name": "Threepwood" - } - ], - "members_of_the_committee_last_names_only": [ - { - "member_last_name": "Wright" - }, - { - "member_last_name": "Wright" - }, - { - "member_last_name": "Threepwood" - } - ] - } - ] - } - } - ] - } -] diff --git a/relational/query/select_nested_column_simple/request.json b/relational/query/select_nested_column_simple/request.json deleted file mode 100644 index 8d7fa28..0000000 --- a/relational/query/select_nested_column_simple/request.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "collection": "address_identity_function", - "query": { - "fields": { - "result": { - "type": "column", - "column": "result", - "fields": { - "type": "object", - "fields": { - "the_first_line_of_the_address": { - "type": "column", - "column": "address_line_1" - } - } - }, - "arguments": {} - } - } - }, - "arguments": { - "address": { - "type": "literal", - "value": { - "address_line_1": "Somstreet 159", - "address_line_2": "Second door to the right" - } - } - }, - "collection_relationships": {} -} diff --git a/relational/query/select_nested_column_simple/response.json b/relational/query/select_nested_column_simple/response.json deleted file mode 100644 index e66721b..0000000 --- a/relational/query/select_nested_column_simple/response.json +++ /dev/null @@ -1,11 +0,0 @@ -[ - { - "rows": [ - { - "result": { - "the_first_line_of_the_address": "Somstreet 159" - } - } - ] - } -] diff --git a/relational/query/select_order_by_album_artist_name/expected.json b/relational/query/select_order_by_album_artist_name/expected.json new file mode 100644 index 0000000..3079d1b --- /dev/null +++ b/relational/query/select_order_by_album_artist_name/expected.json @@ -0,0 +1,21 @@ +[ + { + "rows": [ + { + "Name": "Fanfare for the Common Man" + }, + { + "Name": "OAM's Blues" + }, + { + "Name": "\"Eine Kleine Nachtmusik\" Serenade In G, K. 525: I. Allegro" + }, + { + "Name": "Requiem, Op.48: 4. Pie Jesu" + }, + { + "Name": "Fantasia On Greensleeves" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_order_by_artist_album_count/expected.json b/relational/query/select_order_by_artist_album_count/expected.json new file mode 100644 index 0000000..85ffe90 --- /dev/null +++ b/relational/query/select_order_by_artist_album_count/expected.json @@ -0,0 +1,15 @@ +[ + { + "rows": [ + { + "Name": "Iron Maiden" + }, + { + "Name": "Led Zeppelin" + }, + { + "Name": "Deep Purple" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_order_by_artist_album_count_agg/expected.json b/relational/query/select_order_by_artist_album_count_agg/expected.json new file mode 100644 index 0000000..85ffe90 --- /dev/null +++ b/relational/query/select_order_by_artist_album_count_agg/expected.json @@ -0,0 +1,15 @@ +[ + { + "rows": [ + { + "Name": "Iron Maiden" + }, + { + "Name": "Led Zeppelin" + }, + { + "Name": "Deep Purple" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_order_by_artist_name/expected.json b/relational/query/select_order_by_artist_name/expected.json new file mode 100644 index 0000000..d70ed92 --- /dev/null +++ b/relational/query/select_order_by_artist_name/expected.json @@ -0,0 +1,21 @@ +[ + { + "rows": [ + { + "Name": "Fauré: Requiem, Ravel: Pavane & Others" + }, + { + "Name": "The World of Classical Favourites" + }, + { + "Name": "Bach: Orchestral Suites Nos. 1 - 4" + }, + { + "Name": "Balls to the Wall" + }, + { + "Name": "Restless and Wild" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_order_by_artist_name_with_name/expected.json b/relational/query/select_order_by_artist_name_with_name/expected.json new file mode 100644 index 0000000..93622f3 --- /dev/null +++ b/relational/query/select_order_by_artist_name_with_name/expected.json @@ -0,0 +1,56 @@ +[ + { + "rows": [ + { + "Name": "A Copland Celebration, Vol. I", + "Artist": { + "rows": [ + { + "Name": "Aaron Copland & London Symphony Orchestra" + } + ] + } + }, + { + "Name": "Worlds", + "Artist": { + "rows": [ + { + "Name": "Aaron Goldberg" + } + ] + } + }, + { + "Name": "Sir Neville Marriner: A Celebration", + "Artist": { + "rows": [ + { + "Name": "Academy of St. Martin in the Fields Chamber Ensemble & Sir Neville Marriner" + } + ] + } + }, + { + "Name": "Fauré: Requiem, Ravel: Pavane & Others", + "Artist": { + "rows": [ + { + "Name": "Academy of St. Martin in the Fields, John Birch, Sir Neville Marriner & Sylvia McNair" + } + ] + } + }, + { + "Name": "The World of Classical Favourites", + "Artist": { + "rows": [ + { + "Name": "Academy of St. Martin in the Fields & Sir Neville Marriner" + } + ] + } + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_order_by_name/expected.json b/relational/query/select_order_by_name/expected.json new file mode 100644 index 0000000..9794f11 --- /dev/null +++ b/relational/query/select_order_by_name/expected.json @@ -0,0 +1,21 @@ +[ + { + "rows": [ + { + "Title": "Achtung Baby" + }, + { + "Title": "A Copland Celebration, Vol. I" + }, + { + "Title": "Acústico" + }, + { + "Title": "Acústico MTV" + }, + { + "Title": "Acústico MTV [Live]" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_track_order_by_artist_id_and_album_title/expected.json b/relational/query/select_track_order_by_artist_id_and_album_title/expected.json new file mode 100644 index 0000000..2becd7e --- /dev/null +++ b/relational/query/select_track_order_by_artist_id_and_album_title/expected.json @@ -0,0 +1,21 @@ +[ + { + "rows": [ + { + "Name": "Breaking The Rules" + }, + { + "Name": "C.O.D." + }, + { + "Name": "Evil Walks" + }, + { + "Name": "For Those About To Rock (We Salute You)" + }, + { + "Name": "Inject The Venom" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_where_album_id_equals_self/expected.json b/relational/query/select_where_album_id_equals_self/expected.json new file mode 100644 index 0000000..3b783e7 --- /dev/null +++ b/relational/query/select_where_album_id_equals_self/expected.json @@ -0,0 +1,10 @@ +[ + { + "rows": [ + { + "AlbumId": 340, + "Title": "Liszt - 12 Études D'Execution Transcendante" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_where_album_id_equals_self_nested_object_relationship/expected.json b/relational/query/select_where_album_id_equals_self_nested_object_relationship/expected.json new file mode 100644 index 0000000..aca72b2 --- /dev/null +++ b/relational/query/select_where_album_id_equals_self_nested_object_relationship/expected.json @@ -0,0 +1,101 @@ +[ + { + "rows": [ + { + "track": "Fast As a Shark", + "AlbumId": 3, + "Album": { + "rows": [ + { + "album": "Restless and Wild", + "Artist": { + "rows": [ + { + "artist": "Accept", + "ArtistId": 2 + } + ] + } + } + ] + } + }, + { + "track": "Restless and Wild", + "AlbumId": 3, + "Album": { + "rows": [ + { + "album": "Restless and Wild", + "Artist": { + "rows": [ + { + "artist": "Accept", + "ArtistId": 2 + } + ] + } + } + ] + } + }, + { + "track": "Princess of the Dawn", + "AlbumId": 3, + "Album": { + "rows": [ + { + "album": "Restless and Wild", + "Artist": { + "rows": [ + { + "artist": "Accept", + "ArtistId": 2 + } + ] + } + } + ] + } + }, + { + "track": "Go Down", + "AlbumId": 4, + "Album": { + "rows": [ + { + "album": "Let There Be Rock", + "Artist": { + "rows": [ + { + "artist": "AC/DC", + "ArtistId": 1 + } + ] + } + } + ] + } + }, + { + "track": "Dog Eat Dog", + "AlbumId": 4, + "Album": { + "rows": [ + { + "album": "Let There Be Rock", + "Artist": { + "rows": [ + { + "artist": "AC/DC", + "ArtistId": 1 + } + ] + } + } + ] + } + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_where_album_id_greater_than/expected.json b/relational/query/select_where_album_id_greater_than/expected.json new file mode 100644 index 0000000..6e996c3 --- /dev/null +++ b/relational/query/select_where_album_id_greater_than/expected.json @@ -0,0 +1,34 @@ +[ + { + "rows": [ + { + "AlbumId": 341, + "Title": "Great Recordings of the Century - Shubert: Schwanengesang, 4 Lieder" + }, + { + "AlbumId": 342, + "Title": "Locatelli: Concertos for Violin, Strings and Continuo, Vol. 3" + }, + { + "AlbumId": 343, + "Title": "Respighi:Pines of Rome" + }, + { + "AlbumId": 344, + "Title": "Schubert: The Late String Quartets & String Quintet (3 CD's)" + }, + { + "AlbumId": 345, + "Title": "Monteverdi: L'Orfeo" + }, + { + "AlbumId": 346, + "Title": "Mozart: Chamber Music" + }, + { + "AlbumId": 347, + "Title": "Koyaanisqatsi (Soundtrack from the Motion Picture)" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_where_album_id_greater_than_or_equal_to/expected.json b/relational/query/select_where_album_id_greater_than_or_equal_to/expected.json new file mode 100644 index 0000000..f9218a4 --- /dev/null +++ b/relational/query/select_where_album_id_greater_than_or_equal_to/expected.json @@ -0,0 +1,38 @@ +[ + { + "rows": [ + { + "AlbumId": 340, + "Title": "Liszt - 12 Études D'Execution Transcendante" + }, + { + "AlbumId": 341, + "Title": "Great Recordings of the Century - Shubert: Schwanengesang, 4 Lieder" + }, + { + "AlbumId": 342, + "Title": "Locatelli: Concertos for Violin, Strings and Continuo, Vol. 3" + }, + { + "AlbumId": 343, + "Title": "Respighi:Pines of Rome" + }, + { + "AlbumId": 344, + "Title": "Schubert: The Late String Quartets & String Quintet (3 CD's)" + }, + { + "AlbumId": 345, + "Title": "Monteverdi: L'Orfeo" + }, + { + "AlbumId": 346, + "Title": "Mozart: Chamber Music" + }, + { + "AlbumId": 347, + "Title": "Koyaanisqatsi (Soundtrack from the Motion Picture)" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_where_album_id_less_than/expected.json b/relational/query/select_where_album_id_less_than/expected.json new file mode 100644 index 0000000..9698cf2 --- /dev/null +++ b/relational/query/select_where_album_id_less_than/expected.json @@ -0,0 +1,5 @@ +[ + { + "rows": [] + } +] \ No newline at end of file diff --git a/relational/query/select_where_album_id_less_than_or_equal_to/expected.json b/relational/query/select_where_album_id_less_than_or_equal_to/expected.json new file mode 100644 index 0000000..a7c4f93 --- /dev/null +++ b/relational/query/select_where_album_id_less_than_or_equal_to/expected.json @@ -0,0 +1,10 @@ +[ + { + "rows": [ + { + "AlbumId": 1, + "Title": "For Those About To Rock We Salute You" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_where_and/expected.json b/relational/query/select_where_and/expected.json new file mode 100644 index 0000000..791ee54 --- /dev/null +++ b/relational/query/select_where_and/expected.json @@ -0,0 +1,9 @@ +[ + { + "rows": [ + { + "Title": "Van Halen III" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_where_array_relationship/expected.json b/relational/query/select_where_array_relationship/expected.json new file mode 100644 index 0000000..ff355fe --- /dev/null +++ b/relational/query/select_where_array_relationship/expected.json @@ -0,0 +1,22 @@ +[ + { + "rows": [ + { + "title": "Santana", + "albums": { + "rows": [ + { + "title": "Supernatural" + }, + { + "title": "Santana - As Years Go By" + }, + { + "title": "Santana Live" + } + ] + } + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_where_in_column/request.json b/relational/query/select_where_in_column/request.json deleted file mode 100644 index c6d8228..0000000 --- a/relational/query/select_where_in_column/request.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "collection": "array_series", - "query": { - "fields": { - "series": { - "type": "column", - "column": "series", - "arguments": {} - } - }, - "predicate": { - "type": "binary_comparison_operator", - "column": { - "type": "column", - "name": "three", - "path": [] - }, - "operator": "_in", - "value": { - "type": "column", - "column": { - "type": "column", - "name": "series", - "path": [] - } - } - } - }, - "arguments": { - "from": { - "type": "variable", - "name": "from" - }, - "to": { - "type": "variable", - "name": "to" - } - }, - "collection_relationships": {}, - "variables": [ - { - "from": 1, - "to": 5 - }, - { - "from": 5, - "to": 10 - } - ] -} diff --git a/relational/query/select_where_in_column/response.json b/relational/query/select_where_in_column/response.json deleted file mode 100644 index 6139557..0000000 --- a/relational/query/select_where_in_column/response.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "rows": [ - { - "series": [ - 1, - 2, - 3, - 4, - 5 - ] - } - ] - }, - { - "rows": [] - } -] diff --git a/relational/query/select_where_in_variable/request.json b/relational/query/select_where_in_variable/request.json deleted file mode 100644 index 956288b..0000000 --- a/relational/query/select_where_in_variable/request.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "collection": "array_series", - "query": { - "fields": { - "series": { - "type": "column", - "column": "series", - "arguments": {} - } - }, - "predicate": { - "type": "binary_comparison_operator", - "column": { - "type": "column", - "name": "three", - "path": [] - }, - "operator": "_in", - "value": { - "type": "variable", - "name": "array" - } - } - }, - "arguments": { - "from": { - "type": "variable", - "name": "from" - }, - "to": { - "type": "variable", - "name": "to" - } - }, - "collection_relationships": {}, - "variables": [ - { - "from": 1, - "to": 1, - "array": [1, 2, 3] - }, - { - "from": 2, - "to": 2, - "array": [4, 5, 6] - } - ] -} diff --git a/relational/query/select_where_in_variable/response.json b/relational/query/select_where_in_variable/response.json deleted file mode 100644 index 9fa2a33..0000000 --- a/relational/query/select_where_in_variable/response.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "rows": [ - { - "series": [ - 1 - ] - } - ] - }, - { - "rows": [] - } -] diff --git a/relational/query/select_where_name_eq/expected.json b/relational/query/select_where_name_eq/expected.json new file mode 100644 index 0000000..7c0e534 --- /dev/null +++ b/relational/query/select_where_name_eq/expected.json @@ -0,0 +1,10 @@ +[ + { + "rows": [ + { + "AlbumId": 129, + "Title": "Houses Of The Holy" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_where_name_ilike/expected.json b/relational/query/select_where_name_ilike/expected.json new file mode 100644 index 0000000..9c303c3 --- /dev/null +++ b/relational/query/select_where_name_ilike/expected.json @@ -0,0 +1,34 @@ +[ + { + "rows": [ + { + "AlbumId": 1, + "Title": "For Those About To Rock We Salute You" + }, + { + "AlbumId": 4, + "Title": "Let There Be Rock" + }, + { + "AlbumId": 59, + "Title": "Deep Purple In Rock" + }, + { + "AlbumId": 108, + "Title": "Rock In Rio [CD1]" + }, + { + "AlbumId": 109, + "Title": "Rock In Rio [CD2]" + }, + { + "AlbumId": 213, + "Title": "Pure Cult: The Best Of The Cult (For Rockers, Ravers, Lovers & Sinners) [UK]" + }, + { + "AlbumId": 216, + "Title": "Hot Rocks, 1964-1971 (Disc 1)" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_where_name_in/expected.json b/relational/query/select_where_name_in/expected.json new file mode 100644 index 0000000..2e03598 --- /dev/null +++ b/relational/query/select_where_name_in/expected.json @@ -0,0 +1,10 @@ +[ + { + "rows": [ + { + "AlbumId": 346, + "Title": "Mozart: Chamber Music" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_where_name_in_empty/expected.json b/relational/query/select_where_name_in_empty/expected.json new file mode 100644 index 0000000..9698cf2 --- /dev/null +++ b/relational/query/select_where_name_in_empty/expected.json @@ -0,0 +1,5 @@ +[ + { + "rows": [] + } +] \ No newline at end of file diff --git a/relational/query/select_where_name_iregex/expected.json b/relational/query/select_where_name_iregex/expected.json new file mode 100644 index 0000000..3863017 --- /dev/null +++ b/relational/query/select_where_name_iregex/expected.json @@ -0,0 +1,10 @@ +[ + { + "rows": [ + { + "AlbumId": 6, + "Title": "Jagged Little Pill" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_where_name_like/expected.json b/relational/query/select_where_name_like/expected.json new file mode 100644 index 0000000..9c303c3 --- /dev/null +++ b/relational/query/select_where_name_like/expected.json @@ -0,0 +1,34 @@ +[ + { + "rows": [ + { + "AlbumId": 1, + "Title": "For Those About To Rock We Salute You" + }, + { + "AlbumId": 4, + "Title": "Let There Be Rock" + }, + { + "AlbumId": 59, + "Title": "Deep Purple In Rock" + }, + { + "AlbumId": 108, + "Title": "Rock In Rio [CD1]" + }, + { + "AlbumId": 109, + "Title": "Rock In Rio [CD2]" + }, + { + "AlbumId": 213, + "Title": "Pure Cult: The Best Of The Cult (For Rockers, Ravers, Lovers & Sinners) [UK]" + }, + { + "AlbumId": 216, + "Title": "Hot Rocks, 1964-1971 (Disc 1)" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_where_name_neq/expected.json b/relational/query/select_where_name_neq/expected.json new file mode 100644 index 0000000..4c94a5e --- /dev/null +++ b/relational/query/select_where_name_neq/expected.json @@ -0,0 +1,26 @@ +[ + { + "rows": [ + { + "AlbumId": 126, + "Title": "Unplugged [Live]" + }, + { + "AlbumId": 127, + "Title": "BBC Sessions [Disc 2] [Live]" + }, + { + "AlbumId": 128, + "Title": "Coda" + }, + { + "AlbumId": 130, + "Title": "In Through The Out Door" + }, + { + "AlbumId": 131, + "Title": "IV" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_where_name_nilike/expected.json b/relational/query/select_where_name_nilike/expected.json new file mode 100644 index 0000000..faa37bb --- /dev/null +++ b/relational/query/select_where_name_nilike/expected.json @@ -0,0 +1,21 @@ +[ + { + "rows": [ + { + "Title": "For Those About To Rock We Salute You" + }, + { + "Title": "Restless and Wild" + }, + { + "Title": "Let There Be Rock" + }, + { + "Title": "Big Ones" + }, + { + "Title": "Jagged Little Pill" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_where_name_niregex/expected.json b/relational/query/select_where_name_niregex/expected.json new file mode 100644 index 0000000..564c8e8 --- /dev/null +++ b/relational/query/select_where_name_niregex/expected.json @@ -0,0 +1,26 @@ +[ + { + "rows": [ + { + "AlbumId": 1, + "Title": "For Those About To Rock We Salute You" + }, + { + "AlbumId": 2, + "Title": "Balls to the Wall" + }, + { + "AlbumId": 3, + "Title": "Restless and Wild" + }, + { + "AlbumId": 4, + "Title": "Let There Be Rock" + }, + { + "AlbumId": 5, + "Title": "Big Ones" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_where_name_not_in/expected.json b/relational/query/select_where_name_not_in/expected.json new file mode 100644 index 0000000..564c8e8 --- /dev/null +++ b/relational/query/select_where_name_not_in/expected.json @@ -0,0 +1,26 @@ +[ + { + "rows": [ + { + "AlbumId": 1, + "Title": "For Those About To Rock We Salute You" + }, + { + "AlbumId": 2, + "Title": "Balls to the Wall" + }, + { + "AlbumId": 3, + "Title": "Restless and Wild" + }, + { + "AlbumId": 4, + "Title": "Let There Be Rock" + }, + { + "AlbumId": 5, + "Title": "Big Ones" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_where_name_not_like/expected.json b/relational/query/select_where_name_not_like/expected.json new file mode 100644 index 0000000..a12d566 --- /dev/null +++ b/relational/query/select_where_name_not_like/expected.json @@ -0,0 +1,26 @@ +[ + { + "rows": [ + { + "AlbumId": 2, + "Title": "Balls to the Wall" + }, + { + "AlbumId": 3, + "Title": "Restless and Wild" + }, + { + "AlbumId": 5, + "Title": "Big Ones" + }, + { + "AlbumId": 6, + "Title": "Jagged Little Pill" + }, + { + "AlbumId": 7, + "Title": "Facelift" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_where_name_nregex/expected.json b/relational/query/select_where_name_nregex/expected.json new file mode 100644 index 0000000..926409f --- /dev/null +++ b/relational/query/select_where_name_nregex/expected.json @@ -0,0 +1,46 @@ +[ + { + "rows": [ + { + "AlbumId": 1, + "Title": "For Those About To Rock We Salute You" + }, + { + "AlbumId": 2, + "Title": "Balls to the Wall" + }, + { + "AlbumId": 3, + "Title": "Restless and Wild" + }, + { + "AlbumId": 4, + "Title": "Let There Be Rock" + }, + { + "AlbumId": 5, + "Title": "Big Ones" + }, + { + "AlbumId": 7, + "Title": "Facelift" + }, + { + "AlbumId": 8, + "Title": "Warner 25 Anos" + }, + { + "AlbumId": 9, + "Title": "Plays Metallica By Four Cellos" + }, + { + "AlbumId": 10, + "Title": "Audioslave" + }, + { + "AlbumId": 11, + "Title": "Out Of Exile" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_where_name_regex/expected.json b/relational/query/select_where_name_regex/expected.json new file mode 100644 index 0000000..3863017 --- /dev/null +++ b/relational/query/select_where_name_regex/expected.json @@ -0,0 +1,10 @@ +[ + { + "rows": [ + { + "AlbumId": 6, + "Title": "Jagged Little Pill" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_where_no_variables/expected.json b/relational/query/select_where_no_variables/expected.json new file mode 100644 index 0000000..0637a08 --- /dev/null +++ b/relational/query/select_where_no_variables/expected.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/relational/query/select_where_or/expected.json b/relational/query/select_where_or/expected.json new file mode 100644 index 0000000..2a96f62 --- /dev/null +++ b/relational/query/select_where_or/expected.json @@ -0,0 +1,12 @@ +[ + { + "rows": [ + { + "Title": "IV" + }, + { + "Title": "Van Halen III" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_where_related_exists/expected.json b/relational/query/select_where_related_exists/expected.json new file mode 100644 index 0000000..ff355fe --- /dev/null +++ b/relational/query/select_where_related_exists/expected.json @@ -0,0 +1,22 @@ +[ + { + "rows": [ + { + "title": "Santana", + "albums": { + "rows": [ + { + "title": "Supernatural" + }, + { + "title": "Santana - As Years Go By" + }, + { + "title": "Santana Live" + } + ] + } + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_where_unrelated_exists/expected.json b/relational/query/select_where_unrelated_exists/expected.json new file mode 100644 index 0000000..4b622db --- /dev/null +++ b/relational/query/select_where_unrelated_exists/expected.json @@ -0,0 +1,15 @@ +[ + { + "rows": [ + { + "title": "As Canções de Eu Tu Eles" + }, + { + "title": "Quanta Gente Veio Ver (Live)" + }, + { + "title": "Quanta Gente Veio ver--Bônus De Carnaval" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_where_variable/expected.json b/relational/query/select_where_variable/expected.json new file mode 100644 index 0000000..b4922fc --- /dev/null +++ b/relational/query/select_where_variable/expected.json @@ -0,0 +1,42 @@ +[ + { + "rows": [ + { + "Title": "Jota Quest-1995" + } + ] + }, + { + "rows": [] + }, + { + "rows": [ + { + "Title": "Rock In Rio [CD1]" + }, + { + "Title": "Rock In Rio [CD2]" + }, + { + "Title": "Riot Act" + } + ] + }, + { + "rows": [ + { + "Title": "Garage Inc. (Disc 1)" + }, + { + "Title": "Garage Inc. (Disc 2)" + } + ] + }, + { + "rows": [ + { + "Title": "Beyond Good And Evil" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/select_where_variable_int/expected.json b/relational/query/select_where_variable_int/expected.json new file mode 100644 index 0000000..eaedafd --- /dev/null +++ b/relational/query/select_where_variable_int/expected.json @@ -0,0 +1,21 @@ +[ + { + "rows": [ + { + "AlbumId": 35, + "Title": "Garage Inc. (Disc 1)" + } + ] + }, + { + "rows": [ + { + "AlbumId": 222, + "Title": "Serie Sem Limite (Disc 1)" + } + ] + }, + { + "rows": [] + } +] \ No newline at end of file diff --git a/relational/query/sorting_by_nested_relationship_column_with_predicate/expected.json b/relational/query/sorting_by_nested_relationship_column_with_predicate/expected.json new file mode 100644 index 0000000..4861367 --- /dev/null +++ b/relational/query/sorting_by_nested_relationship_column_with_predicate/expected.json @@ -0,0 +1,12 @@ +[ + { + "rows": [ + { + "Name": "Crazy Train" + }, + { + "Name": "I Don't Know" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/sorting_by_nested_relationship_column_with_predicate_exists/expected.json b/relational/query/sorting_by_nested_relationship_column_with_predicate_exists/expected.json new file mode 100644 index 0000000..6ffad0f --- /dev/null +++ b/relational/query/sorting_by_nested_relationship_column_with_predicate_exists/expected.json @@ -0,0 +1,21 @@ +[ + { + "rows": [ + { + "Name": "Balls to the Wall" + }, + { + "Name": "Fast As a Shark" + }, + { + "Name": "Princess of the Dawn" + }, + { + "Name": "Restless and Wild" + }, + { + "Name": "\"?\"" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/sorting_by_nested_relationship_count/expected.json b/relational/query/sorting_by_nested_relationship_count/expected.json new file mode 100644 index 0000000..52870b4 --- /dev/null +++ b/relational/query/sorting_by_nested_relationship_count/expected.json @@ -0,0 +1,184 @@ +[ + { + "rows": [ + { + "Name": "Iron Maiden", + "Albums": { + "rows": [ + { + "Title": "A Matter of Life and Death", + "Tracks": { + "aggregates": { + "how_many_tracks": 11 + } + } + }, + { + "Title": "A Real Dead One", + "Tracks": { + "aggregates": { + "how_many_tracks": 12 + } + } + }, + { + "Title": "A Real Live One", + "Tracks": { + "aggregates": { + "how_many_tracks": 11 + } + } + }, + { + "Title": "Brave New World", + "Tracks": { + "aggregates": { + "how_many_tracks": 10 + } + } + }, + { + "Title": "Dance Of Death", + "Tracks": { + "aggregates": { + "how_many_tracks": 11 + } + } + }, + { + "Title": "Fear Of The Dark", + "Tracks": { + "aggregates": { + "how_many_tracks": 12 + } + } + }, + { + "Title": "Iron Maiden", + "Tracks": { + "aggregates": { + "how_many_tracks": 9 + } + } + }, + { + "Title": "Killers", + "Tracks": { + "aggregates": { + "how_many_tracks": 10 + } + } + }, + { + "Title": "Live After Death", + "Tracks": { + "aggregates": { + "how_many_tracks": 18 + } + } + }, + { + "Title": "Live At Donington 1992 (Disc 1)", + "Tracks": { + "aggregates": { + "how_many_tracks": 10 + } + } + }, + { + "Title": "Live At Donington 1992 (Disc 2)", + "Tracks": { + "aggregates": { + "how_many_tracks": 10 + } + } + }, + { + "Title": "No Prayer For The Dying", + "Tracks": { + "aggregates": { + "how_many_tracks": 10 + } + } + }, + { + "Title": "Piece Of Mind", + "Tracks": { + "aggregates": { + "how_many_tracks": 9 + } + } + }, + { + "Title": "Powerslave", + "Tracks": { + "aggregates": { + "how_many_tracks": 8 + } + } + }, + { + "Title": "Rock In Rio [CD1]", + "Tracks": { + "aggregates": { + "how_many_tracks": 10 + } + } + }, + { + "Title": "Rock In Rio [CD2]", + "Tracks": { + "aggregates": { + "how_many_tracks": 9 + } + } + }, + { + "Title": "Seventh Son of a Seventh Son", + "Tracks": { + "aggregates": { + "how_many_tracks": 8 + } + } + }, + { + "Title": "Somewhere in Time", + "Tracks": { + "aggregates": { + "how_many_tracks": 8 + } + } + }, + { + "Title": "The Number of The Beast", + "Tracks": { + "aggregates": { + "how_many_tracks": 8 + } + } + }, + { + "Title": "The X Factor", + "Tracks": { + "aggregates": { + "how_many_tracks": 11 + } + } + }, + { + "Title": "Virtual XI", + "Tracks": { + "aggregates": { + "how_many_tracks": 8 + } + } + } + ], + "aggregates": { + "how_many_albums": 21 + } + } + } + ] + } +] \ No newline at end of file diff --git a/relational/query/sorting_by_relationship_count_with_predicate/expected.json b/relational/query/sorting_by_relationship_count_with_predicate/expected.json new file mode 100644 index 0000000..87ad600 --- /dev/null +++ b/relational/query/sorting_by_relationship_count_with_predicate/expected.json @@ -0,0 +1,21 @@ +[ + { + "rows": [ + { + "Name": "Iron Maiden" + }, + { + "Name": "Metallica" + }, + { + "Name": "U2" + }, + { + "Name": "Led Zeppelin" + }, + { + "Name": "Deep Purple" + } + ] + } +] \ No newline at end of file diff --git a/relational/query/very_nested_recursive_relationship/expected.json b/relational/query/very_nested_recursive_relationship/expected.json new file mode 100644 index 0000000..6c7d437 --- /dev/null +++ b/relational/query/very_nested_recursive_relationship/expected.json @@ -0,0 +1,187 @@ +[ + { + "rows": [ + { + "0Name": "AC/DC", + "Albums": { + "rows": [ + { + "0Title": "For Those About To Rock We Salute You", + "Artist": { + "rows": [ + { + "0ArtistId": 1, + "Albums": { + "rows": [ + { + "0Title": "For Those About To Rock We Salute You", + "Artist": { + "rows": [ + { + "0Name": "AC/DC" + } + ] + } + }, + { + "0Title": "Let There Be Rock", + "Artist": { + "rows": [ + { + "0Name": "AC/DC" + } + ] + } + } + ] + } + } + ] + } + }, + { + "0Title": "Let There Be Rock", + "Artist": { + "rows": [ + { + "0ArtistId": 1, + "Albums": { + "rows": [ + { + "0Title": "For Those About To Rock We Salute You", + "Artist": { + "rows": [ + { + "0Name": "AC/DC" + } + ] + } + }, + { + "0Title": "Let There Be Rock", + "Artist": { + "rows": [ + { + "0Name": "AC/DC" + } + ] + } + } + ] + } + } + ] + } + } + ] + } + }, + { + "0Name": "Accept", + "Albums": { + "rows": [ + { + "0Title": "Balls to the Wall", + "Artist": { + "rows": [ + { + "0ArtistId": 2, + "Albums": { + "rows": [ + { + "0Title": "Balls to the Wall", + "Artist": { + "rows": [ + { + "0Name": "Accept" + } + ] + } + }, + { + "0Title": "Restless and Wild", + "Artist": { + "rows": [ + { + "0Name": "Accept" + } + ] + } + } + ] + } + } + ] + } + }, + { + "0Title": "Restless and Wild", + "Artist": { + "rows": [ + { + "0ArtistId": 2, + "Albums": { + "rows": [ + { + "0Title": "Balls to the Wall", + "Artist": { + "rows": [ + { + "0Name": "Accept" + } + ] + } + }, + { + "0Title": "Restless and Wild", + "Artist": { + "rows": [ + { + "0Name": "Accept" + } + ] + } + } + ] + } + } + ] + } + } + ] + } + }, + { + "0Name": "Aerosmith", + "Albums": { + "rows": [ + { + "0Title": "Big Ones", + "Artist": { + "rows": [ + { + "0ArtistId": 3, + "Albums": { + "rows": [ + { + "0Title": "Big Ones", + "Artist": { + "rows": [ + { + "0Name": "Aerosmith" + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + ] + } +] \ No newline at end of file diff --git a/relational/query/where_cidr_network_supeq/request.json b/relational/query/where_cidr_network_supeq/request.json deleted file mode 100644 index 2e8f109..0000000 --- a/relational/query/where_cidr_network_supeq/request.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "collection": "custom_test_cidr", - "query": { - "fields": { - "ip": { - "type": "column", - "column": "ip", - "arguments": {} - }, - "service": { - "type": "column", - "column": "service", - "arguments": {} - } - }, - "predicate": { - "type": "binary_comparison_operator", - "column": { - "type": "column", - "name": "ip", - "path": [] - }, - "operator": "network_supeq", - "value": { - "type": "scalar", - "value": "64.6.64.11" - } - } - }, - "arguments": {}, - "collection_relationships": {} -} diff --git a/relational/query/where_cidr_network_supeq/response.json b/relational/query/where_cidr_network_supeq/response.json deleted file mode 100644 index 8ddb108..0000000 --- a/relational/query/where_cidr_network_supeq/response.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "rows": [ - { - "ip": "64.6.64.0/24", - "service": "my_service" - } - ] - } -]