We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I found a problem, if i set runtime.GOMAXPROCS(1), blow code has a litter problem, aggregation function can't work accurately:
The aggregation function directly enters the final state, physicalplan.go
func Build( ctx context.Context, pool memory.Allocator, tracer trace.Tracer, s *dynparquet.Schema, plan *logicalplan.LogicalPlan, options ...Option, ) (*OutputPlan, error) { ...... case plan.Aggregation != nil: ordered, err := shouldPlanOrderedAggregate(execOpts, oInfo, plan.Aggregation) if err != nil { // TODO(asubiotto): Log the error. ordered = false } var sync PhysicalPlan if len(prev) > 1 { // because len(prev) == 1, so can't execute it // These aggregate operators need to be synchronized. if ordered && len(plan.Aggregation.GroupExprs) > 0 { sync = NewOrderedSynchronizer(pool, len(prev), plan.Aggregation.GroupExprs) } else { sync = Synchronize(len(prev)) } } seed := maphash.MakeSeed() for i := 0; i < len(prev); i++ { a, err := Aggregate(pool, tracer, plan.Aggregation, sync == nil, ordered, seed) // because sync is nil, so aggregation directly entering the final state, so it cannot work correctly if err != nil { visitErr = err return false } prev[i].SetNext(a) prev[i] = a if sync != nil { a.SetNext(sync) } } if sync != nil { // Plan an aggregate operator to run an aggregation on all the // aggregations. a, err := Aggregate(pool, tracer, plan.Aggregation, true, ordered, seed) if err != nil { visitErr = err return false } sync.SetNext(a) prev = prev[0:1] prev[0] = a } if ordered { oInfo.nodeMaintainsOrdering() } default: panic("Unsupported plan") } }
The text was updated successfully, but these errors were encountered:
Thanks! Yes this has been a bug for a while but I think the stale bot must have auto closed the previous issue. Thanks for reopening
Sorry, something went wrong.
This was reverted in #885 without a fix. So this bug is valid again.
Successfully merging a pull request may close this issue.
I found a problem, if i set runtime.GOMAXPROCS(1), blow code has a litter problem, aggregation function can't work accurately:
The aggregation function directly enters the final state,
physicalplan.go
The text was updated successfully, but these errors were encountered: