Skip to content

Commit

Permalink
Added support for arrayFlatten
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonard Wolters committed Aug 29, 2023
1 parent b49b9f6 commit 69f68d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,9 @@ class ArrayFunctionsIT extends DslITSpec {
execute(select(ArrayFlatten(Array(Array(Array("1")), Array(Array("2"), Array("3", "4")))))).futureValue should be(
"['1','2','3','4']"
)

execute(select(arrayFlatten(Array(Array(Array("1")), Array(Array("2"), Array("3", "4")))))).futureValue should be(
"['1','2','3','4']"
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,6 @@ trait ArrayFunctions { this: Magnets =>
def arrayLength(col: ArrayColMagnet[_]): ArrayLength = ArrayLength(col)
def length(col: ArrayColMagnet[_]): ArrayLength = ArrayLength(col)

def flatten[_](col: ArrayColMagnet[_]): ArrayFlatten[_] = ArrayFlatten(col)
def arrayFlatten[V](col: ArrayColMagnet[V]): ArrayFlatten[V] = ArrayFlatten(col)
def flatten[V](col: ArrayColMagnet[V]): ArrayFlatten[V] = ArrayFlatten(col)
}

0 comments on commit 69f68d0

Please sign in to comment.