I’m struggling to extract a scalar value, even if I read the docs and had it already working on another table/query.
my_table looks like this:
Then I want to sum the
session_id column and extract that value
tot = my_table |> sum(column: "session_id") |> first(column: "session_id") |> findColumn(fn: (key) => true, column: "session_id") tot_scalar = tot
findColumn gives me
An internal error has occurred.
What am I doing wrong? I don’t get it since it was working for me in another query that looks quite similar to this one.
Thanks in advance