What does mean the error "mapper.tolong can only be applied to a single value"?

13 views
Skip to first unread message

Frédéric Duwez

unread,
Feb 19, 2020, 9:50:27 AM2/19/20
to Warp 10 users
When executing the following line:
$lgts mapper.tolong 0 0 0 ] MAP 'lgts' STORE

on a list of gts countaining values like :
[1582089420000000,653.8181818181819],[1582089480000000,764.2738095238095]

I get this error message:
Exception at 'MAP' in section '[Line #376]' (mapper.tolong can only be applied to a single value.))

I have no clue what it does mean.
Could somebody help me?

Regards

Jean-Charles Vialatte

unread,
Feb 19, 2020, 11:54:51 AM2/19/20
to Warp 10 users
Have you checked if any of the gts is bucketized and has an empty bucket ?

If it is the case, the mapper will call mapper.tolong on a bucket with no value. That could be the reason why you see this error.

A fix would be to UNBUCKETIZE your gts.

Frédéric Duwez

unread,
Feb 20, 2020, 3:00:47 AM2/20/20
to Warp 10 users
Thank you Jean-Charles, this is exactly the problem and the solution.
I had previously removed buckets with zeros to avoid NaN after an op.div APPLY.

Maybe this could be documented in the MAP entry?

Regards
Reply all
Reply to author
Forward
0 new messages