Skip to content

disable parallelization of switch containing aggregate#6953

Merged
nwt merged 1 commit into
mainfrom
parallel-switch-aggregate
May 18, 2026
Merged

disable parallelization of switch containing aggregate#6953
nwt merged 1 commit into
mainfrom
parallel-switch-aggregate

Conversation

@nwt
Copy link
Copy Markdown
Member

@nwt nwt commented May 15, 2026

The optimizer parallelizes the following program, causing incorrect output.

$ echo '1 2 3' | GOMAXPROCS=2 super \
    -vam -c 'switch default ( count() ) | sort count' -
0
3

Fix ths by disabling parallelization of switch operators when any path contains an aggregate operator.

The optimizer parallelizes the following program, causing incorrect
output.

    $ echo '1 2 3' | GOMAXPROCS=2 super \
        -vam -c 'switch default ( count() ) | sort count' -
    0
    3

Fix ths by disabling parallelization of switch operators when any path
contains an aggregate operator.
@nwt nwt requested a review from a team May 15, 2026 18:23
@nwt nwt merged commit dd307f8 into main May 18, 2026
2 checks passed
@nwt nwt deleted the parallel-switch-aggregate branch May 18, 2026 23:24
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