Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
Signed-off-by: Heng Qian <[email protected]>
  • Loading branch information
qianheng-aws committed Nov 4, 2024
1 parent aee8971 commit 83cd46c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class PPLLogicalPlanLambdaFunctionsTranslatorTestSuite
planTransformer.visit(
plan(
pplParser,
"""source=t | eval a = json_array(1, 2, 3), b = transform(a, 0, (x, y) -> x + y, x -> x * 10)""".stripMargin),
"""source=t | eval a = json_array(1, 2, 3), b = reduce(a, 0, (x, y) -> x + y, x -> x * 10)""".stripMargin),
context)
val table = UnresolvedRelation(Seq("t"))
val jsonFunc =
Expand All @@ -199,7 +199,7 @@ class PPLLogicalPlanLambdaFunctionsTranslatorTestSuite
val aliasB =
Alias(
UnresolvedFunction(
"transform",
"reduce",
Seq(UnresolvedAttribute("a"), Literal(0), mergeLambda, finishLambda),
false),
"b")()
Expand Down

0 comments on commit 83cd46c

Please sign in to comment.