Skip to content

Commit

Permalink
Fix in the aggregate function with alias (finos#90)
Browse files Browse the repository at this point in the history
Fix alias name when is added in the aggregate function for the column
  • Loading branch information
sfc-gh-aramirezfuentes authored and sfc-gh-lfallasavendano committed Dec 13, 2023
1 parent 82ffb1b commit 8207573
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Morphir/Snowpark/AggregateMapping.elm
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ processAggregateLambdaBody body mapValue ctx =
[Scala.ArgValue Nothing (Scala.Literal (Scala.StringLit "To Do - Processing Other"))]

concatFunctions : Constants.VariableInformation -> List Scala.ArgValue
concatFunctions (aliasList, functions) =
concatFunctions (aliasList, functions) =
functions
|> List.map processList
|> List.map2 joinWithAlias aliasList
|> List.map2 joinWithAlias (List.tail aliasList |> Maybe.withDefault [])

processList : (String, Scala.Value) -> Scala.Value
processList (funcName, columnName) =
Expand Down

0 comments on commit 8207573

Please sign in to comment.