fuse

Aggregate Function

fuse — compute a fused type of input values

Synopsis

fuse(any) -> type

Description

The fuse aggregate function applies type fusion to its input and returns the fused type.

It is useful with grouped aggregation for data exploration and discovery when searching for shaping rules to cluster a large number of varied input types to a smaller number of fused types each from a set of interrelated types.

Examples

Fuse two records:

fuse(this)
{a:1,b:2}
{a:2,b:"foo"}
Loading...

Fuse records with a grouping key:

fuse(this) by b | sort
{a:1,b:"bar"}
{a:2.1,b:"foo"}
{a:3,b:"bar"}
Loading...

SuperDB