Skip to content

Instantly share code, notes, and snippets.

@IvanVergiliev
Created June 21, 2021 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IvanVergiliev/781a772febab0dd7515677be4b76f249 to your computer and use it in GitHub Desktop.
Save IvanVergiliev/781a772febab0dd7515677be4b76f249 to your computer and use it in GitHub Desktop.
Fold a list of predicates
val andPredicates: Array[Column] = parseAndPredicates(...)
val compositePredicate: Column = andPredicates.foldLeft(lit(true))((x, y) => x && y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment