From 1e877a930fe7e93819b0f1df19d9d6f877817ed7 Mon Sep 17 00:00:00 2001 From: Flo Renucci Date: Thu, 24 Oct 2024 17:45:14 +0200 Subject: [PATCH] Support more operations --- .../core_relational/relational/modelJoins/modelJoins.pure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-generation/legend-engine-xt-relationalStore-pure/legend-engine-xt-relationalStore-core-pure/src/main/resources/core_relational/relational/modelJoins/modelJoins.pure b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-generation/legend-engine-xt-relationalStore-pure/legend-engine-xt-relationalStore-core-pure/src/main/resources/core_relational/relational/modelJoins/modelJoins.pure index 770f187c77f..cafe1929b36 100644 --- a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-generation/legend-engine-xt-relationalStore-pure/legend-engine-xt-relationalStore-core-pure/src/main/resources/core_relational/relational/modelJoins/modelJoins.pure +++ b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-generation/legend-engine-xt-relationalStore-pure/legend-engine-xt-relationalStore-core-pure/src/main/resources/core_relational/relational/modelJoins/modelJoins.pure @@ -95,10 +95,10 @@ function <> meta::external::store::relational::modelJoins::trans let targetDatabase = $targetMainTableAlias.database->toOne(); let aggregatedDatabase = ^Database(includes=[$sourceDatabase, $targetDatabase]); - assertContains(['equal', 'not', 'and', 'or'], $functionOperator, 'Failed to translate XStore Property into Relational Property because function operator is not in standard list'); + assertContains(['equal', 'not', 'and', 'or', 'greaterThanEqual', 'greaterThan', 'lessThanEqual', 'lessThan' ], $functionOperator, 'Failed to translate XStore Property into Relational Property because function operator is not in standard list'); let join = if( - $functionOperator=='equal' || $functionOperator=='not', + $functionOperator->(['equal', 'not', 'greaterThanEqual', 'greaterThan', 'lessThanEqual', 'lessThan' ]), | let expressionParameters = $expressionSequence.parametersValues->evaluateAndDeactivate(); let sourceSet = getClassMappingAtId($classMappings, $sourceId); let targetSet = getClassMappingAtId($classMappings, $targetId);