Skip to content

Enumeration is non-deterministic #634

@juripetersen

Description

@juripetersen

Using Wayangs default enumeration and pruning strategies, the plans compared in cost models are non-deterministic.
This can be observed when comparing costs with different mechanisms:

            final PlanImplementation bestPlanImplementation = executionPlans.stream()
                .reduce((p1, p2) -> {
                    final double t1 = p1.getSquashedCostEstimate();
                    final double t2 = p2.getSquashedCostEstimate();
                    return t1 < t2 ? p1 : p2;
                })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions