Skip to content

Conversation

@Gabriel39
Copy link
Contributor

@Gabriel39 Gabriel39 commented Oct 30, 2024

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@Gabriel39
Copy link
Contributor Author

run buildall

1 similar comment
@Gabriel39
Copy link
Contributor Author

run buildall

…1789)

Add local shuffle to unpartitioned fragment to add parallel for
perfomance
```sql
SELECT h1.UserID, h2.URL, COUNT(*) AS visit_count
FROM (
  SELECT *
  FROM hits_10m
  LIMIT 5000
) AS h1
CROSS JOIN (
  SELECT *
  FROM hits_10m
  LIMIT 5000
) AS h2
GROUP BY h1.UserID, h2.URL
ORDER BY visit_count DESC
LIMIT 1000
```

Add a rule to apply local exchanger:

```
┌───────────────────────┐               ┌───────────────────────┐
│                       │               │                       │
│Exchange(UNPARTITIONED)│               │Exchange(UNPARTITIONED)│
│                       │               │                       │
└───────────────────────┴──────┬────────┴───────────────────────┘
                               │
                               │
                               │
                               │
                               │
                               │
                        ┌──────▼──────┐
                        │             │
                        │ CROSS JOIN  │
                        │             │
                        └──────┬──────┘
                               │
                               │
                               │
            ┌──────────────────▼─────────────────────┐
            │                                        │
            │ LOCAL EXCHANGE (HASH PARTITION) 1 -> n │
            │                                        │
            └──────────────────┬─────────────────────┘
                               │
                               │
                               │
                               │
                   ▼        ┌──▼────┐
                            │       │
                            │  AGG  │
                            │       │
                            └───────┘
```

before: 1 min 17.79 sec
after: 16.73 sec
@Gabriel39 Gabriel39 changed the title [branch-3.0](pick) Pick #41789 #42482 [branch-3.0](pick) Pick #41789 #42482 #41210 Oct 31, 2024
@Gabriel39
Copy link
Contributor Author

run buildall

@Gabriel39
Copy link
Contributor Author

run buildall

Unify `useSerialSource` of fragments contain no scan nodes and `ignoreDataDistribution` of fragments contain scan nodes
@Gabriel39 Gabriel39 changed the title [branch-3.0](pick) Pick #41789 #42482 #41210 [branch-3.0](pick) Pick #41789 #42482 #41210 #42460 Oct 31, 2024
@Gabriel39
Copy link
Contributor Author

run buildall

@Gabriel39 Gabriel39 merged commit 7769c68 into apache:branch-3.0 Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants