Skip to content

add fusion types to docs and update union type - #7712

Merged
mccanne merged 3 commits into
mainfrom
book-fusions
Nov 24, 2026
Merged

mccanne merged 3 commits into
mainfrom
book-fusions

Conversation

@mccanne

@mccanne mccanne commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread book/src/super-sql/types/fusion.md Outdated

The [superfuse](../aggregates/superfuse.md) aggregate function computes
the fusion type of its input:
```mdtest-spq

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```mdtest-spq
```mdtest-spq {data-layout="stacked"}

Comment thread book/src/super-sql/types/fusion.md Outdated
Comment on lines +82 to +91
```mdtest-spq fusion
# spq
superfuse
# input
{a:1}
{b:"x"}
# expected output
{a:fusion(1::(int64|missing),<int64>),b:fusion(missing::(string|missing),<missing>)}
{a:fusion(missing::(int64|missing),<missing>),b:fusion("x"::(string|missing),<string>)}
```

@philrz philrz Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The use of the -fusion flag is not reflected in the Playground-style example, so it seems we'd need to change to classic shell-style mdtest here.

Suggested change
```mdtest-spq fusion
# spq
superfuse
# input
{a:1}
{b:"x"}
# expected output
{a:fusion(1::(int64|missing),<int64>),b:fusion(missing::(string|missing),<missing>)}
{a:fusion(missing::(int64|missing),<missing>),b:fusion("x"::(string|missing),<string>)}
```
```mdtest-command
super -fusion -s -c "values {a:1},{b:'x'} | superfuse"
```
```mdtest-output
{a:fusion(1::(int64|missing),<int64>),b:fusion(missing::(string|missing),<missing>)}
{a:fusion(missing::(int64|missing),<missing>),b:fusion("x"::(string|missing),<string>)}
```

@mccanne
mccanne merged commit 0dc7faf into main Nov 24, 2026
4 checks passed
@mccanne
mccanne deleted the book-fusions branch November 24, 2026 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants