Skip to content

[SPARK-43380][SQL][Follow-up] Fix slowdown in Avro read#43606

Closed
zeruibao wants to merge 3 commits intoapache:masterfrom
zeruibao:SPARK-43380-FIX-SLOWDOWN
Closed

[SPARK-43380][SQL][Follow-up] Fix slowdown in Avro read#43606
zeruibao wants to merge 3 commits intoapache:masterfrom
zeruibao:SPARK-43380-FIX-SLOWDOWN

Conversation

@zeruibao
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Fix slowdown in Avro read. There is a #42503 that causes the performance regression. It seems that SQLConf.get.getConf(confKey) is very costly. Move it out of newWriter function.

Why are the changes needed?

Need to fix the performance regression of Avro read.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Existing UT test

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

No

Copy link
Copy Markdown
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.

+1, LGTM.

@zeruibao
Copy link
Copy Markdown
Contributor Author

Hi @gengliangwang and @dongjoon-hyun, all avro related tests have passed. Should be good to merge now haha.

@gengliangwang
Copy link
Copy Markdown
Member

Thanks,merging to master/branch-3.5

gengliangwang pushed a commit that referenced this pull request Oct 31, 2023
### What changes were proposed in this pull request?
Fix slowdown in Avro read. There is a #42503 that causes the performance regression. It seems that `SQLConf.get.getConf(confKey)` is very costly. Move it out of `newWriter` function.

### Why are the changes needed?
Need to fix the performance regression of Avro read.

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

### How was this patch tested?
Existing UT test

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

Closes #43606 from zeruibao/SPARK-43380-FIX-SLOWDOWN.

Authored-by: zeruibao <zerui.bao@databricks.com>
Signed-off-by: Gengliang Wang <gengliang@apache.org>
(cherry picked from commit 45f73bc)
Signed-off-by: Gengliang Wang <gengliang@apache.org>
Copy link
Copy Markdown
Contributor

@beliefer beliefer left a comment

Choose a reason for hiding this comment

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

LGTM later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants