Skip to content

#76 add spark.sql.shuffle.partitions to DefaultSparkConfiguration#77

Merged
Zejnilovic merged 2 commits intomasterfrom
feature/76-optimize-spark-test-base
Jan 12, 2023
Merged

#76 add spark.sql.shuffle.partitions to DefaultSparkConfiguration#77
Zejnilovic merged 2 commits intomasterfrom
feature/76-optimize-spark-test-base

Conversation

@Zejnilovic
Copy link
Contributor

Closes #76

The default of spark.sql.shuffle.partitions is 200. This commit
sets it in the default testbase to 1.
@Zejnilovic Zejnilovic requested a review from lsulak as a code owner January 12, 2023 10:07
@Zejnilovic Zejnilovic requested review from benedeki and dk1844 January 12, 2023 10:08
Copy link
Collaborator

@lsulak lsulak left a comment

Choose a reason for hiding this comment

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

Of course, it makes sense.

I just read the code, not pulled/compiled/ran tests since this is a very small change code-wise.

* @dk1844
* @benedeki
* @lsulak
* @Zejnilovic @dk1844 @benedeki @lsulak
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this change? Seems to me one person per line is easier to navigate. 🤔

Copy link
Contributor Author

@Zejnilovic Zejnilovic Jan 12, 2023

Choose a reason for hiding this comment

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

Because it is syntactically wrong, it is a rule per line. Meaning that this is read as

  • Owner of everything is Zejnilovic
  • Owner of everything is dk1844
  • Owner of everything is benedeki
  • Owner of everything is lsulak

And the rules are overwriting each other, with the latest rule having priority. So @lsulak being the only code owner.

This is nice for custom rules but not for * rules.

Example of a smidge more complex CODEOWNERS

# Everything is owned by all of these guys
* @Zejnilovic @dk1844 @benedeki @lsulak

# Except for this, the test part is owned by miroslavpojer
spark-commons-test/* @miroslavpojer

Docs here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

See the current state of this PR. Only lsulak is owner having the little shield next to his name.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the explanation 🙇

Copy link
Contributor

@dk1844 dk1844 left a comment

Choose a reason for hiding this comment

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

LGTM (just read the code)

@Zejnilovic Zejnilovic merged commit 621a387 into master Jan 12, 2023
@Zejnilovic Zejnilovic deleted the feature/76-optimize-spark-test-base branch January 12, 2023 16:03
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.

Add spark.sql.shuffle.partitions setting to the DefaultSparkConfiguration

4 participants