Open gaurav8297 opened 1 month ago
Some logs: First call to adaptive planning
2024-09-30T06:57:02.531Z WARN query-execution-0 io.trino.sql.planner.iterative.rule.AdaptiveReorderPartitionedJoin Left output size: 6.077524869566522E11, Right output size: 6.2090160966943E11
2024-09-30T06:57:02.532Z WARN query-execution-0 io.trino.sql.planner.iterative.rule.AdaptiveReorderPartitionedJoin Left output size: 1.079999896806E12, Right output size: 1.5478757817764893E11
2024-09-30T06:57:02.532Z WARN query-execution-0 io.trino.sql.planner.iterative.rule.AdaptiveReorderPartitionedJoin Left output size: 1.377226946675475E11, Right output size: 3.684888418233333E10
2024-09-30T06:57:02.533Z WARN query-execution-0 io.trino.sql.planner.iterative.rule.AdaptiveReorderPartitionedJoin Left output size: 8.508534817393131E11, Right output size: 3.7721968276E8
Second call to adaptive planning
2024-09-30T07:01:56.096Z WARN query-execution-0 io.trino.sql.planner.iterative.rule.AdaptiveReorderPartitionedJoin Left output size: 7.5582519022E11, Right output size: 1.477261493858036E12
2024-09-30T07:01:56.098Z WARN query-execution-0 io.trino.sql.planner.iterative.rule.AdaptiveReorderPartitionedJoin Left output size: 1.477261493858036E12, Right output size: 7.5582519022E11
2024-09-30T07:01:56.099Z WARN query-execution-0 io.trino.sql.planner.iterative.rule.AdaptiveReorderPartitionedJoin Left output size: 1.079999896806E12, Right output size: 3.682736933008136E11
2024-09-30T07:01:56.099Z WARN query-execution-0 io.trino.sql.planner.iterative.rule.AdaptiveReorderPartitionedJoin Left output size: 1.1096970582459525E11, Right output size: 1.0259863440025479E11
2024-09-30T07:01:56.099Z WARN query-execution-0 io.trino.sql.planner.iterative.rule.AdaptiveReorderPartitionedJoin Left output size: 1.062141519096E12, Right output size: 2.16553024E8
For some reason right side stats changed significantly for the first join.
@gaurav8297 do you recall what size of cluster and what schema did you do the tests on. So far I cannot reproduce that.
Ok - I managed to reproduce
For tpch q21:
with adaptive planning:
without adaptive planning: