From 7dce071d3f6b5c185d7a47f0af6555097ae98522 Mon Sep 17 00:00:00 2001 From: Pierre De Belen Date: Fri, 12 Apr 2024 18:16:54 -0400 Subject: [PATCH] Upgrade Pure (#2777) --- .../legend/objectReference/objectReference.pure | 2 +- .../core_relational/relational/relation/testFramework.pure | 2 +- .../resources/core_relational/relational/relation/tests.pure | 4 ++-- .../core_external_query_relationalai/utils/result.pure | 4 ++-- pom.xml | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-generation/legend-engine-xt-relationalStore-pure/src/main/resources/core_relational/legend/objectReference/objectReference.pure b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-generation/legend-engine-xt-relationalStore-pure/src/main/resources/core_relational/legend/objectReference/objectReference.pure index 66d574674ab..de8a9d16f4c 100644 --- a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-generation/legend-engine-xt-relationalStore-pure/src/main/resources/core_relational/legend/objectReference/objectReference.pure +++ b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-generation/legend-engine-xt-relationalStore-pure/src/main/resources/core_relational/legend/objectReference/objectReference.pure @@ -74,7 +74,7 @@ function meta::alloy::objectReference::parseAlloyObjectReferenceV1(ref : String[ if($type->toLower() == 'relational', |parseAlloyRelationalStoreObjectReferenceV1($ref->substring($typeEnd+1), $lengthStringSize, $type), - |fail('Not Supported Yet!!'); []->newMap();); + |fail('Not Supported Yet!!'); [pair('x',$type)]->newMap();); } function meta::alloy::objectReference::parseAlloyRelationalStoreObjectReferenceV1(ref : String[1], lengthStringSize:Integer[1], type:String[1]):Map[1] diff --git a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-generation/legend-engine-xt-relationalStore-pure/src/main/resources/core_relational/relational/relation/testFramework.pure b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-generation/legend-engine-xt-relationalStore-pure/src/main/resources/core_relational/relational/relation/testFramework.pure index caba2ea1306..4a0a375947c 100644 --- a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-generation/legend-engine-xt-relationalStore-pure/src/main/resources/core_relational/relational/relation/testFramework.pure +++ b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-generation/legend-engine-xt-relationalStore-pure/src/main/resources/core_relational/relational/relation/testFramework.pure @@ -333,7 +333,7 @@ function meta::relational::relation::testUtils::processTDS(tds:TDS[1], stat -function meta::relational::relation::testUtils::testTDSDatabaseRun(f:Function<{->Any[*]}>[1]):Any[*] +function meta::relational::relation::testUtils::testTDSDatabaseRun(f:Function<{->Any[1]}>[1]):Any[1] { // //For debug // meta::pure::executionPlan::executionPlan($f->meta::relational::relation::testUtils::reprocess().first, ^meta::pure::runtime::ExecutionContext(), meta::relational::extension::relationalExtensions(), debug()); diff --git a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-generation/legend-engine-xt-relationalStore-pure/src/main/resources/core_relational/relational/relation/tests.pure b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-generation/legend-engine-xt-relationalStore-pure/src/main/resources/core_relational/relational/relation/tests.pure index 34444b45d46..1cbcab26a14 100644 --- a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-generation/legend-engine-xt-relationalStore-pure/src/main/resources/core_relational/relational/relation/tests.pure +++ b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-generation/legend-engine-xt-relationalStore-pure/src/main/resources/core_relational/relational/relation/tests.pure @@ -14,10 +14,10 @@ function <> meta::relational::relation::executeDatabaseTests():Boolean[1] { - meta::pure::functions::relation::tests::executeTests(meta::relational::relation::testUtils::testTDSDatabaseRun_Function_1__Any_MANY_); + meta::pure::functions::relation::tests::executeTests(meta::relational::relation::testUtils::testTDSDatabaseRun_Function_1__Any_1_); } function meta::relational::relation::executeSingleTest():Boolean[1] { - meta::pure::functions::relation::tests::filter::testSimpleFilterShared(meta::relational::relation::testUtils::testTDSDatabaseRun_Function_1__Any_MANY_); + meta::pure::functions::relation::tests::filter::testSimpleFilterShared(meta::relational::relation::testUtils::testTDSDatabaseRun_Function_1__Any_1_); } \ No newline at end of file diff --git a/legend-engine-xts-relationalai/legend-engine-xt-relationalai-pure/src/main/resources/core_external_query_relationalai/utils/result.pure b/legend-engine-xts-relationalai/legend-engine-xt-relationalai-pure/src/main/resources/core_external_query_relationalai/utils/result.pure index 56a110ccae9..f1d550faf5d 100644 --- a/legend-engine-xts-relationalai/legend-engine-xt-relationalai-pure/src/main/resources/core_external_query_relationalai/utils/result.pure +++ b/legend-engine-xts-relationalai/legend-engine-xt-relationalai-pure/src/main/resources/core_external_query_relationalai/utils/result.pure @@ -107,14 +107,14 @@ function meta::external::store::rel::utils::orDefaultValue(result: Result(result: Result[1]): T[1] { if($result.errors->isEmpty(), | $result.values->toOne(), - | fail($result->failMessage()) + | fail($result->failMessage()); $result.values->toOne(); ) } function meta::external::store::rel::utils::unwrapm(result: Result[1]): T[*] { if($result.errors->isEmpty(), | $result.values, - | fail($result->failMessage()) + | fail($result->failMessage()); $result.values; ) } diff --git a/pom.xml b/pom.xml index 72f4e0b9145..c05c3c02fe0 100644 --- a/pom.xml +++ b/pom.xml @@ -105,7 +105,7 @@ - 5.3.0 + 5.4.0 0.25.4