[MCOL-4530] TPC-H query 19: - semi joins / 'lineitem' and 'part' are not joined. Created: 2021-02-03 Updated: 2023-03-22 Resolved: 2023-02-28 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 23.02.1 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Todd Stoffel (Inactive) | Assignee: | Leonid Fedorov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Assigned for Testing: | |
||||||||||||
| Description |
|
Query 19: IDB-1000: 'lineitem' and 'part' are not joined.
|
| Comments |
| Comment by Roman [ 2021-04-19 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The permanent solution will be three different cases. One of which namely circular joins support is WIP now. Two others: non-equi JOINs and semi-join with aggregation (in this particular case) on top are not yet started. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Kuijun Cui [ 2022-01-10 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi, could you share the progress of fixing this bug? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Gregory Dorman (Inactive) [ 2022-01-10 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
#4 is fixed. The rest in progress. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Kuijun Cui [ 2022-01-17 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
@Gregory Dorman, thank you for the sharing progress. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by alexey vorovich (Inactive) [ 2022-08-03 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
dleeyh Please retest JOINs with 22.08 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2022-08-03 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Build tested: 22.08-1 (#5138) Query 5 has been fixed in the release. The other 3 still have the same issues. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Leonid Fedorov [ 2022-12-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Now we have MVP version of rewrite. We tried to turn in on, and got original query 19 working, with the same result, that got from manual SQL rewrite Now we need do this action points
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Leonid Fedorov [ 2023-02-03 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
for now we have:
what we have to do
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andrey Piskunov (Inactive) [ 2023-02-15 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
As a result, our rewrite transforms this query:
into this query:
with the same answer of
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2023-02-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Build verified: engine: b6808c97f1baa9ebc59c7b75dca039c3d3046820 Executed the original dbt3 (tpch) query #19 on a 1gb dbt3 database. Results from both InnoDB and ColumnStore matched. Also executed the modified query that has been supported by ColumnStore before this change. Result also matched.
|