Filter by data type


Is it possible to create a filter based on field data type?

I want to create a downsampling task, whereby I move all data older than a month to a low-res bucket. However, I don’t need to downsample event / discrete data. Effectively, only fields that are not boolean or string will be aggregated. For this, I was thinking of writing a query that selects all data that is not boolean or string… The closest I could think of was using regular expressions, but that doesn’t offer to compare data types I think, just complex patterns. I could look for strings like “false” or “true”… but that seems only like a solution for booleans.



@koenwindey I guess types.isType() function is what you are looking for. Try it and let me know if you need any help.