From 4bfa37a9f4b48bd32782231cc615789bce1aa6e6 Mon Sep 17 00:00:00 2001 From: Karthikeyan C Date: Tue, 10 Sep 2024 14:36:52 +0530 Subject: [PATCH] fix NDC tests --- ndc-test-snapshots/capabilities | 9 +- .../expected.json | 391 +++---- .../request.json | 19 +- .../expected.json | 412 +++---- .../request.json | 19 +- .../expected.json | 288 +---- .../request.json | 5 - .../expected.json | 260 +---- .../request.json | 5 - .../expected.json | 208 ---- .../request.json | 50 - .../request.json | 26 +- .../expected.json | 165 +-- .../request.json | 5 - .../expected.json | 275 +---- .../request.json | 6 +- .../expected.json | 242 +--- .../request.json | 5 - ndc-test-snapshots/schema | 1039 ++++++++++++----- 19 files changed, 1354 insertions(+), 2075 deletions(-) delete mode 100644 ndc-test-snapshots/query/nobel_laureates_multiple_orderby_test_on_overallMotivation_and_prizeid/expected.json delete mode 100644 ndc-test-snapshots/query/nobel_laureates_multiple_orderby_test_on_overallMotivation_and_prizeid/request.json diff --git a/ndc-test-snapshots/capabilities b/ndc-test-snapshots/capabilities index 902a796..ef1b052 100644 --- a/ndc-test-snapshots/capabilities +++ b/ndc-test-snapshots/capabilities @@ -1,7 +1,10 @@ { - "version": "0.1.0", + "version": "0.1.5", "capabilities": { - "query": {}, + "query": { + "nested_fields": {}, + "exists": {} + }, "mutation": {} } -} \ No newline at end of file +} diff --git a/ndc-test-snapshots/query/nobel_laureates_gte_predicate_test/expected.json b/ndc-test-snapshots/query/nobel_laureates_gte_predicate_test/expected.json index 81ab5d5..0e11ced 100644 --- a/ndc-test-snapshots/query/nobel_laureates_gte_predicate_test/expected.json +++ b/ndc-test-snapshots/query/nobel_laureates_gte_predicate_test/expected.json @@ -1,229 +1,164 @@ [ - { - "rows": [ - { - "laureates": [ - { - "id": "960", - "firstname": "Arthur", - "surname": "Ashkin", - "motivation": "\"for the optical tweezers and their application to biological systems\"", - "share": "2" - }, - { - "id": "961", - "firstname": "Gérard", - "surname": "Mourou", - "motivation": "\"for their method of generating high-intensity, ultra-short optical pulses\"", - "share": "4" - }, - { - "id": "962", - "firstname": "Donna", - "surname": "Strickland", - "motivation": "\"for their method of generating high-intensity, ultra-short optical pulses\"", - "share": "4" - } - ], - "overallMotivation": "\"for groundbreaking inventions in the field of laser physics\"", - "prize_id": 35, - "year": 2018 - }, - { - "laureates": [ - { - "id": "958", - "firstname": "James P.", - "surname": "Allison", - "motivation": "\"for their discovery of cancer therapy by inhibition of negative immune regulation\"", - "share": "2" - }, - { - "id": "959", - "firstname": "Tasuku", - "surname": "Honjo", - "motivation": "\"for their discovery of cancer therapy by inhibition of negative immune regulation\"", - "share": "2" - } - ], - "overallMotivation": null, - "prize_id": 36, - "year": 2018 - }, - { - "laureates": [ - { - "id": "944", - "firstname": "Jacques", - "surname": "Dubochet", - "motivation": "\"for developing cryo-electron microscopy for the high-resolution structure determination of biomolecules in solution\"", - "share": "3" - }, - { - "id": "945", - "firstname": "Joachim", - "surname": "Frank", - "motivation": "\"for developing cryo-electron microscopy for the high-resolution structure determination of biomolecules in solution\"", - "share": "3" - }, - { - "id": "946", - "firstname": "Richard", - "surname": "Henderson", - "motivation": "\"for developing cryo-electron microscopy for the high-resolution structure determination of biomolecules in solution\"", - "share": "3" - } - ], - "overallMotivation": null, - "prize_id": 37, - "year": 2017 - }, - { - "laureates": [ - { - "id": "949", - "firstname": "Richard H.", - "surname": "Thaler", - "motivation": "\"for his contributions to behavioural economics\"", - "share": "1" - } - ], - "overallMotivation": null, - "prize_id": 38, - "year": 2017 - }, - { - "laureates": [ - { - "id": "947", - "firstname": "Kazuo", - "surname": "Ishiguro", - "motivation": "\"who, in novels of great emotional force, has uncovered the abyss beneath our illusory sense of connection with the world\"", - "share": "1" - } - ], - "overallMotivation": null, - "prize_id": 39, - "year": 2017 - }, - { - "laureates": [ - { - "id": "948", - "motivation": "\"for its work to draw attention to the catastrophic humanitarian consequences of any use of nuclear weapons and for its ground-breaking efforts to achieve a treaty-based prohibition of such weapons\"", - "share": "1", - "firstname": "International Campaign to Abolish Nuclear Weapons" - } - ], - "overallMotivation": null, - "prize_id": 40, - "year": 2017 - }, - { - "laureates": [ - { - "id": "941", - "firstname": "Rainer", - "surname": "Weiss", - "motivation": "\"for decisive contributions to the LIGO detector and the observation of gravitational waves\"", - "share": "2" - }, - { - "id": "942", - "firstname": "Barry C.", - "surname": "Barish", - "motivation": "\"for decisive contributions to the LIGO detector and the observation of gravitational waves\"", - "share": "4" - }, - { - "id": "943", - "firstname": "Kip S.", - "surname": "Thorne", - "motivation": "\"for decisive contributions to the LIGO detector and the observation of gravitational waves\"", - "share": "4" - } - ], - "overallMotivation": null, - "prize_id": 41, - "year": 2017 - }, - { - "laureates": [ - { - "id": "938", - "firstname": "Jeffrey C.", - "surname": "Hall", - "motivation": "\"for their discoveries of molecular mechanisms controlling the circadian rhythm\"", - "share": "3" - }, - { - "id": "939", - "firstname": "Michael", - "surname": "Rosbash", - "motivation": "\"for their discoveries of molecular mechanisms controlling the circadian rhythm\"", - "share": "3" - }, - { - "id": "940", - "firstname": "Michael W.", - "surname": "Young", - "motivation": "\"for their discoveries of molecular mechanisms controlling the circadian rhythm\"", - "share": "3" - } - ], - "overallMotivation": null, - "prize_id": 42, - "year": 2017 - }, - { - "laureates": [ - { - "id": "931", - "firstname": "Jean-Pierre", - "surname": "Sauvage", - "motivation": "\"for the design and synthesis of molecular machines\"", - "share": "3" - }, - { - "id": "932", - "firstname": "Sir J. Fraser", - "surname": "Stoddart", - "motivation": "\"for the design and synthesis of molecular machines\"", - "share": "3" - }, - { - "id": "933", - "firstname": "Bernard L.", - "surname": "Feringa", - "motivation": "\"for the design and synthesis of molecular machines\"", - "share": "3" - } - ], - "overallMotivation": null, - "prize_id": 43, - "year": 2016 - }, - { - "laureates": [ - { - "id": "935", - "firstname": "Oliver", - "surname": "Hart", - "motivation": "\"for their contributions to contract theory\"", - "share": "2" - }, - { - "id": "936", - "firstname": "Bengt", - "surname": "Holmström", - "motivation": "\"for their contributions to contract theory\"", - "share": "2" - } - ], - "overallMotivation": null, - "prize_id": 44, - "year": 2016 - } - ] - } -] \ No newline at end of file + { + "rows": [ + { + "laureates": [ + { + "firstName": "Arthur", + "id": "960" + }, + { + "firstName": "Gérard", + "id": "961" + }, + { + "firstName": "Donna", + "id": "962" + } + ], + "overallMotivation": "\"for groundbreaking inventions in the field of laser physics\"", + "prize_id": 35, + "year": 2018 + }, + { + "laureates": [ + { + "firstName": "James P.", + "id": "958" + }, + { + "firstName": "Tasuku", + "id": "959" + } + ], + "overallMotivation": null, + "prize_id": 36, + "year": 2018 + }, + { + "laureates": [ + { + "firstName": "Jacques", + "id": "944" + }, + { + "firstName": "Joachim", + "id": "945" + }, + { + "firstName": "Richard", + "id": "946" + } + ], + "overallMotivation": null, + "prize_id": 37, + "year": 2017 + }, + { + "laureates": [ + { + "firstName": "Richard H.", + "id": "949" + } + ], + "overallMotivation": null, + "prize_id": 38, + "year": 2017 + }, + { + "laureates": [ + { + "firstName": "Kazuo", + "id": "947" + } + ], + "overallMotivation": null, + "prize_id": 39, + "year": 2017 + }, + { + "laureates": [ + { + "firstName": "International Campaign to Abolish Nuclear Weapons", + "id": "948" + } + ], + "overallMotivation": null, + "prize_id": 40, + "year": 2017 + }, + { + "laureates": [ + { + "firstName": "Rainer", + "id": "941" + }, + { + "firstName": "Barry C.", + "id": "942" + }, + { + "firstName": "Kip S.", + "id": "943" + } + ], + "overallMotivation": null, + "prize_id": 41, + "year": 2017 + }, + { + "laureates": [ + { + "firstName": "Jeffrey C.", + "id": "938" + }, + { + "firstName": "Michael", + "id": "939" + }, + { + "firstName": "Michael W.", + "id": "940" + } + ], + "overallMotivation": null, + "prize_id": 42, + "year": 2017 + }, + { + "laureates": [ + { + "firstName": "Jean-Pierre", + "id": "931" + }, + { + "firstName": "Sir J. Fraser", + "id": "932" + }, + { + "firstName": "Bernard L.", + "id": "933" + } + ], + "overallMotivation": null, + "prize_id": 43, + "year": 2016 + }, + { + "laureates": [ + { + "firstName": "Oliver", + "id": "935" + }, + { + "firstName": "Bengt", + "id": "936" + } + ], + "overallMotivation": null, + "prize_id": 44, + "year": 2016 + } + ] + } +] diff --git a/ndc-test-snapshots/query/nobel_laureates_gte_predicate_test/request.json b/ndc-test-snapshots/query/nobel_laureates_gte_predicate_test/request.json index 4af9562..313d73e 100644 --- a/ndc-test-snapshots/query/nobel_laureates_gte_predicate_test/request.json +++ b/ndc-test-snapshots/query/nobel_laureates_gte_predicate_test/request.json @@ -5,8 +5,23 @@ "laureates": { "type": "column", "column": "laureates", - "fields": null - }, + "fields": { + "type": "array", + "fields": { + "type": "object", + "fields": { + "firstName": { + "type": "column", + "column": "firstname" + }, + "id": { + "type": "column", + "column": "id" + } + } + } + } + }, "overallMotivation": { "type": "column", "column": "overallMotivation", diff --git a/ndc-test-snapshots/query/nobel_laureates_lte_predicate_test/expected.json b/ndc-test-snapshots/query/nobel_laureates_lte_predicate_test/expected.json index 0d1f2ed..0a7c9c5 100644 --- a/ndc-test-snapshots/query/nobel_laureates_lte_predicate_test/expected.json +++ b/ndc-test-snapshots/query/nobel_laureates_lte_predicate_test/expected.json @@ -1,242 +1,172 @@ [ - { - "rows": [ - { - "laureates": [ - { - "id": "1007", - "firstname": "David", - "surname": "Card", - "motivation": "\"for his empirical contributions to labour economics\"", - "share": "2" - }, - { - "id": "1008", - "firstname": "Joshua", - "surname": "Angrist", - "motivation": "\"for their methodological contributions to the analysis of causal relationships\"", - "share": "4" - }, - { - "id": "1009", - "firstname": "Guido", - "surname": "Imbens", - "motivation": "\"for their methodological contributions to the analysis of causal relationships\"", - "share": "4" - } - ], - "overallMotivation": null, - "prize_id": 14, - "year": 2021 - }, - { - "laureates": [ - { - "id": "1002", - "firstname": "Benjamin", - "surname": "List", - "motivation": "\"for the development of asymmetric organocatalysis\"", - "share": "2" - }, - { - "id": "1003", - "firstname": "David", - "surname": "MacMillan", - "motivation": "\"for the development of asymmetric organocatalysis\"", - "share": "2" - } - ], - "overallMotivation": null, - "prize_id": 13, - "year": 2021 - }, - { - "laureates": [ - { - "id": "1011", - "firstname": "Svante", - "surname": "Pääbo", - "motivation": "\"for his discoveries concerning the genomes of extinct hominins and human evolution\"", - "share": "1" - } - ], - "overallMotivation": null, - "prize_id": 12, - "year": 2022 - }, - { - "laureates": [ - { - "id": "1012", - "firstname": "Alain", - "surname": "Aspect", - "motivation": "\"for experiments with entangled photons, establishing the violation of Bell inequalities and pioneering quantum information science\"", - "share": "3" - }, - { - "id": "1013", - "firstname": "John ", - "surname": "Clauser", - "motivation": "\"for experiments with entangled photons, establishing the violation of Bell inequalities and pioneering quantum information science\"", - "share": "3" - }, - { - "id": "1014", - "firstname": "Anton", - "surname": "Zeilinger", - "motivation": "\"for experiments with entangled photons, establishing the violation of Bell inequalities and pioneering quantum information science\"", - "share": "3" - } - ], - "overallMotivation": null, - "prize_id": 11, - "year": 2022 - }, - { - "laureates": [ - { - "id": "1018", - "firstname": "Ales", - "surname": "Bialiatski ", - "motivation": "\"The Peace Prize laureates represent civil society in their home countries. They have for many years promoted the right to criticise power and protect the fundamental rights of citizens. They have made an outstanding effort to document war crimes, human right abuses and the abuse of power. Together they demonstrate the significance of civil society for peace and democracy.\"", - "share": "3" - }, - { - "id": "1019", - "motivation": "\"The Peace Prize laureates represent civil society in their home countries. They have for many years promoted the right to criticise power and protect the fundamental rights of citizens. They have made an outstanding effort to document war crimes, human right abuses and the abuse of power. Together they demonstrate the significance of civil society for peace and democracy.\"", - "share": "3", - "firstname": "Memorial" - }, - { - "id": "1020", - "motivation": "\"The Peace Prize laureates represent civil society in their home countries. They have for many years promoted the right to criticise power and protect the fundamental rights of citizens. They have made an outstanding effort to document war crimes, human right abuses and the abuse of power. Together they demonstrate the significance of civil society for peace and democracy.\"", - "share": "3", - "firstname": "Center for Civil Liberties" - } - ], - "overallMotivation": null, - "prize_id": 10, - "year": 2022 - }, - { - "laureates": [ - { - "id": "1017", - "firstname": "Annie", - "surname": "Ernaux", - "motivation": "\"for the courage and clinical acuity with which she uncovers the roots, estrangements and collective restraints of personal memory\"", - "share": "1" - } - ], - "overallMotivation": null, - "prize_id": 9, - "year": 2022 - }, - { - "laureates": [ - { - "id": "1021", - "firstname": "Ben", - "surname": "Bernanke", - "motivation": "\"for research on banks and financial crises\"", - "share": "3" - }, - { - "id": "1022", - "firstname": "Douglas", - "surname": "Diamond", - "motivation": "\"for research on banks and financial crises\"", - "share": "3" - }, - { - "id": "1023", - "firstname": "Philip", - "surname": "Dybvig", - "motivation": "\"for research on banks and financial crises\"", - "share": "3" - } - ], - "overallMotivation": null, - "prize_id": 8, - "year": 2022 - }, - { - "laureates": [ - { - "id": "1015", - "firstname": "Carolyn", - "surname": "Bertozzi", - "motivation": "\"for the development of click chemistry and bioorthogonal chemistry\"", - "share": "3" - }, - { - "id": "1016", - "firstname": "Morten", - "surname": "Meldal", - "motivation": "\"for the development of click chemistry and bioorthogonal chemistry\"", - "share": "3" - }, - { - "id": "743", - "firstname": "Barry", - "surname": "Sharpless", - "motivation": "\"for the development of click chemistry and bioorthogonal chemistry\"", - "share": "3" - } - ], - "overallMotivation": null, - "prize_id": 7, - "year": 2022 - }, - { - "laureates": [ - { - "id": "1024", - "firstname": "Katalin", - "surname": "Karikó", - "motivation": "\"for their discoveries concerning nucleoside base modifications that enabled the development of effective mRNA vaccines against COVID-19\"", - "share": "2" - }, - { - "id": "1025", - "firstname": "Drew", - "surname": "Weissman", - "motivation": "\"for their discoveries concerning nucleoside base modifications that enabled the development of effective mRNA vaccines against COVID-19\"", - "share": "2" - } - ], - "overallMotivation": null, - "prize_id": 6, - "year": 2023 - }, - { - "laureates": [ - { - "id": "1026", - "firstname": "Pierre", - "surname": "Agostini", - "motivation": "\"for experimental methods that generate attosecond pulses of light for the study of electron dynamics in matter\"", - "share": "3" - }, - { - "id": "1027", - "firstname": "Ferenc", - "surname": "Krausz", - "motivation": "\"for experimental methods that generate attosecond pulses of light for the study of electron dynamics in matter\"", - "share": "3" - }, - { - "id": "1028", - "firstname": "Anne", - "surname": "L’Huillier", - "motivation": "\"for experimental methods that generate attosecond pulses of light for the study of electron dynamics in matter\"", - "share": "3" - } - ], - "overallMotivation": null, - "prize_id": 5, - "year": 2023 - } - ] - } -] \ No newline at end of file + { + "rows": [ + { + "laureates": [ + { + "firstName": "David", + "id": "1007" + }, + { + "firstName": "Joshua", + "id": "1008" + }, + { + "firstName": "Guido", + "id": "1009" + } + ], + "overallMotivation": null, + "prize_id": 14, + "year": 2021 + }, + { + "laureates": [ + { + "firstName": "Benjamin", + "id": "1002" + }, + { + "firstName": "David", + "id": "1003" + } + ], + "overallMotivation": null, + "prize_id": 13, + "year": 2021 + }, + { + "laureates": [ + { + "firstName": "Svante", + "id": "1011" + } + ], + "overallMotivation": null, + "prize_id": 12, + "year": 2022 + }, + { + "laureates": [ + { + "firstName": "Alain", + "id": "1012" + }, + { + "firstName": "John ", + "id": "1013" + }, + { + "firstName": "Anton", + "id": "1014" + } + ], + "overallMotivation": null, + "prize_id": 11, + "year": 2022 + }, + { + "laureates": [ + { + "firstName": "Ales", + "id": "1018" + }, + { + "firstName": "Memorial", + "id": "1019" + }, + { + "firstName": "Center for Civil Liberties", + "id": "1020" + } + ], + "overallMotivation": null, + "prize_id": 10, + "year": 2022 + }, + { + "laureates": [ + { + "firstName": "Annie", + "id": "1017" + } + ], + "overallMotivation": null, + "prize_id": 9, + "year": 2022 + }, + { + "laureates": [ + { + "firstName": "Ben", + "id": "1021" + }, + { + "firstName": "Douglas", + "id": "1022" + }, + { + "firstName": "Philip", + "id": "1023" + } + ], + "overallMotivation": null, + "prize_id": 8, + "year": 2022 + }, + { + "laureates": [ + { + "firstName": "Carolyn", + "id": "1015" + }, + { + "firstName": "Morten", + "id": "1016" + }, + { + "firstName": "Barry", + "id": "743" + } + ], + "overallMotivation": null, + "prize_id": 7, + "year": 2022 + }, + { + "laureates": [ + { + "firstName": "Katalin", + "id": "1024" + }, + { + "firstName": "Drew", + "id": "1025" + } + ], + "overallMotivation": null, + "prize_id": 6, + "year": 2023 + }, + { + "laureates": [ + { + "firstName": "Pierre", + "id": "1026" + }, + { + "firstName": "Ferenc", + "id": "1027" + }, + { + "firstName": "Anne", + "id": "1028" + } + ], + "overallMotivation": null, + "prize_id": 5, + "year": 2023 + } + ] + } +] diff --git a/ndc-test-snapshots/query/nobel_laureates_lte_predicate_test/request.json b/ndc-test-snapshots/query/nobel_laureates_lte_predicate_test/request.json index 4ab480e..5397f9e 100644 --- a/ndc-test-snapshots/query/nobel_laureates_lte_predicate_test/request.json +++ b/ndc-test-snapshots/query/nobel_laureates_lte_predicate_test/request.json @@ -5,8 +5,23 @@ "laureates": { "type": "column", "column": "laureates", - "fields": null - }, + "fields": { + "type": "array", + "fields": { + "type": "object", + "fields": { + "firstName": { + "type": "column", + "column": "firstname" + }, + "id": { + "type": "column", + "column": "id" + } + } + } + } + }, "overallMotivation": { "type": "column", "column": "overallMotivation", diff --git a/ndc-test-snapshots/query/nobel_laureates_multiple_orderby_on_optional_field_overallmotivation/expected.json b/ndc-test-snapshots/query/nobel_laureates_multiple_orderby_on_optional_field_overallmotivation/expected.json index d4163ec..9e69770 100644 --- a/ndc-test-snapshots/query/nobel_laureates_multiple_orderby_on_optional_field_overallmotivation/expected.json +++ b/ndc-test-snapshots/query/nobel_laureates_multiple_orderby_on_optional_field_overallmotivation/expected.json @@ -1,236 +1,56 @@ [ - { - "rows": [ - { - "year_0389": 2018, - "laureates_0566": [ - { - "id": "960", - "firstname": "Arthur", - "surname": "Ashkin", - "motivation": "\"for the optical tweezers and their application to biological systems\"", - "share": "2" - }, - { - "id": "961", - "firstname": "Gérard", - "surname": "Mourou", - "motivation": "\"for their method of generating high-intensity, ultra-short optical pulses\"", - "share": "4" - }, - { - "id": "962", - "firstname": "Donna", - "surname": "Strickland", - "motivation": "\"for their method of generating high-intensity, ultra-short optical pulses\"", - "share": "4" - } - ], - "overallMotivation_6702": "\"for groundbreaking inventions in the field of laser physics\"", - "prize_id_6319": 35 - }, - { - "year_0389": 2021, - "laureates_0566": [ - { - "id": "999", - "firstname": "Syukuro", - "surname": "Manabe", - "motivation": "\"for the physical modelling of Earth’s climate, quantifying variability and reliably predicting global warming\"", - "share": "4" - }, - { - "id": "1000", - "firstname": "Klaus", - "surname": "Hasselmann", - "motivation": "\"for the physical modelling of Earth’s climate, quantifying variability and reliably predicting global warming\"", - "share": "4" - }, - { - "id": "1001", - "firstname": "Giorgio", - "surname": "Parisi", - "motivation": "\"for the discovery of the interplay of disorder and fluctuations in physical systems from atomic to planetary scales\"", - "share": "2" - } - ], - "overallMotivation_6702": "\"for groundbreaking contributions to our understanding of complex physical systems\"", - "prize_id_6319": 17 - }, - { - "year_0389": 2019, - "laureates_0566": [ - { - "id": "973", - "firstname": "James", - "surname": "Peebles", - "motivation": "\"for theoretical discoveries in physical cosmology\"", - "share": "2" - }, - { - "id": "974", - "firstname": "Michel", - "surname": "Mayor", - "motivation": "\"for the discovery of an exoplanet orbiting a solar-type star\"", - "share": "4" - }, - { - "id": "975", - "firstname": "Didier", - "surname": "Queloz", - "motivation": "\"for the discovery of an exoplanet orbiting a solar-type star\"", - "share": "4" - } - ], - "overallMotivation_6702": "\"for contributions to our understanding of the evolution of the universe and Earth’s place in the cosmos\"", - "prize_id_6319": 29 - }, - { - "year_0389": 2007, - "laureates_0566": [ - { - "id": "818", - "motivation": "\"for their efforts to build up and disseminate greater knowledge about man-made climate change, and to lay the foundations for the measures that are needed to counteract such change\"", - "share": "2", - "firstname": "Intergovernmental Panel on Climate Change" - }, - { - "id": "819", - "firstname": "Al", - "surname": "Gore", - "motivation": "\"for their efforts to build up and disseminate greater knowledge about man-made climate change, and to lay the foundations for the measures that are needed to counteract such change\"", - "share": "2" - } - ], - "overallMotivation_6702": null, - "prize_id_6319": 100 - }, - { - "year_0389": 2007, - "laureates_0566": [ - { - "id": "817", - "firstname": "Doris", - "surname": "Lessing", - "motivation": "\"that epicist of the female experience, who with scepticism, fire and visionary power has subjected a divided civilisation to scrutiny\"", - "share": "1" - } - ], - "overallMotivation_6702": null, - "prize_id_6319": 99 - }, - { - "year_0389": 2007, - "laureates_0566": [ - { - "id": "820", - "firstname": "Leonid", - "surname": "Hurwicz", - "motivation": "\"for having laid the foundations of mechanism design theory\"", - "share": "3" - }, - { - "id": "821", - "firstname": "Eric S.", - "surname": "Maskin", - "motivation": "\"for having laid the foundations of mechanism design theory\"", - "share": "3" - }, - { - "id": "822", - "firstname": "Roger B.", - "surname": "Myerson", - "motivation": "\"for having laid the foundations of mechanism design theory\"", - "share": "3" - } - ], - "overallMotivation_6702": null, - "prize_id_6319": 98 - }, - { - "year_0389": 2007, - "laureates_0566": [ - { - "id": "816", - "firstname": "Gerhard", - "surname": "Ertl", - "motivation": "\"for his studies of chemical processes on solid surfaces\"", - "share": "1" - } - ], - "overallMotivation_6702": null, - "prize_id_6319": 97 - }, - { - "year_0389": 2008, - "laureates_0566": [ - { - "id": "823", - "firstname": "Harald", - "surname": "zur Hausen", - "motivation": "\"for his discovery of human papilloma viruses causing cervical cancer\"", - "share": "2" - }, - { - "id": "824", - "firstname": "Françoise", - "surname": "Barré-Sinoussi", - "motivation": "\"for their discovery of human immunodeficiency virus\"", - "share": "4" - }, - { - "id": "825", - "firstname": "Luc", - "surname": "Montagnier", - "motivation": "\"for their discovery of human immunodeficiency virus\"", - "share": "4" - } - ], - "overallMotivation_6702": null, - "prize_id_6319": 96 - }, - { - "year_0389": 2008, - "laureates_0566": [ - { - "id": "826", - "firstname": "Yoichiro", - "surname": "Nambu", - "motivation": "\"for the discovery of the mechanism of spontaneous broken symmetry in subatomic physics\"", - "share": "2" - }, - { - "id": "827", - "firstname": "Makoto", - "surname": "Kobayashi", - "motivation": "\"for the discovery of the origin of the broken symmetry which predicts the existence of at least three families of quarks in nature\"", - "share": "4" - }, - { - "id": "828", - "firstname": "Toshihide", - "surname": "Maskawa", - "motivation": "\"for the discovery of the origin of the broken symmetry which predicts the existence of at least three families of quarks in nature\"", - "share": "4" - } - ], - "overallMotivation_6702": null, - "prize_id_6319": 95 - }, - { - "year_0389": 2008, - "laureates_0566": [ - { - "id": "833", - "firstname": "Martti", - "surname": "Ahtisaari", - "motivation": "\"for his important efforts, on several continents and over more than three decades, to resolve international conflicts\"", - "share": "1" - } - ], - "overallMotivation_6702": null, - "prize_id_6319": 94 - } - ] - } + { + "rows": [ + { + "year_0389": 2018, + "overallMotivation_6702": "\"for groundbreaking inventions in the field of laser physics\"", + "prize_id_6319": 35 + }, + { + "year_0389": 2021, + "overallMotivation_6702": "\"for groundbreaking contributions to our understanding of complex physical systems\"", + "prize_id_6319": 17 + }, + { + "year_0389": 2019, + "overallMotivation_6702": "\"for contributions to our understanding of the evolution of the universe and Earth’s place in the cosmos\"", + "prize_id_6319": 29 + }, + { + "year_0389": 2007, + "overallMotivation_6702": null, + "prize_id_6319": 100 + }, + { + "year_0389": 2007, + "overallMotivation_6702": null, + "prize_id_6319": 99 + }, + { + "year_0389": 2007, + "overallMotivation_6702": null, + "prize_id_6319": 98 + }, + { + "year_0389": 2007, + "overallMotivation_6702": null, + "prize_id_6319": 97 + }, + { + "year_0389": 2008, + "overallMotivation_6702": null, + "prize_id_6319": 96 + }, + { + "year_0389": 2008, + "overallMotivation_6702": null, + "prize_id_6319": 95 + }, + { + "year_0389": 2008, + "overallMotivation_6702": null, + "prize_id_6319": 94 + } + ] + } ] \ No newline at end of file diff --git a/ndc-test-snapshots/query/nobel_laureates_multiple_orderby_on_optional_field_overallmotivation/request.json b/ndc-test-snapshots/query/nobel_laureates_multiple_orderby_on_optional_field_overallmotivation/request.json index aec5a9c..14798a7 100644 --- a/ndc-test-snapshots/query/nobel_laureates_multiple_orderby_on_optional_field_overallmotivation/request.json +++ b/ndc-test-snapshots/query/nobel_laureates_multiple_orderby_on_optional_field_overallmotivation/request.json @@ -7,11 +7,6 @@ "column": "year", "fields": null }, - "laureates_0566": { - "type": "column", - "column": "laureates", - "fields": null - }, "overallMotivation_6702": { "type": "column", "column": "overallMotivation", diff --git a/ndc-test-snapshots/query/nobel_laureates_multiple_orderby_on_year_and_prizeid_field/expected.json b/ndc-test-snapshots/query/nobel_laureates_multiple_orderby_on_year_and_prizeid_field/expected.json index 756e797..429379c 100644 --- a/ndc-test-snapshots/query/nobel_laureates_multiple_orderby_on_year_and_prizeid_field/expected.json +++ b/ndc-test-snapshots/query/nobel_laureates_multiple_orderby_on_year_and_prizeid_field/expected.json @@ -1,208 +1,56 @@ [ - { - "rows": [ - { - "laureates_8802": [ - { - "id": "818", - "motivation": "\"for their efforts to build up and disseminate greater knowledge about man-made climate change, and to lay the foundations for the measures that are needed to counteract such change\"", - "share": "2", - "firstname": "Intergovernmental Panel on Climate Change" - }, - { - "id": "819", - "firstname": "Al", - "surname": "Gore", - "motivation": "\"for their efforts to build up and disseminate greater knowledge about man-made climate change, and to lay the foundations for the measures that are needed to counteract such change\"", - "share": "2" - } - ], - "overallMotivation_2578": null, - "prize_id_4986": 100, - "year_3902": 2007 - }, - { - "laureates_8802": [ - { - "id": "817", - "firstname": "Doris", - "surname": "Lessing", - "motivation": "\"that epicist of the female experience, who with scepticism, fire and visionary power has subjected a divided civilisation to scrutiny\"", - "share": "1" - } - ], - "overallMotivation_2578": null, - "prize_id_4986": 99, - "year_3902": 2007 - }, - { - "laureates_8802": [ - { - "id": "820", - "firstname": "Leonid", - "surname": "Hurwicz", - "motivation": "\"for having laid the foundations of mechanism design theory\"", - "share": "3" - }, - { - "id": "821", - "firstname": "Eric S.", - "surname": "Maskin", - "motivation": "\"for having laid the foundations of mechanism design theory\"", - "share": "3" - }, - { - "id": "822", - "firstname": "Roger B.", - "surname": "Myerson", - "motivation": "\"for having laid the foundations of mechanism design theory\"", - "share": "3" - } - ], - "overallMotivation_2578": null, - "prize_id_4986": 98, - "year_3902": 2007 - }, - { - "laureates_8802": [ - { - "id": "816", - "firstname": "Gerhard", - "surname": "Ertl", - "motivation": "\"for his studies of chemical processes on solid surfaces\"", - "share": "1" - } - ], - "overallMotivation_2578": null, - "prize_id_4986": 97, - "year_3902": 2007 - }, - { - "laureates_8802": [ - { - "id": "823", - "firstname": "Harald", - "surname": "zur Hausen", - "motivation": "\"for his discovery of human papilloma viruses causing cervical cancer\"", - "share": "2" - }, - { - "id": "824", - "firstname": "Françoise", - "surname": "Barré-Sinoussi", - "motivation": "\"for their discovery of human immunodeficiency virus\"", - "share": "4" - }, - { - "id": "825", - "firstname": "Luc", - "surname": "Montagnier", - "motivation": "\"for their discovery of human immunodeficiency virus\"", - "share": "4" - } - ], - "overallMotivation_2578": null, - "prize_id_4986": 96, - "year_3902": 2008 - }, - { - "laureates_8802": [ - { - "id": "826", - "firstname": "Yoichiro", - "surname": "Nambu", - "motivation": "\"for the discovery of the mechanism of spontaneous broken symmetry in subatomic physics\"", - "share": "2" - }, - { - "id": "827", - "firstname": "Makoto", - "surname": "Kobayashi", - "motivation": "\"for the discovery of the origin of the broken symmetry which predicts the existence of at least three families of quarks in nature\"", - "share": "4" - }, - { - "id": "828", - "firstname": "Toshihide", - "surname": "Maskawa", - "motivation": "\"for the discovery of the origin of the broken symmetry which predicts the existence of at least three families of quarks in nature\"", - "share": "4" - } - ], - "overallMotivation_2578": null, - "prize_id_4986": 95, - "year_3902": 2008 - }, - { - "laureates_8802": [ - { - "id": "833", - "firstname": "Martti", - "surname": "Ahtisaari", - "motivation": "\"for his important efforts, on several continents and over more than three decades, to resolve international conflicts\"", - "share": "1" - } - ], - "overallMotivation_2578": null, - "prize_id_4986": 94, - "year_3902": 2008 - }, - { - "laureates_8802": [ - { - "id": "832", - "firstname": "Jean-Marie Gustave", - "surname": "Le Clézio", - "motivation": "\"author of new departures, poetic adventure and sensual ecstasy, explorer of a humanity beyond and below the reigning civilization\"", - "share": "1" - } - ], - "overallMotivation_2578": null, - "prize_id_4986": 93, - "year_3902": 2008 - }, - { - "laureates_8802": [ - { - "id": "834", - "firstname": "Paul", - "surname": "Krugman", - "motivation": "\"for his analysis of trade patterns and location of economic activity\"", - "share": "1" - } - ], - "overallMotivation_2578": null, - "prize_id_4986": 92, - "year_3902": 2008 - }, - { - "laureates_8802": [ - { - "id": "829", - "firstname": "Osamu", - "surname": "Shimomura", - "motivation": "\"for the discovery and development of the green fluorescent protein, GFP\"", - "share": "3" - }, - { - "id": "830", - "firstname": "Martin", - "surname": "Chalfie", - "motivation": "\"for the discovery and development of the green fluorescent protein, GFP\"", - "share": "3" - }, - { - "id": "831", - "firstname": "Roger Y.", - "surname": "Tsien", - "motivation": "\"for the discovery and development of the green fluorescent protein, GFP\"", - "share": "3" - } - ], - "overallMotivation_2578": null, - "prize_id_4986": 91, - "year_3902": 2008 - } - ] - } + { + "rows": [ + { + "overallMotivation_2578": null, + "prize_id_4986": 100, + "year_3902": 2007 + }, + { + "overallMotivation_2578": null, + "prize_id_4986": 99, + "year_3902": 2007 + }, + { + "overallMotivation_2578": null, + "prize_id_4986": 98, + "year_3902": 2007 + }, + { + "overallMotivation_2578": null, + "prize_id_4986": 97, + "year_3902": 2007 + }, + { + "overallMotivation_2578": null, + "prize_id_4986": 96, + "year_3902": 2008 + }, + { + "overallMotivation_2578": null, + "prize_id_4986": 95, + "year_3902": 2008 + }, + { + "overallMotivation_2578": null, + "prize_id_4986": 94, + "year_3902": 2008 + }, + { + "overallMotivation_2578": null, + "prize_id_4986": 93, + "year_3902": 2008 + }, + { + "overallMotivation_2578": null, + "prize_id_4986": 92, + "year_3902": 2008 + }, + { + "overallMotivation_2578": null, + "prize_id_4986": 91, + "year_3902": 2008 + } + ] + } ] \ No newline at end of file diff --git a/ndc-test-snapshots/query/nobel_laureates_multiple_orderby_on_year_and_prizeid_field/request.json b/ndc-test-snapshots/query/nobel_laureates_multiple_orderby_on_year_and_prizeid_field/request.json index e2fee7e..8379f83 100644 --- a/ndc-test-snapshots/query/nobel_laureates_multiple_orderby_on_year_and_prizeid_field/request.json +++ b/ndc-test-snapshots/query/nobel_laureates_multiple_orderby_on_year_and_prizeid_field/request.json @@ -2,11 +2,6 @@ "collection": "TestNobelLaureates", "query": { "fields": { - "laureates_8802": { - "type": "column", - "column": "laureates", - "fields": null - }, "overallMotivation_2578": { "type": "column", "column": "overallMotivation", diff --git a/ndc-test-snapshots/query/nobel_laureates_multiple_orderby_test_on_overallMotivation_and_prizeid/expected.json b/ndc-test-snapshots/query/nobel_laureates_multiple_orderby_test_on_overallMotivation_and_prizeid/expected.json deleted file mode 100644 index d6b20cc..0000000 --- a/ndc-test-snapshots/query/nobel_laureates_multiple_orderby_test_on_overallMotivation_and_prizeid/expected.json +++ /dev/null @@ -1,208 +0,0 @@ -[ - { - "rows": [ - { - "laureates_7252": [ - { - "id": "818", - "motivation": "\"for their efforts to build up and disseminate greater knowledge about man-made climate change, and to lay the foundations for the measures that are needed to counteract such change\"", - "share": "2", - "firstname": "Intergovernmental Panel on Climate Change" - }, - { - "id": "819", - "firstname": "Al", - "surname": "Gore", - "motivation": "\"for their efforts to build up and disseminate greater knowledge about man-made climate change, and to lay the foundations for the measures that are needed to counteract such change\"", - "share": "2" - } - ], - "overallMotivation_6623": null, - "prize_id_2142": 100, - "year_2602": 2007 - }, - { - "laureates_7252": [ - { - "id": "817", - "firstname": "Doris", - "surname": "Lessing", - "motivation": "\"that epicist of the female experience, who with scepticism, fire and visionary power has subjected a divided civilisation to scrutiny\"", - "share": "1" - } - ], - "overallMotivation_6623": null, - "prize_id_2142": 99, - "year_2602": 2007 - }, - { - "laureates_7252": [ - { - "id": "820", - "firstname": "Leonid", - "surname": "Hurwicz", - "motivation": "\"for having laid the foundations of mechanism design theory\"", - "share": "3" - }, - { - "id": "821", - "firstname": "Eric S.", - "surname": "Maskin", - "motivation": "\"for having laid the foundations of mechanism design theory\"", - "share": "3" - }, - { - "id": "822", - "firstname": "Roger B.", - "surname": "Myerson", - "motivation": "\"for having laid the foundations of mechanism design theory\"", - "share": "3" - } - ], - "overallMotivation_6623": null, - "prize_id_2142": 98, - "year_2602": 2007 - }, - { - "laureates_7252": [ - { - "id": "816", - "firstname": "Gerhard", - "surname": "Ertl", - "motivation": "\"for his studies of chemical processes on solid surfaces\"", - "share": "1" - } - ], - "overallMotivation_6623": null, - "prize_id_2142": 97, - "year_2602": 2007 - }, - { - "laureates_7252": [ - { - "id": "823", - "firstname": "Harald", - "surname": "zur Hausen", - "motivation": "\"for his discovery of human papilloma viruses causing cervical cancer\"", - "share": "2" - }, - { - "id": "824", - "firstname": "Françoise", - "surname": "Barré-Sinoussi", - "motivation": "\"for their discovery of human immunodeficiency virus\"", - "share": "4" - }, - { - "id": "825", - "firstname": "Luc", - "surname": "Montagnier", - "motivation": "\"for their discovery of human immunodeficiency virus\"", - "share": "4" - } - ], - "overallMotivation_6623": null, - "prize_id_2142": 96, - "year_2602": 2008 - }, - { - "laureates_7252": [ - { - "id": "826", - "firstname": "Yoichiro", - "surname": "Nambu", - "motivation": "\"for the discovery of the mechanism of spontaneous broken symmetry in subatomic physics\"", - "share": "2" - }, - { - "id": "827", - "firstname": "Makoto", - "surname": "Kobayashi", - "motivation": "\"for the discovery of the origin of the broken symmetry which predicts the existence of at least three families of quarks in nature\"", - "share": "4" - }, - { - "id": "828", - "firstname": "Toshihide", - "surname": "Maskawa", - "motivation": "\"for the discovery of the origin of the broken symmetry which predicts the existence of at least three families of quarks in nature\"", - "share": "4" - } - ], - "overallMotivation_6623": null, - "prize_id_2142": 95, - "year_2602": 2008 - }, - { - "laureates_7252": [ - { - "id": "833", - "firstname": "Martti", - "surname": "Ahtisaari", - "motivation": "\"for his important efforts, on several continents and over more than three decades, to resolve international conflicts\"", - "share": "1" - } - ], - "overallMotivation_6623": null, - "prize_id_2142": 94, - "year_2602": 2008 - }, - { - "laureates_7252": [ - { - "id": "832", - "firstname": "Jean-Marie Gustave", - "surname": "Le Clézio", - "motivation": "\"author of new departures, poetic adventure and sensual ecstasy, explorer of a humanity beyond and below the reigning civilization\"", - "share": "1" - } - ], - "overallMotivation_6623": null, - "prize_id_2142": 93, - "year_2602": 2008 - }, - { - "laureates_7252": [ - { - "id": "834", - "firstname": "Paul", - "surname": "Krugman", - "motivation": "\"for his analysis of trade patterns and location of economic activity\"", - "share": "1" - } - ], - "overallMotivation_6623": null, - "prize_id_2142": 92, - "year_2602": 2008 - }, - { - "laureates_7252": [ - { - "id": "829", - "firstname": "Osamu", - "surname": "Shimomura", - "motivation": "\"for the discovery and development of the green fluorescent protein, GFP\"", - "share": "3" - }, - { - "id": "830", - "firstname": "Martin", - "surname": "Chalfie", - "motivation": "\"for the discovery and development of the green fluorescent protein, GFP\"", - "share": "3" - }, - { - "id": "831", - "firstname": "Roger Y.", - "surname": "Tsien", - "motivation": "\"for the discovery and development of the green fluorescent protein, GFP\"", - "share": "3" - } - ], - "overallMotivation_6623": null, - "prize_id_2142": 91, - "year_2602": 2008 - } - ] - } -] \ No newline at end of file diff --git a/ndc-test-snapshots/query/nobel_laureates_multiple_orderby_test_on_overallMotivation_and_prizeid/request.json b/ndc-test-snapshots/query/nobel_laureates_multiple_orderby_test_on_overallMotivation_and_prizeid/request.json deleted file mode 100644 index 4acfa6e..0000000 --- a/ndc-test-snapshots/query/nobel_laureates_multiple_orderby_test_on_overallMotivation_and_prizeid/request.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "collection": "TestNobelLaureates", - "query": { - "fields": { - "laureates_7252": { - "type": "column", - "column": "laureates", - "fields": null - }, - "overallMotivation_6623": { - "type": "column", - "column": "overallMotivation", - "fields": null - }, - "prize_id_2142": { - "type": "column", - "column": "prize_id", - "fields": null - }, - "year_2602": { - "type": "column", - "column": "year", - "fields": null - } - }, - "limit": 10, - "order_by": { - "elements": [ - { - "order_direction": "asc", - "target": { - "type": "column", - "name": "overallMotivation", - "path": [] - } - }, - { - "order_direction": "desc", - "target": { - "type": "column", - "name": "prize_id", - "path": [] - } - } - ] - } - }, - "arguments": {}, - "collection_relationships": {} -} \ No newline at end of file diff --git a/ndc-test-snapshots/query/nobel_laureates_nested_array_field_selection/request.json b/ndc-test-snapshots/query/nobel_laureates_nested_array_field_selection/request.json index 5c8cdf7..d21437e 100644 --- a/ndc-test-snapshots/query/nobel_laureates_nested_array_field_selection/request.json +++ b/ndc-test-snapshots/query/nobel_laureates_nested_array_field_selection/request.json @@ -6,22 +6,22 @@ "type": "column", "column": "laureates", "fields": { - "type": "array", - "fields": { - "type": "object", + "type": "array", "fields": { - "firstName": { - "type": "column", - "column": "firstname" - }, - "id": { - "type": "column", - "column": "id" - } + "type": "object", + "fields": { + "firstName": { + "type": "column", + "column": "firstname" + }, + "id": { + "type": "column", + "column": "id" + } + } } - } } - } + } }, "limit": 10, "order_by": { diff --git a/ndc-test-snapshots/query/nobel_laureates_predicate_on_year_orderby_test/expected.json b/ndc-test-snapshots/query/nobel_laureates_predicate_on_year_orderby_test/expected.json index d8c877a..dab48e4 100644 --- a/ndc-test-snapshots/query/nobel_laureates_predicate_on_year_orderby_test/expected.json +++ b/ndc-test-snapshots/query/nobel_laureates_predicate_on_year_orderby_test/expected.json @@ -1,131 +1,36 @@ [ - { - "rows": [ - { - "laureates": [ - { - "id": "944", - "firstname": "Jacques", - "surname": "Dubochet", - "motivation": "\"for developing cryo-electron microscopy for the high-resolution structure determination of biomolecules in solution\"", - "share": "3" - }, - { - "id": "945", - "firstname": "Joachim", - "surname": "Frank", - "motivation": "\"for developing cryo-electron microscopy for the high-resolution structure determination of biomolecules in solution\"", - "share": "3" - }, - { - "id": "946", - "firstname": "Richard", - "surname": "Henderson", - "motivation": "\"for developing cryo-electron microscopy for the high-resolution structure determination of biomolecules in solution\"", - "share": "3" - } - ], - "overallMotivation": null, - "prize_id": 37, - "year": 2017 - }, - { - "laureates": [ - { - "id": "949", - "firstname": "Richard H.", - "surname": "Thaler", - "motivation": "\"for his contributions to behavioural economics\"", - "share": "1" - } - ], - "overallMotivation": null, - "prize_id": 38, - "year": 2017 - }, - { - "laureates": [ - { - "id": "947", - "firstname": "Kazuo", - "surname": "Ishiguro", - "motivation": "\"who, in novels of great emotional force, has uncovered the abyss beneath our illusory sense of connection with the world\"", - "share": "1" - } - ], - "overallMotivation": null, - "prize_id": 39, - "year": 2017 - }, - { - "laureates": [ - { - "id": "948", - "motivation": "\"for its work to draw attention to the catastrophic humanitarian consequences of any use of nuclear weapons and for its ground-breaking efforts to achieve a treaty-based prohibition of such weapons\"", - "share": "1", - "firstname": "International Campaign to Abolish Nuclear Weapons" - } - ], - "overallMotivation": null, - "prize_id": 40, - "year": 2017 - }, - { - "laureates": [ - { - "id": "941", - "firstname": "Rainer", - "surname": "Weiss", - "motivation": "\"for decisive contributions to the LIGO detector and the observation of gravitational waves\"", - "share": "2" - }, - { - "id": "942", - "firstname": "Barry C.", - "surname": "Barish", - "motivation": "\"for decisive contributions to the LIGO detector and the observation of gravitational waves\"", - "share": "4" - }, - { - "id": "943", - "firstname": "Kip S.", - "surname": "Thorne", - "motivation": "\"for decisive contributions to the LIGO detector and the observation of gravitational waves\"", - "share": "4" - } - ], - "overallMotivation": null, - "prize_id": 41, - "year": 2017 - }, - { - "laureates": [ - { - "id": "938", - "firstname": "Jeffrey C.", - "surname": "Hall", - "motivation": "\"for their discoveries of molecular mechanisms controlling the circadian rhythm\"", - "share": "3" - }, - { - "id": "939", - "firstname": "Michael", - "surname": "Rosbash", - "motivation": "\"for their discoveries of molecular mechanisms controlling the circadian rhythm\"", - "share": "3" - }, - { - "id": "940", - "firstname": "Michael W.", - "surname": "Young", - "motivation": "\"for their discoveries of molecular mechanisms controlling the circadian rhythm\"", - "share": "3" - } - ], - "overallMotivation": null, - "prize_id": 42, - "year": 2017 - } - ] - } -] \ No newline at end of file + { + "rows": [ + { + "overallMotivation": null, + "prize_id": 37, + "year": 2017 + }, + { + "overallMotivation": null, + "prize_id": 38, + "year": 2017 + }, + { + "overallMotivation": null, + "prize_id": 39, + "year": 2017 + }, + { + "overallMotivation": null, + "prize_id": 40, + "year": 2017 + }, + { + "overallMotivation": null, + "prize_id": 41, + "year": 2017 + }, + { + "overallMotivation": null, + "prize_id": 42, + "year": 2017 + } + ] + } +] diff --git a/ndc-test-snapshots/query/nobel_laureates_predicate_on_year_orderby_test/request.json b/ndc-test-snapshots/query/nobel_laureates_predicate_on_year_orderby_test/request.json index 5b5bc64..8e1e6ff 100644 --- a/ndc-test-snapshots/query/nobel_laureates_predicate_on_year_orderby_test/request.json +++ b/ndc-test-snapshots/query/nobel_laureates_predicate_on_year_orderby_test/request.json @@ -2,11 +2,6 @@ "collection": "TestNobelLaureates", "query": { "fields": { - "laureates": { - "type": "column", - "column": "laureates", - "fields": null - }, "overallMotivation": { "type": "column", "column": "overallMotivation", diff --git a/ndc-test-snapshots/query/nobel_laureates_simple_asc_orderby_test/expected.json b/ndc-test-snapshots/query/nobel_laureates_simple_asc_orderby_test/expected.json index f318f08..d6e6d75 100644 --- a/ndc-test-snapshots/query/nobel_laureates_simple_asc_orderby_test/expected.json +++ b/ndc-test-snapshots/query/nobel_laureates_simple_asc_orderby_test/expected.json @@ -1,221 +1,56 @@ [ - { - "rows": [ - { - "laureates": [ - { - "id": "1029", - "firstname": "Moungi", - "surname": "Bawendi", - "motivation": "\"for the discovery and synthesis of quantum dots\"", - "share": "3" - }, - { - "id": "1030", - "firstname": "Louis", - "surname": "Brus", - "motivation": "\"for the discovery and synthesis of quantum dots\"", - "share": "3" - }, - { - "id": "1031", - "firstname": "Aleksey", - "surname": "Yekimov", - "motivation": "\"for the discovery and synthesis of quantum dots\"", - "share": "3" - } - ], - "overallMotivation": null, - "prize_id": 1, - "year": 2023 - }, - { - "laureates": [ - { - "id": "1034", - "firstname": "Claudia", - "surname": "Goldin", - "motivation": "\"for having advanced our understanding of women’s labour market outcomes\"", - "share": "1" - } - ], - "overallMotivation": null, - "prize_id": 2, - "year": 2023 - }, - { - "laureates": [ - { - "id": "1032", - "firstname": "Jon", - "surname": "Fosse", - "motivation": "\"for his innovative plays and prose which give voice to the unsayable\"", - "share": "1" - } - ], - "overallMotivation": null, - "prize_id": 3, - "year": 2023 - }, - { - "laureates": [ - { - "id": "1033", - "firstname": "Narges", - "surname": "Mohammadi", - "motivation": "\"for her fight against the oppression of women in Iran and her fight to promote human rights and freedom for all\"", - "share": "1" - } - ], - "overallMotivation": null, - "prize_id": 4, - "year": 2023 - }, - { - "laureates": [ - { - "id": "1026", - "firstname": "Pierre", - "surname": "Agostini", - "motivation": "\"for experimental methods that generate attosecond pulses of light for the study of electron dynamics in matter\"", - "share": "3" - }, - { - "id": "1027", - "firstname": "Ferenc", - "surname": "Krausz", - "motivation": "\"for experimental methods that generate attosecond pulses of light for the study of electron dynamics in matter\"", - "share": "3" - }, - { - "id": "1028", - "firstname": "Anne", - "surname": "L’Huillier", - "motivation": "\"for experimental methods that generate attosecond pulses of light for the study of electron dynamics in matter\"", - "share": "3" - } - ], - "overallMotivation": null, - "prize_id": 5, - "year": 2023 - }, - { - "laureates": [ - { - "id": "1024", - "firstname": "Katalin", - "surname": "Karikó", - "motivation": "\"for their discoveries concerning nucleoside base modifications that enabled the development of effective mRNA vaccines against COVID-19\"", - "share": "2" - }, - { - "id": "1025", - "firstname": "Drew", - "surname": "Weissman", - "motivation": "\"for their discoveries concerning nucleoside base modifications that enabled the development of effective mRNA vaccines against COVID-19\"", - "share": "2" - } - ], - "overallMotivation": null, - "prize_id": 6, - "year": 2023 - }, - { - "laureates": [ - { - "id": "1015", - "firstname": "Carolyn", - "surname": "Bertozzi", - "motivation": "\"for the development of click chemistry and bioorthogonal chemistry\"", - "share": "3" - }, - { - "id": "1016", - "firstname": "Morten", - "surname": "Meldal", - "motivation": "\"for the development of click chemistry and bioorthogonal chemistry\"", - "share": "3" - }, - { - "id": "743", - "firstname": "Barry", - "surname": "Sharpless", - "motivation": "\"for the development of click chemistry and bioorthogonal chemistry\"", - "share": "3" - } - ], - "overallMotivation": null, - "prize_id": 7, - "year": 2022 - }, - { - "laureates": [ - { - "id": "1021", - "firstname": "Ben", - "surname": "Bernanke", - "motivation": "\"for research on banks and financial crises\"", - "share": "3" - }, - { - "id": "1022", - "firstname": "Douglas", - "surname": "Diamond", - "motivation": "\"for research on banks and financial crises\"", - "share": "3" - }, - { - "id": "1023", - "firstname": "Philip", - "surname": "Dybvig", - "motivation": "\"for research on banks and financial crises\"", - "share": "3" - } - ], - "overallMotivation": null, - "prize_id": 8, - "year": 2022 - }, - { - "laureates": [ - { - "id": "1017", - "firstname": "Annie", - "surname": "Ernaux", - "motivation": "\"for the courage and clinical acuity with which she uncovers the roots, estrangements and collective restraints of personal memory\"", - "share": "1" - } - ], - "overallMotivation": null, - "prize_id": 9, - "year": 2022 - }, - { - "laureates": [ - { - "id": "1018", - "firstname": "Ales", - "surname": "Bialiatski ", - "motivation": "\"The Peace Prize laureates represent civil society in their home countries. They have for many years promoted the right to criticise power and protect the fundamental rights of citizens. They have made an outstanding effort to document war crimes, human right abuses and the abuse of power. Together they demonstrate the significance of civil society for peace and democracy.\"", - "share": "3" - }, - { - "id": "1019", - "motivation": "\"The Peace Prize laureates represent civil society in their home countries. They have for many years promoted the right to criticise power and protect the fundamental rights of citizens. They have made an outstanding effort to document war crimes, human right abuses and the abuse of power. Together they demonstrate the significance of civil society for peace and democracy.\"", - "share": "3", - "firstname": "Memorial" - }, - { - "id": "1020", - "motivation": "\"The Peace Prize laureates represent civil society in their home countries. They have for many years promoted the right to criticise power and protect the fundamental rights of citizens. They have made an outstanding effort to document war crimes, human right abuses and the abuse of power. Together they demonstrate the significance of civil society for peace and democracy.\"", - "share": "3", - "firstname": "Center for Civil Liberties" - } - ], - "overallMotivation": null, - "prize_id": 10, - "year": 2022 - } - ] - } -] \ No newline at end of file + { + "rows": [ + { + "overallMotivation": null, + "prize_id": 1, + "year": 2023 + }, + { + "overallMotivation": null, + "prize_id": 2, + "year": 2023 + }, + { + "overallMotivation": null, + "prize_id": 3, + "year": 2023 + }, + { + "overallMotivation": null, + "prize_id": 4, + "year": 2023 + }, + { + "overallMotivation": null, + "prize_id": 5, + "year": 2023 + }, + { + "overallMotivation": null, + "prize_id": 6, + "year": 2023 + }, + { + "overallMotivation": null, + "prize_id": 7, + "year": 2022 + }, + { + "overallMotivation": null, + "prize_id": 8, + "year": 2022 + }, + { + "overallMotivation": null, + "prize_id": 9, + "year": 2022 + }, + { + "overallMotivation": null, + "prize_id": 10, + "year": 2022 + } + ] + } +] diff --git a/ndc-test-snapshots/query/nobel_laureates_simple_asc_orderby_test/request.json b/ndc-test-snapshots/query/nobel_laureates_simple_asc_orderby_test/request.json index a29f353..aa665d7 100644 --- a/ndc-test-snapshots/query/nobel_laureates_simple_asc_orderby_test/request.json +++ b/ndc-test-snapshots/query/nobel_laureates_simple_asc_orderby_test/request.json @@ -2,11 +2,7 @@ "collection": "TestNobelLaureates", "query": { "fields": { - "laureates": { - "type": "column", - "column": "laureates", - "fields": null - }, + "overallMotivation": { "type": "column", "column": "overallMotivation", diff --git a/ndc-test-snapshots/query/nobel_laureates_simple_limit_orderby_test/expected.json b/ndc-test-snapshots/query/nobel_laureates_simple_limit_orderby_test/expected.json index c9c92b7..1e0bf0f 100644 --- a/ndc-test-snapshots/query/nobel_laureates_simple_limit_orderby_test/expected.json +++ b/ndc-test-snapshots/query/nobel_laureates_simple_limit_orderby_test/expected.json @@ -1,198 +1,46 @@ [ - { - "rows": [ - { - "year_8595": 2007, - "laureates_8171": [ - { - "id": "818", - "motivation": "\"for their efforts to build up and disseminate greater knowledge about man-made climate change, and to lay the foundations for the measures that are needed to counteract such change\"", - "share": "2", - "firstname": "Intergovernmental Panel on Climate Change" - }, - { - "id": "819", - "firstname": "Al", - "surname": "Gore", - "motivation": "\"for their efforts to build up and disseminate greater knowledge about man-made climate change, and to lay the foundations for the measures that are needed to counteract such change\"", - "share": "2" - } - ], - "overallMotivation_2599": null - }, - { - "year_8595": 2007, - "laureates_8171": [ - { - "id": "817", - "firstname": "Doris", - "surname": "Lessing", - "motivation": "\"that epicist of the female experience, who with scepticism, fire and visionary power has subjected a divided civilisation to scrutiny\"", - "share": "1" - } - ], - "overallMotivation_2599": null - }, - { - "year_8595": 2007, - "laureates_8171": [ - { - "id": "820", - "firstname": "Leonid", - "surname": "Hurwicz", - "motivation": "\"for having laid the foundations of mechanism design theory\"", - "share": "3" - }, - { - "id": "821", - "firstname": "Eric S.", - "surname": "Maskin", - "motivation": "\"for having laid the foundations of mechanism design theory\"", - "share": "3" - }, - { - "id": "822", - "firstname": "Roger B.", - "surname": "Myerson", - "motivation": "\"for having laid the foundations of mechanism design theory\"", - "share": "3" - } - ], - "overallMotivation_2599": null - }, - { - "year_8595": 2007, - "laureates_8171": [ - { - "id": "816", - "firstname": "Gerhard", - "surname": "Ertl", - "motivation": "\"for his studies of chemical processes on solid surfaces\"", - "share": "1" - } - ], - "overallMotivation_2599": null - }, - { - "year_8595": 2008, - "laureates_8171": [ - { - "id": "823", - "firstname": "Harald", - "surname": "zur Hausen", - "motivation": "\"for his discovery of human papilloma viruses causing cervical cancer\"", - "share": "2" - }, - { - "id": "824", - "firstname": "Françoise", - "surname": "Barré-Sinoussi", - "motivation": "\"for their discovery of human immunodeficiency virus\"", - "share": "4" - }, - { - "id": "825", - "firstname": "Luc", - "surname": "Montagnier", - "motivation": "\"for their discovery of human immunodeficiency virus\"", - "share": "4" - } - ], - "overallMotivation_2599": null - }, - { - "year_8595": 2008, - "laureates_8171": [ - { - "id": "826", - "firstname": "Yoichiro", - "surname": "Nambu", - "motivation": "\"for the discovery of the mechanism of spontaneous broken symmetry in subatomic physics\"", - "share": "2" - }, - { - "id": "827", - "firstname": "Makoto", - "surname": "Kobayashi", - "motivation": "\"for the discovery of the origin of the broken symmetry which predicts the existence of at least three families of quarks in nature\"", - "share": "4" - }, - { - "id": "828", - "firstname": "Toshihide", - "surname": "Maskawa", - "motivation": "\"for the discovery of the origin of the broken symmetry which predicts the existence of at least three families of quarks in nature\"", - "share": "4" - } - ], - "overallMotivation_2599": null - }, - { - "year_8595": 2008, - "laureates_8171": [ - { - "id": "833", - "firstname": "Martti", - "surname": "Ahtisaari", - "motivation": "\"for his important efforts, on several continents and over more than three decades, to resolve international conflicts\"", - "share": "1" - } - ], - "overallMotivation_2599": null - }, - { - "year_8595": 2008, - "laureates_8171": [ - { - "id": "832", - "firstname": "Jean-Marie Gustave", - "surname": "Le Clézio", - "motivation": "\"author of new departures, poetic adventure and sensual ecstasy, explorer of a humanity beyond and below the reigning civilization\"", - "share": "1" - } - ], - "overallMotivation_2599": null - }, - { - "year_8595": 2008, - "laureates_8171": [ - { - "id": "834", - "firstname": "Paul", - "surname": "Krugman", - "motivation": "\"for his analysis of trade patterns and location of economic activity\"", - "share": "1" - } - ], - "overallMotivation_2599": null - }, - { - "year_8595": 2008, - "laureates_8171": [ - { - "id": "829", - "firstname": "Osamu", - "surname": "Shimomura", - "motivation": "\"for the discovery and development of the green fluorescent protein, GFP\"", - "share": "3" - }, - { - "id": "830", - "firstname": "Martin", - "surname": "Chalfie", - "motivation": "\"for the discovery and development of the green fluorescent protein, GFP\"", - "share": "3" - }, - { - "id": "831", - "firstname": "Roger Y.", - "surname": "Tsien", - "motivation": "\"for the discovery and development of the green fluorescent protein, GFP\"", - "share": "3" - } - ], - "overallMotivation_2599": null - } - ] - } -] \ No newline at end of file + { + "rows": [ + { + "year_8595": 2007, + "overallMotivation_2599": null + }, + { + "year_8595": 2007, + "overallMotivation_2599": null + }, + { + "year_8595": 2007, + "overallMotivation_2599": null + }, + { + "year_8595": 2007, + "overallMotivation_2599": null + }, + { + "year_8595": 2008, + "overallMotivation_2599": null + }, + { + "year_8595": 2008, + "overallMotivation_2599": null + }, + { + "year_8595": 2008, + "overallMotivation_2599": null + }, + { + "year_8595": 2008, + "overallMotivation_2599": null + }, + { + "year_8595": 2008, + "overallMotivation_2599": null + }, + { + "year_8595": 2008, + "overallMotivation_2599": null + } + ] + } +] diff --git a/ndc-test-snapshots/query/nobel_laureates_simple_limit_orderby_test/request.json b/ndc-test-snapshots/query/nobel_laureates_simple_limit_orderby_test/request.json index 4c488f5..e365c48 100644 --- a/ndc-test-snapshots/query/nobel_laureates_simple_limit_orderby_test/request.json +++ b/ndc-test-snapshots/query/nobel_laureates_simple_limit_orderby_test/request.json @@ -7,11 +7,6 @@ "column": "year", "fields": null }, - "laureates_8171": { - "type": "column", - "column": "laureates", - "fields": null - }, "overallMotivation_2599": { "type": "column", "column": "overallMotivation", diff --git a/ndc-test-snapshots/schema b/ndc-test-snapshots/schema index c70e43b..ea9f0fc 100644 --- a/ndc-test-snapshots/schema +++ b/ndc-test-snapshots/schema @@ -1,341 +1,748 @@ { - "scalar_types": { - "Boolean": { - "aggregate_functions": { - "bool_and": { - "result_type": { - "type": "named", - "name": "Boolean" - } - }, - "bool_not": { - "result_type": { - "type": "named", - "name": "Boolean" - } - }, - "bool_or": { - "result_type": { - "type": "named", - "name": "Boolean" - } - } - }, - "comparison_operators": { - "eq": { - "type": "equal" - }, - "neq": { - "type": "custom", - "argument_type": { - "type": "named", - "name": "Boolean" - } + "functions": [], + "procedures": [], + "collections": [ + { + "name": "users", + "description": null, + "arguments": {}, + "type": "Users", + "uniqueness_constraints": {}, + "foreign_keys": {} + }, + { + "name": "NobelLaureates", + "description": null, + "arguments": {}, + "type": "NobelLaureates", + "uniqueness_constraints": {}, + "foreign_keys": {} } - } - }, - "Integer": { - "aggregate_functions": { - "avg": { - "result_type": { - "type": "named", - "name": "Integer" - } - }, - "count": { - "result_type": { - "type": "named", - "name": "Integer" - } - }, - "max": { - "result_type": { - "type": "named", - "name": "Integer" - } - }, - "min": { - "result_type": { - "type": "named", - "name": "Integer" - } - }, - "sum": { - "result_type": { - "type": "named", - "name": "Integer" - } - } - }, - "comparison_operators": { - "eq": { - "type": "equal" - }, - "gt": { - "type": "custom", - "argument_type": { - "type": "named", - "name": "Integer" - } - }, - "gte": { - "type": "custom", - "argument_type": { - "type": "named", - "name": "Integer" - } - }, - "lt": { - "type": "custom", - "argument_type": { - "type": "named", - "name": "Integer" - } - }, - "lte": { - "type": "custom", - "argument_type": { - "type": "named", - "name": "Integer" - } - }, - "neq": { - "type": "custom", - "argument_type": { - "type": "named", - "name": "Integer" - } - } - } - }, - "Number": { - "aggregate_functions": { - "avg": { - "result_type": { - "type": "named", - "name": "Number" - } - }, - "count": { - "result_type": { - "type": "named", - "name": "Number" - } - }, - "max": { - "result_type": { - "type": "named", - "name": "Number" - } - }, - "min": { - "result_type": { - "type": "named", - "name": "Number" - } - }, - "sum": { - "result_type": { - "type": "named", - "name": "Number" - } - } - }, - "comparison_operators": { - "eq": { - "type": "equal" - }, - "gt": { - "type": "custom", - "argument_type": { - "type": "named", - "name": "Number" - } - }, - "gte": { - "type": "custom", - "argument_type": { - "type": "named", - "name": "Number" - } - }, - "lt": { - "type": "custom", - "argument_type": { - "type": "named", - "name": "Number" - } - }, - "lte": { - "type": "custom", - "argument_type": { - "type": "named", - "name": "Number" - } + ], + "object_types": { + "Users": { + "fields": { + "status": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "name": { + "type": { + "type": "named", + "name": "Name" + }, + "description": null + }, + "username": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "password": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "emails": { + "type": { + "type": "array", + "element_type": { + "type": "named", + "name": "String" + } + }, + "description": null + }, + "phoneNumber": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "location": { + "type": { + "type": "named", + "name": "Location" + }, + "description": null + }, + "website": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "domain": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "job": { + "type": { + "type": "array", + "element_type": { + "type": "named", + "name": "Job" + } + }, + "description": null + }, + "creditCard": { + "type": { + "type": "named", + "name": "CreditCard" + }, + "description": null + }, + "uuid": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "objectId": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "id": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "a": { + "type": { + "type": "array", + "element_type": { + "type": "named", + "name": "A" + } + }, + "description": null + }, + "nested_array_object_array": { + "type": { + "type": "array", + "element_type": { + "type": "named", + "name": "A" + } + }, + "description": null + }, + "nested_object_object_array": { + "type": { + "type": "named", + "name": "NestedObjectObjectArray" + }, + "description": null + }, + "nested_object_object_object": { + "type": { + "type": "named", + "name": "NestedObjectObjectObject" + }, + "description": null + }, + "nested_array_object_object_array": { + "type": { + "type": "array", + "element_type": { + "type": "named", + "name": "NestedObjectObjectArray" + } + }, + "description": null + } + } }, - "neq": { - "type": "custom", - "argument_type": { - "type": "named", - "name": "Number" - } - } - } - }, - "String": { - "aggregate_functions": {}, - "comparison_operators": { - "contains": { - "type": "custom", - "argument_type": { - "type": "named", - "name": "String" - } + "A": { + "fields": { + "b": { + "type": { + "type": "array", + "element_type": { + "type": "named", + "name": "BElement" + } + }, + "description": null + } + } }, - "endswith": { - "type": "custom", - "argument_type": { - "type": "named", - "name": "String" - } + "BElement": { + "fields": { + "c": { + "type": { + "type": "named", + "name": "Number" + }, + "description": null + } + } }, - "eq": { - "type": "equal" + "CreditCard": { + "fields": { + "number": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "cvv": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "issuer": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + } + } }, - "gt": { - "type": "custom", - "argument_type": { - "type": "named", - "name": "String" - } + "Job": { + "fields": { + "title": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "descriptor": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "area": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "type": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "company": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + } + } }, - "gte": { - "type": "custom", - "argument_type": { - "type": "named", - "name": "String" - } + "Location": { + "fields": { + "street": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "city": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "state": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "country": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "zip": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "coordinates": { + "type": { + "type": "named", + "name": "Coordinates" + }, + "description": null + } + } }, - "lt": { - "type": "custom", - "argument_type": { - "type": "named", - "name": "String" - } + "Coordinates": { + "fields": { + "latitude": { + "type": { + "type": "named", + "name": "Number" + }, + "description": null + }, + "longitude": { + "type": { + "type": "named", + "name": "Number" + }, + "description": null + } + } }, - "lte": { - "type": "custom", - "argument_type": { - "type": "named", - "name": "String" - } + "Name": { + "fields": { + "first": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "middle": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "last": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + } + } }, - "neq": { - "type": "custom", - "argument_type": { - "type": "named", - "name": "String" - } + "NestedObjectObjectArray": { + "fields": { + "b": { + "type": { + "type": "named", + "name": "NestedObjectObjectArrayB" + }, + "description": null + } + } }, - "regexmatch": { - "type": "custom", - "argument_type": { - "type": "named", - "name": "String" - } + "NestedObjectObjectArrayB": { + "fields": { + "c": { + "type": { + "type": "array", + "element_type": { + "type": "named", + "name": "C" + } + }, + "description": null + } + } }, - "startswith": { - "type": "custom", - "argument_type": { - "type": "named", - "name": "String" - } - } - } - } - }, - "object_types": { - "Laureate": { - "fields": { - "firstname": { - "type": { - "type": "named", - "name": "String" - } + "C": { + "fields": { + "d": { + "type": { + "type": "named", + "name": "Number" + }, + "description": null + } + } }, - "id": { - "type": { - "type": "named", - "name": "String" - } + "NestedObjectObjectObject": { + "fields": { + "b": { + "type": { + "type": "named", + "name": "NestedObjectObjectObjectB" + }, + "description": null + } + } }, - "motivation": { - "type": { - "type": "named", - "name": "String" - } + "NestedObjectObjectObjectB": { + "fields": { + "c": { + "type": { + "type": "named", + "name": "C" + }, + "description": null + } + } }, - "share": { - "type": { - "type": "named", - "name": "String" - } + "NobelLaureates": { + "fields": { + "year": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "category": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "laureates": { + "type": { + "type": "array", + "element_type": { + "type": "named", + "name": "Laureate" + } + }, + "description": null + }, + "id": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "overallMotivation": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + } + } }, - "surname": { - "type": { - "type": "named", - "name": "String" - } + "Laureate": { + "fields": { + "id": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "firstname": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "surname": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "motivation": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + }, + "share": { + "type": { + "type": "named", + "name": "String" + }, + "description": null + } + } } - } }, - "TestNobelLaureates": { - "fields": { - "id": { - "type": { - "type": "named", - "name": "String" - } - }, - "laureates": { - "type": { - "type": "array", - "element_type": { - "type": "named", - "name": "Laureate" + "scalar_types": { + "Integer": { + "aggregate_functions": { + "count": { + "result_type": { + "type": "named", + "name": "Integer" + } + }, + "sum": { + "result_type": { + "type": "named", + "name": "Integer" + } + }, + "avg": { + "result_type": { + "type": "named", + "name": "Integer" + } + }, + "min": { + "result_type": { + "type": "named", + "name": "Integer" + } + }, + "max": { + "result_type": { + "type": "named", + "name": "Integer" + } + } + }, + "comparison_operators": { + "eq": { + "type": "equal" + }, + "neq": { + "type": "custom", + "argument_type": { + "type": "named", + "name": "Integer" + } + }, + "gt": { + "type": "custom", + "argument_type": { + "type": "named", + "name": "Integer" + } + }, + "lt": { + "type": "custom", + "argument_type": { + "type": "named", + "name": "Integer" + } + }, + "gte": { + "type": "custom", + "argument_type": { + "type": "named", + "name": "Integer" + } + }, + "lte": { + "type": "custom", + "argument_type": { + "type": "named", + "name": "Integer" + } + } } - } }, - "overallMotivation": { - "type": { - "type": "named", - "name": "String" - } + "Number": { + "aggregate_functions": { + "count": { + "result_type": { + "type": "named", + "name": "Number" + } + }, + "sum": { + "result_type": { + "type": "named", + "name": "Number" + } + }, + "avg": { + "result_type": { + "type": "named", + "name": "Number" + } + }, + "min": { + "result_type": { + "type": "named", + "name": "Number" + } + }, + "max": { + "result_type": { + "type": "named", + "name": "Number" + } + } + }, + "comparison_operators": { + "eq": { + "type": "equal" + }, + "neq": { + "type": "custom", + "argument_type": { + "type": "named", + "name": "Number" + } + }, + "gt": { + "type": "custom", + "argument_type": { + "type": "named", + "name": "Number" + } + }, + "lt": { + "type": "custom", + "argument_type": { + "type": "named", + "name": "Number" + } + }, + "gte": { + "type": "custom", + "argument_type": { + "type": "named", + "name": "Number" + } + }, + "lte": { + "type": "custom", + "argument_type": { + "type": "named", + "name": "Number" + } + } + } }, - "prize_id": { - "type": { - "type": "named", - "name": "Number" - } + "Boolean": { + "aggregate_functions": { + "bool_and": { + "result_type": { + "type": "named", + "name": "Boolean" + } + }, + "bool_or": { + "result_type": { + "type": "named", + "name": "Boolean" + } + }, + "bool_not": { + "result_type": { + "type": "named", + "name": "Boolean" + } + } + }, + "comparison_operators": { + "eq": { + "type": "equal" + }, + "neq": { + "type": "custom", + "argument_type": { + "type": "named", + "name": "Boolean" + } + } + } }, - "year": { - "type": { - "type": "named", - "name": "Number" - } + "String": { + "aggregate_functions": {}, + "comparison_operators": { + "eq": { + "type": "equal" + }, + "neq": { + "type": "custom", + "argument_type": { + "type": "named", + "name": "String" + } + }, + "gt": { + "type": "custom", + "argument_type": { + "type": "named", + "name": "String" + } + }, + "lt": { + "type": "custom", + "argument_type": { + "type": "named", + "name": "String" + } + }, + "gte": { + "type": "custom", + "argument_type": { + "type": "named", + "name": "String" + } + }, + "lte": { + "type": "custom", + "argument_type": { + "type": "named", + "name": "String" + } + }, + "contains": { + "type": "custom", + "argument_type": { + "type": "named", + "name": "String" + } + }, + "endswith": { + "type": "custom", + "argument_type": { + "type": "named", + "name": "String" + } + }, + "regexmatch": { + "type": "custom", + "argument_type": { + "type": "named", + "name": "String" + } + }, + "startswith": { + "type": "custom", + "argument_type": { + "type": "named", + "name": "String" + } + } + } } - } - } - }, - "collections": [ - { - "name": "TestNobelLaureates", - "arguments": {}, - "type": "TestNobelLaureates", - "uniqueness_constraints": {}, - "foreign_keys": {} } - ], - "functions": [], - "procedures": [] }