From 0967c528997ab9f2cf3c39f5476ac722306963ae Mon Sep 17 00:00:00 2001 From: kelly-thai <89568879+kelly-thai@users.noreply.github.com> Date: Mon, 24 Feb 2025 15:13:19 -0600 Subject: [PATCH] Updating relational showcase (#850) --- .../Mapping/Semi Structure/Basic/code.pure | 8 ++++---- .../data/Store/Relational Store/Query/code.pure | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/showcases/data/Store/Relational Store/Mapping/Semi Structure/Basic/code.pure b/showcases/data/Store/Relational Store/Mapping/Semi Structure/Basic/code.pure index a97d972a5..71f5662eb 100644 --- a/showcases/data/Store/Relational Store/Mapping/Semi Structure/Basic/code.pure +++ b/showcases/data/Store/Relational Store/Mapping/Semi Structure/Basic/code.pure @@ -169,7 +169,7 @@ Runtime simple::runtime::SnowflakeRuntime ###Pure -function simple::dotAndBracketNotationAccess(): TabularDataSet[1] +function simple::dotAndBracketNotationAccess(): meta::pure::tds::TabularDataSet[1] { simple::model::Firm.all()->project( [ @@ -187,7 +187,7 @@ function simple::dotAndBracketNotationAccess(): TabularDataSet[1] ) } -function simple::arrayElementNoFlattenAccess(): TabularDataSet[1] +function simple::arrayElementNoFlattenAccess(): meta::pure::tds::TabularDataSet[1] { simple::model::Firm.all()->project( [ @@ -201,7 +201,7 @@ function simple::arrayElementNoFlattenAccess(): TabularDataSet[1] ) } -function simple::extractEnumProperty(): TabularDataSet[1] +function simple::extractEnumProperty(): meta::pure::tds::TabularDataSet[1] { simple::model::Firm.all()->project( [ @@ -215,7 +215,7 @@ function simple::extractEnumProperty(): TabularDataSet[1] ) } -function simple::allDataTypesAccess(): TabularDataSet[1] +function simple::allDataTypesAccess(): meta::pure::tds::TabularDataSet[1] { simple::model::Firm.all()->project( [ diff --git a/showcases/data/Store/Relational Store/Query/code.pure b/showcases/data/Store/Relational Store/Query/code.pure index e17d36a79..c95152284 100644 --- a/showcases/data/Store/Relational Store/Query/code.pure +++ b/showcases/data/Store/Relational Store/Query/code.pure @@ -577,7 +577,7 @@ Association showcase::northwind::model::associations::Order_OrderLineItem lineItems: showcase::northwind::model::OrderLineItem[*]; } -function showcase::northwind::store::functions::SelectOnNorthWindCustomer(): Any[*] +function showcase::northwind::store::functions::SelectOnNorthWindCustomer(): meta::pure::metamodel::relation::Relation[*] { #>{showcase::northwind::store::NorthwindDatabase.NORTHWIND.CUSTOMERS}#->select( ~[ @@ -588,14 +588,14 @@ function showcase::northwind::store::functions::SelectOnNorthWindCustomer(): Any ) } -function showcase::northwind::store::functions::NorthwindDrop(): Any[*] +function showcase::northwind::store::functions::NorthwindDrop(): meta::pure::metamodel::relation::Relation[*] { #>{showcase::northwind::store::NorthwindDatabase.NORTHWIND.CUSTOMERS}#->drop(10)->from( showcase::northwind::store::NorthwindRuntime ) } -function showcase::northwind::store::functions::NorthwindExtendd(): Any[*] +function showcase::northwind::store::functions::NorthwindExtendd(): meta::pure::metamodel::relation::Relation[*] { #>{showcase::northwind::store::NorthwindDatabase.NORTHWIND.CUSTOMERS}#->extend( ~newCol: x|$x.CONTACT_NAME->toOne() + ' |' + $x.CONTACT_TITLE->toOne() @@ -604,7 +604,7 @@ function showcase::northwind::store::functions::NorthwindExtendd(): Any[*] ) } -function showcase::simple::functions::simpleFunctionSort(): Any[*] +function showcase::simple::functions::simpleFunctionSort(): meta::pure::metamodel::relation::Relation[*] { #>{showcase::simple::store::TestDatabase.TEST0}#->filter( c|$c.FIRSTNAME != 'Doe' @@ -617,7 +617,7 @@ function showcase::simple::functions::simpleFunctionSort(): Any[*] ) } -function showcase::simple::functions::simpleTableFunctionFilter(): Any[*] +function showcase::simple::functions::simpleTableFunctionFilter(): meta::pure::metamodel::relation::Relation[*] { #>{showcase::simple::store::TestDatabase.TEST0}#->filter( c|($c.FIRSTNAME != 'Doe') && @@ -631,7 +631,7 @@ function showcase::simple::functions::simpleTableFunctionFilter(): Any[*] ) } -function showcase::simple::functions::simpleTableFunctionGroup(): Any[*] +function showcase::simple::functions::simpleTableFunctionGroup(): meta::pure::metamodel::relation::Relation[*] { #>{showcase::simple::store::TestDatabase.TEST0}#->filter( c|$c.FIRSTNAME != 'Doe' @@ -647,7 +647,7 @@ function showcase::simple::functions::simpleTableFunctionGroup(): Any[*] ) } -function showcase::simple::functions::simpleTableFunctionSlice(): Any[*] +function showcase::simple::functions::simpleTableFunctionSlice(): meta::pure::metamodel::relation::Relation[*] { #>{showcase::simple::store::TestDatabase.TEST0}#->filter( c|($c.FIRSTNAME != 'Doe') &&