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

[SPARK-47085][SQL][3.5] reduce the complexity of toTRowSet from n^2 to n #45165

Closed
wants to merge 1 commit into from

Conversation

igreenfield
Copy link

What changes were proposed in this pull request?

reduce the complexity of RowSetUtils.toTRowSet from n^2 to n

Why are the changes needed?

This causes performance issues.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Tests + test manually on AWS EMR

Was this patch authored or co-authored using generative AI tooling?

No

@LuciferYang LuciferYang changed the title [SPARK-47085][SQL] reduce the complexity of toTRowSet from n^2 to n [SPARK-47085][SQL][3.5] reduce the complexity of toTRowSet from n^2 to n Feb 19, 2024
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @igreenfield and @yaooqinn .

This could be a good improvement. However, Apache Spark community has a backporting policy which allows a bug-fix only.

Screenshot 2024-02-19 at 10 59 16

If you really want to backport this, please change the issue type to BUG and provide some background why this is a regression at Apache Spark 3.4.0.

@igreenfield
Copy link
Author

Hi @dongjoon-hyun
this is for 3.5 ....

@dongjoon-hyun
Copy link
Member

Hi @dongjoon-hyun this is for 3.5 ....

Hi, @igreenfield . This looks like a pure performance improvement. As I mentioned before, Apache Spark community has a backporting policy which allows a bug-fix only.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the detail. According to the updated info, SPARK-39041 causes this regression at Apache Spark 3.4.0.

+1, LGTM.

dongjoon-hyun pushed a commit that referenced this pull request Feb 20, 2024
### What changes were proposed in this pull request?
reduce the complexity of RowSetUtils.toTRowSet from n^2 to n

### Why are the changes needed?
This causes performance issues.

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

### How was this patch tested?
Tests + test manually on AWS EMR

### Was this patch authored or co-authored using generative AI tooling?
No

Closes #45165 from igreenfield/branch-3.5.

Authored-by: Izek Greenfield <izek.greenfield@adenza.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
@dongjoon-hyun
Copy link
Member

Merged to branch-3.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants