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: Improve docstrings on WriterPropertiesBuilder #3068

Merged
merged 1 commit into from
Nov 9, 2022

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Nov 9, 2022

Which issue does this PR close?

N/A

Rationale for this change

Even though the docs did mention the fact that the limits were a function of the write batch size, I think both @Ted-Jiang and I missed the subtlety initially. See conversation on apache/datafusion#4131 (comment)

What changes are included in this PR?

Add some additional commentary on write batch size docs as well as backlinks from other limits

Are there any user-facing changes?

Only docstrings

@github-actions github-actions bot added the parquet Changes to the parquet crate label Nov 9, 2022
/// Sets write batch size
/// Sets write batch size.
///
/// For performance reasons, data for each column is written in
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am pretty sure this is accurate but it would be nice for someone else to confirm

Copy link
Contributor

Choose a reason for hiding this comment

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

Its accurate

Copy link
Member

Choose a reason for hiding this comment

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

Verified it by looking at the related code and this is accurate.

@@ -306,38 +306,46 @@ impl WriterPropertiesBuilder {
self
}

/// Sets best effort maximum size of a data page in bytes
/// Sets best effort maximum size of a data page in bytes.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added . as well to make the docstrings for these properties consistent with the others in this file

@tustvold tustvold merged commit e4e15f8 into apache:master Nov 9, 2022
@ursabot
Copy link

ursabot commented Nov 9, 2022

Benchmark runs are scheduled for baseline = 5a3ecc2 and contender = e4e15f8. e4e15f8 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Skipped ⚠️ Benchmarking of arrow-rs-commits is not supported on ec2-t3-xlarge-us-east-2] ec2-t3-xlarge-us-east-2
[Skipped ⚠️ Benchmarking of arrow-rs-commits is not supported on test-mac-arm] test-mac-arm
[Skipped ⚠️ Benchmarking of arrow-rs-commits is not supported on ursa-i9-9960x] ursa-i9-9960x
[Skipped ⚠️ Benchmarking of arrow-rs-commits is not supported on ursa-thinkcentre-m75q] ursa-thinkcentre-m75q
Buildkite builds:
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

@Ted-Jiang
Copy link
Member

@alamb Thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parquet Changes to the parquet crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants