Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler/optimizer/parallelize.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ func (o *Optimizer) concurrentPath(seq dag.Seq, sortKeys order.SortKeys) (length
return 0, nil, false, nil
}
return k, sortExprsForSortKeys(sortKeys), true, nil
case *dag.ForkOp, *dag.HeadOp, *dag.ScatterOp, *dag.TailOp, *dag.UniqOp, *dag.FuseOp,
case *dag.DistinctOp, *dag.ForkOp, *dag.HeadOp, *dag.ScatterOp, *dag.TailOp, *dag.UniqOp, *dag.FuseOp,
Comment thread
mattnibs marked this conversation as resolved.
Resolved
*dag.HashJoinOp, *dag.InferOp, *dag.JoinOp, *dag.OutputOp:
return k, sortExprsForSortKeys(sortKeys), true, nil
default:
Expand Down
19 changes: 19 additions & 0 deletions compiler/ztests/par-distinct.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
script: |
super compile -C -P 2 -dynamic 'from test.bsup | distinct a | count()'
echo ===
super compile -C -P 2 -dynamic 'from test.bsup | distinct a | sort a'

outputs:
- name: stdout
data: |
file test.bsup format bsup unordered project [a]
| distinct a
| aggregate
count:=count()
| values count
| output main
===
file test.bsup format bsup unordered
| distinct a
| sort a asc nulls last
| output main
Loading