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

[Bug report] The Join query in Trino connector version 0.5.1 has slower performance than version 0.5. #3738

Closed
diqiu50 opened this issue Jun 4, 2024 · 0 comments · Fixed by #3748
Assignees
Labels
bug Something isn't working

Comments

@diqiu50
Copy link
Contributor

diqiu50 commented Jun 4, 2024

Version

main branch

Describe what's wrong

The Join query in Trino connector version 0.5.1 has slower performance than version 0.5.
In the play groud query:

SELECT e.employee_id, given_name, family_name, AVG(rating) AS average_rating, SUM(total_amount) AS total_sales
FROM catalog_postgres.hr.employees AS e,
  catalog_postgres.hr.employee_performance AS p,
  catalog_hive.sales.sales AS s
WHERE e.employee_id = p.employee_id AND p.employee_id = s.employee_id
GROUP BY e.employee_id,  given_name, family_name;

Error message and/or stacktrace

0.5.0
Query 20240603_071554_00029_vtp7u, FINISHED, 1 node
Splits: 20 total, 20 done (100.00%)
2.32 [337 rows, 2.95KB] [145 rows/s, 1.27KB/s]

0.5.1
Splits: 20 total, 20 done (100.00%)
20.71 [679 rows, 3.09KB] [32 rows/s, 153B/s]

How to reproduce

Run the given sql in the play ground environment

Additional context

No response

@diqiu50 diqiu50 added the bug Something isn't working label Jun 4, 2024
@diqiu50 diqiu50 self-assigned this Jun 4, 2024
@diqiu50 diqiu50 removed the branch-0.5 label Jun 4, 2024
diqiu50 added a commit that referenced this issue Jun 5, 2024
…3748)

### What changes were proposed in this pull request?

Fix query performance is lower than 0.5 version

### Why are the changes needed?

Fix: #3738 

### Does this PR introduce _any_ user-facing change?

NO

### How was this patch tested?

Manually test
github-actions bot pushed a commit that referenced this issue Jun 5, 2024
…3748)

### What changes were proposed in this pull request?

Fix query performance is lower than 0.5 version

### Why are the changes needed?

Fix: #3738 

### Does this PR introduce _any_ user-facing change?

NO

### How was this patch tested?

Manually test
yuqi1129 pushed a commit that referenced this issue Jun 5, 2024
… version (#3781)

### What changes were proposed in this pull request?

Fix query performance is lower than 0.5 version

### Why are the changes needed?

Fix: #3738 

### Does this PR introduce _any_ user-facing change?

NO

### How was this patch tested?

Manually test

Co-authored-by: Yuhui <[email protected]>
diqiu50 added a commit to diqiu50/gravitino that referenced this issue Jun 13, 2024
…rsion (apache#3748)

### What changes were proposed in this pull request?

Fix query performance is lower than 0.5 version

### Why are the changes needed?

Fix: apache#3738 

### Does this PR introduce _any_ user-facing change?

NO

### How was this patch tested?

Manually test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants