Skip to content
New issue

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

feat(fuzzer): Update make[merge|NLJ]Plan functions to generate multi-join plans #11941

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

DanielHunte
Copy link

Summary: Change makeMergeJoinPlan and makeNestedLoopJoinPlan functions to produce cascading multi-joins.

Differential Revision: D67607605

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 23, 2024
Copy link

netlify bot commented Dec 23, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 40bda42
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/67819b011beb8a000803ffb2

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67607605

DanielHunte pushed a commit to DanielHunte/velox that referenced this pull request Dec 23, 2024
…join plans (facebookincubator#11941)

Summary:

Change makeMergeJoinPlan and makeNestedLoopJoinPlan functions to produce cascading multi-joins.

Differential Revision: D67607605
DanielHunte pushed a commit to DanielHunte/velox that referenced this pull request Dec 23, 2024
…join plans (facebookincubator#11941)

Summary:

Change makeMergeJoinPlan and makeNestedLoopJoinPlan functions to produce cascading multi-joins.

Differential Revision: D67607605
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67607605

DanielHunte pushed a commit to DanielHunte/velox that referenced this pull request Dec 27, 2024
…join plans (facebookincubator#11941)

Summary:

Change makeMergeJoinPlan and makeNestedLoopJoinPlan functions to produce cascading multi-joins.

Differential Revision: D67607605
DanielHunte pushed a commit to DanielHunte/velox that referenced this pull request Dec 27, 2024
…join plans (facebookincubator#11941)

Summary:

Change makeMergeJoinPlan and makeNestedLoopJoinPlan functions to produce cascading multi-joins.

Differential Revision: D67607605
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67607605

DanielHunte pushed a commit to DanielHunte/velox that referenced this pull request Dec 27, 2024
…join plans (facebookincubator#11941)

Summary:

Change makeMergeJoinPlan and makeNestedLoopJoinPlan functions to produce cascading multi-joins.

Differential Revision: D67607605
DanielHunte pushed a commit to DanielHunte/velox that referenced this pull request Dec 27, 2024
…join plans (facebookincubator#11941)

Summary:

Change makeMergeJoinPlan and makeNestedLoopJoinPlan functions to produce cascading multi-joins.

Differential Revision: D67607605
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67607605

DanielHunte pushed a commit to DanielHunte/velox that referenced this pull request Dec 27, 2024
…join plans (facebookincubator#11941)

Summary:

Change makeMergeJoinPlan and makeNestedLoopJoinPlan functions to produce cascading multi-joins.

Differential Revision: D67607605
DanielHunte pushed a commit to DanielHunte/velox that referenced this pull request Dec 27, 2024
…join plans (facebookincubator#11941)

Summary:

Change makeMergeJoinPlan and makeNestedLoopJoinPlan functions to produce cascading multi-joins.

Differential Revision: D67607605
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67607605

DanielHunte pushed a commit to DanielHunte/velox that referenced this pull request Dec 30, 2024
…join plans (facebookincubator#11941)

Summary:

Change makeMergeJoinPlan and makeNestedLoopJoinPlan functions to produce cascading multi-joins.

Differential Revision: D67607605
DanielHunte pushed a commit to DanielHunte/velox that referenced this pull request Dec 30, 2024
…join plans (facebookincubator#11941)

Summary:

Change makeMergeJoinPlan and makeNestedLoopJoinPlan functions to produce cascading multi-joins.

Differential Revision: D67607605
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67607605

DanielHunte pushed a commit to DanielHunte/velox that referenced this pull request Dec 30, 2024
…join plans (facebookincubator#11941)

Summary:

Change makeMergeJoinPlan and makeNestedLoopJoinPlan functions to produce cascading multi-joins.

Differential Revision: D67607605
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67607605

DanielHunte pushed a commit to DanielHunte/velox that referenced this pull request Dec 30, 2024
…join plans (facebookincubator#11941)

Summary:

Change makeMergeJoinPlan and makeNestedLoopJoinPlan functions to produce cascading multi-joins.

Differential Revision: D67607605
DanielHunte pushed a commit to DanielHunte/velox that referenced this pull request Dec 30, 2024
…join plans (facebookincubator#11941)

Summary:

Change makeMergeJoinPlan and makeNestedLoopJoinPlan functions to produce cascading multi-joins.

Differential Revision: D67607605
DanielHunte pushed a commit to DanielHunte/velox that referenced this pull request Dec 30, 2024
…join plans (facebookincubator#11941)

Summary:

Change makeMergeJoinPlan and makeNestedLoopJoinPlan functions to produce cascading multi-joins.

Differential Revision: D67607605
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67607605

DanielHunte pushed a commit to DanielHunte/velox that referenced this pull request Jan 7, 2025
…join plans (facebookincubator#11941)

Summary:

Change makeMergeJoinPlan and makeNestedLoopJoinPlan functions to produce cascading multi-joins.

Differential Revision: D67607605
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67607605

DanielHunte pushed a commit to DanielHunte/velox that referenced this pull request Jan 7, 2025
…join plans (facebookincubator#11941)

Summary:

Change makeMergeJoinPlan and makeNestedLoopJoinPlan functions to produce cascading multi-joins.

Differential Revision: D67607605
DanielHunte pushed a commit to DanielHunte/velox that referenced this pull request Jan 7, 2025
…join plans (facebookincubator#11941)

Summary:

Change makeMergeJoinPlan and makeNestedLoopJoinPlan functions to produce cascading multi-joins.

Differential Revision: D67607605
DanielHunte pushed a commit to DanielHunte/velox that referenced this pull request Jan 7, 2025
…join plans (facebookincubator#11941)

Summary:

Change makeMergeJoinPlan and makeNestedLoopJoinPlan functions to produce cascading multi-joins.

Differential Revision: D67607605
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67607605

DanielHunte pushed a commit to DanielHunte/velox that referenced this pull request Jan 10, 2025
…join plans (facebookincubator#11941)

Summary:

Change makeMergeJoinPlan and makeNestedLoopJoinPlan functions to produce cascading multi-joins.

Differential Revision: D67607605
DanielHunte pushed a commit to DanielHunte/velox that referenced this pull request Jan 10, 2025
…join plans (facebookincubator#11941)

Summary:

Change makeMergeJoinPlan and makeNestedLoopJoinPlan functions to produce cascading multi-joins.

Differential Revision: D67607605
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67607605

DanielHunte pushed a commit to DanielHunte/velox that referenced this pull request Jan 10, 2025
…join plans (facebookincubator#11941)

Summary:

Change makeMergeJoinPlan and makeNestedLoopJoinPlan functions to produce cascading multi-joins.

Differential Revision: D67607605
DanielHunte pushed a commit to DanielHunte/velox that referenced this pull request Jan 10, 2025
…join plans (facebookincubator#11941)

Summary:

Change makeMergeJoinPlan and makeNestedLoopJoinPlan functions to produce cascading multi-joins.

Differential Revision: D67607605
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67607605

Daniel Hunte added 5 commits January 10, 2025 14:10
… for reference query runners (facebookincubator#11801)

Summary:

Currently, the hash join and nested loop join "toSql" methods for all reference query runners only support a single join. This change extends it to support multiple joins, only needing the join node of the last join in the tree. It traverses up the tree and recursively builds the sql query.

Differential Revision: D66977480
…ns (facebookincubator#11938)

Summary:

The function should traverse the plan tree and recursively flip the sides of all join nodes that are eligible to be flipped. This is in preparation to make the Join Fuzzer produce plans with multiple joins. Flipping join sides help make alternate plans that should be logically equivalent.

Reviewed By: kgpai

Differential Revision: D67606686
…n plans (facebookincubator#11939)

Summary:

Generates a cascading multi-join from left to right.
```
[t1, t2, t3, t4]

t1  t2
 \  /
  a   t3
   \  /
     b   t4
      \  /
        c
```

Differential Revision: D67607316
… plans (facebookincubator#11940)

Summary:

Generates a cascading multi-join from left to right with table scans as the inputs.

```
[t1, t2, t3, t4]
t1  t2
 \  /
  a   t3
   \  /
     b   t4
      \  /
        c
```

Differential Revision: D67607533
…join plans (facebookincubator#11941)

Summary:

Change makeMergeJoinPlan and makeNestedLoopJoinPlan functions to produce cascading multi-joins.

Differential Revision: D67607605
DanielHunte pushed a commit to DanielHunte/velox that referenced this pull request Jan 10, 2025
…join plans (facebookincubator#11941)

Summary:

Change makeMergeJoinPlan and makeNestedLoopJoinPlan functions to produce cascading multi-joins.

Differential Revision: D67607605
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67607605

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants