Skip to content

[dfunctions] dolt_join_cost prints full join memo#9046

Merged
max-hoffman merged 6 commits intomainfrom
max/dolt-join-cost
Apr 23, 2025
Merged

[dfunctions] dolt_join_cost prints full join memo#9046
max-hoffman merged 6 commits intomainfrom
max/dolt-join-cost

Conversation

@max-hoffman
Copy link
Contributor

gms side: dolthub/go-mysql-server#2917

tmp2/test-branch*> select dolt_join_cost('select * from uv, xy where u = x') as cost;
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| cost                                                                                                                                                                      |
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| memo:                                                                                                                                                                     |
| ├── G1: (tablescan: uv 0.0)*                                                                                                                                              |
| ├── G2: (tablescan: xy 0.0)*                                                                                                                                              |
| └── G3: (hashjoin 1 2 8.0) (hashjoin 2 1 8.0) (mergejoin 1 2 4.1) (mergejoin 2 1 4.1) (lookupjoin 1 2 6.6) (lookupjoin 2 1 6.6) (innerjoin 2 1 5.0)* (innerjoin 1 2 5.0)* |
|                                                                                                                                                                           |
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

@max-hoffman max-hoffman requested a review from reltuk March 27, 2025 19:37
@coffeegoddd
Copy link
Contributor

@max-hoffman DOLT

comparing_percentages
100.000000 to 100.000000
version result total
b61d7f7 ok 5937457
version total_tests
b61d7f7 5937457
correctness_percentage
100.0

@coffeegoddd
Copy link
Contributor

@coffeegoddd DOLT

comparing_percentages
100.000000 to 100.000000
version result total
fcfbb45 ok 5937457
version total_tests
fcfbb45 5937457
correctness_percentage
100.0

@coffeegoddd
Copy link
Contributor

@max-hoffman DOLT

comparing_percentages
100.000000 to 100.000000
version result total
1fbe5d8 ok 5937457
version total_tests
1fbe5d8 5937457
correctness_percentage
100.0

@coffeegoddd
Copy link
Contributor

@max-hoffman DOLT

comparing_percentages
100.000000 to 100.000000
version result total
7a15622 ok 5937457
version total_tests
7a15622 5937457
correctness_percentage
100.0

@max-hoffman max-hoffman merged commit 525b258 into main Apr 23, 2025
21 checks passed
@max-hoffman max-hoffman deleted the max/dolt-join-cost branch April 23, 2025 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants