Skip to content

[SPARK-20891][SQL] Reduce duplicate code typedaggregators.scala - #18125

Closed
rubenljanssen wants to merge 2 commits into
apache:masterfrom
rubenljanssen:spark-20891
Closed

[SPARK-20891][SQL] Reduce duplicate code typedaggregators.scala#18125
rubenljanssen wants to merge 2 commits into
apache:masterfrom
rubenljanssen:spark-20891

Conversation

@rubenljanssen

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

The aggregators in typedaggregators.scala were polluted with duplicate code, which only different in type. I have extracted the duplicate code in a parent class, and have allowed the child classes to specify the type.

How was this patch tested?

unit tests are already in place in DatasetAggregatorSuite.scala

@gatorsmile

Copy link
Copy Markdown
Member

ok to test

@gatorsmile

Copy link
Copy Markdown
Member

@setjet Could you address the conflicts?

@SparkQA

Copy link
Copy Markdown

Test build #82998 has finished for PR 18125 at commit a33ea0d.

  • This patch fails MiMa tests.
  • This patch does not merge cleanly.
  • This patch adds no public classes.

@AmplabJenkins

Copy link
Copy Markdown

Can one of the admins verify this patch?

@HyukjinKwonHyukjinKwon mentioned this pull request Jul 16, 2018
zifeif2 pushed a commit to zifeif2/spark that referenced this pull request Nov 22, 2025
Sign up for freeto 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.

4 participants

@rubenljanssen@gatorsmile@SparkQA@AmplabJenkins