Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

fuse

compute a complete 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. A fused type differs from a blended type as it includes fusion types in the nested type hierarchy whereever type changes were made to combine types in the type fusion process.

Examples

Fuse two records:

# spq
fuse(this)
# input
{a:1,b:2}
{a:2,b:"foo"}
# expected output
<{a:int64,b:fusion(int64|string)}>