Unable to retain tags in aggregated new db



I have following tick script:

dbrp "iot"."autogen"

var actual = stream
    .groupBy('deviceid', 'region')

New DB is created however the tags from original db aren’t present anymore in the new db. How do I retain the existing tags in the new db?


I haven’t tested what I’m going to suggest. Someone more experienced will probably reply with the solution later.

You do a group by tags at the beginning but don’t do any in the following nodes. Maybe it’s lost somewhere along the way. You migt need to add |groupBy(*) somewhere.