Skip to content

Commit

Permalink
fix Col
Browse files Browse the repository at this point in the history
  • Loading branch information
AFine-gs committed Nov 15, 2024
1 parent 01e4528 commit 322797e
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,15 @@ function <<access.private>> meta::pure::lineage::scanProject::test::executeWithG

function <<access.private>> meta::pure::lineage::scanProject::test::executeWithProjectUsingCol():Any[1]
{
execute(|Firm.all()->project([
execute(|let name = 'foo';
Firm.all()->project([
col(f|$f.legalName,'a'),
col(f|$f.employees->map(e|$e.lastName),'b'),
col(f|$f.employees->map(e|2 + $e.locations.place->count()),'c')
col(f|$f.employees->map(e|2 + $e.locations.place->count()),'c'),
col(f|$f.employeeByLastName($name).lastName,'d')

]
), simpleRelationalMapping, meta::external::store::relational::tests::testRuntime(), meta::relational::extension::relationalExtensions());
);, simpleRelationalMapping, meta::external::store::relational::tests::testRuntime(), meta::relational::extension::relationalExtensions());
}

Class <<access.private>> meta::pure::lineage::scanProject::test::LambdaHolder
Expand Down Expand Up @@ -93,7 +96,7 @@ function <<meta::pure::profiles::test.Test>> meta::pure::lineage::scanProject::t
{
let x = meta::pure::lineage::scanProject::test::executeWithProjectUsingCol__Any_1_->scanExecutes();
let p = $x.funcEntryPoint->toOne()->evaluateAndDeactivate()->meta::pure::lineage::scanProject::scanProject();
assertEquals(['a', 'b', 'c'], $p.columns.first);
assertEquals(['a', 'b', 'c','d'], $p.columns.first);
}

function <<meta::pure::profiles::test.Test>> meta::pure::lineage::scanProject::test::testFindProjectColInKeyExpression():Boolean[1]
Expand Down

0 comments on commit 322797e

Please sign in to comment.