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

minor: use defaults instead of hard-coding values #1060

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

andygrove
Copy link
Member

Which issue does this PR close?

N/A

Rationale for this change

In CometSparkSessionExtension we have some hard-coded default values that match the current default values for the relevant configuration options, but these could change over time so it is better to reference the default values in the configuration rather than duplicate the values.

What changes are included in this PR?

  • Remove duplicate default values
  • Remove the redundant text in config descriptions that state the current default value. We already generate documentation that shows the default value.

How are these changes tested?

Comment on lines -1278 to -1279
.byteFromString(sparkConf.get(COMET_MEMORY_OVERHEAD_MIN_MIB.key, "384"), ByteUnit.MiB)
val overheadFactor = sparkConf.getDouble(COMET_MEMORY_OVERHEAD_FACTOR.key, 0.2)
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the main change, to remove these hard-coded defaults.

@andygrove andygrove merged commit aacf45c into apache:main Nov 7, 2024
75 checks passed
@andygrove andygrove deleted the minor-defaults branch November 7, 2024 16:19
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.

2 participants