From d9151821fd64a53b48a81ebcb8c57a5fc9375d5c Mon Sep 17 00:00:00 2001 From: afine-gs Date: Tue, 19 Nov 2024 13:00:46 -0500 Subject: [PATCH] update col let expression --- .../relational/lineage/scanRelations/scanRelations.pure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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/lineage/scanRelations/scanRelations.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/lineage/scanRelations/scanRelations.pure index d6fee16e5ec..2f51573523f 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/lineage/scanRelations/scanRelations.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/lineage/scanRelations/scanRelations.pure @@ -402,7 +402,8 @@ function <> meta::pure::lineage::scanRelations::generatRelationa let inScopeVars = $a->keyValues(); let unavailableVars = $varExprs.name->forAll(var | $var->in($inScopeVars.first)); assert($unavailableVars, 'Unable to resolve var(s): '+ $varExprs.name->filter(var | !$var->in($inScopeVars.first))->joinStrings()); - let value = if($vs.genericType.rawType->toOne()->instanceOf(PrimitiveType), + + let value = if($vs.genericType.rawType->toOne()->instanceOf(PrimitiveType) && !$vs->cast(@SimpleFunctionExpression).parametersValues->at(1)->instanceOf(InstanceValue), | ^PlanVarPlaceHolder(name=$varName->toOne(), type = $vs.genericType.rawType->toOne(), multiplicity=$vs.multiplicity), | $vs->reactivate($a); );