You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to use Pebble functions--map, filter, and reduce--per documentation
# Applies a function to each element, resulting in [2, 4, 6].
map {{ [1, 2, 3] | map(i => i * 2) }}
io.pebbletemplates.pebble.error.ParserException: Unexpected token "OPERATOR" of value ">" (map {{ [1, 2, 3] | map(i => i * 2) }}:1)
# Filters the list based on a predicate, resulting in [2, 3].
filter {{ [1, 2, 3] | filter(i => i > 1) }}
io.pebbletemplates.pebble.error.ParserException: Unexpected token "OPERATOR" of value ">" (filter {{ [1, 2, 3] | filter(i => i > 1) }}:1)
# Reduces the list to a single value, resulting in 6.
reduce {{ [1, 2, 3] | reduce((a, b) => a + b, 0) }}
io.pebbletemplates.pebble.error.ParserException: Unexpected token of value "," and type PUNCTUATION, expected token of type PUNCTUATION (reduce {{ [1, 2, 3] | reduce((a, b) => a + b, 0) }}:1)
Environment
Kestra Version: v0.19.5
Operating System (OS/Docker/Kubernetes): Docker
Java Version (if you don't run kestra in Docker): -
The text was updated successfully, but these errors were encountered:
Hi @Ben8t is it possible to suggest someone that might be interested in working on this one?
anna-geller
added
area/docs
Issues related to documentation, plugin examples, blueprints, and guides
and removed
bug
Something isn't working
documentation
Improvements or additions to documentation
labels
Feb 10, 2025
Ben8t
linked a pull request
Mar 5, 2025
that will
close
this issue
Describe the issue
Unable to use Pebble functions--
map
,filter
, andreduce
--per documentationEnvironment
The text was updated successfully, but these errors were encountered: