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

Add doctest for ArrayBuilder #367

Merged
merged 1 commit into from
May 29, 2021

Conversation

alippai
Copy link
Contributor

@alippai alippai commented May 25, 2021

Which issue does this PR close?

Closes #366.

Rationale for this change

Increasing the docs coverage.

What changes are included in this PR?

A doctest for creating a Vec of ArrayBuilders in order to get a Vec of ArrayRefs

Are there any user-facing changes?

No. Docs added. It's a non-breaking change.

@codecov-commenter
Copy link

Codecov Report

Merging #367 (362064d) into master (488f826) will increase coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #367      +/-   ##
==========================================
+ Coverage   82.56%   82.60%   +0.04%     
==========================================
  Files         162      162              
  Lines       44063    44175     +112     
==========================================
+ Hits        36379    36490     +111     
- Misses       7684     7685       +1     
Impacted Files Coverage Δ
arrow/src/array/builder.rs 85.29% <ø> (ø)
parquet/src/encodings/encoding.rs 94.85% <0.00%> (-0.20%) ⬇️
parquet/src/column/writer.rs 93.29% <0.00%> (ø)
parquet/src/arrow/arrow_writer.rs 98.11% <0.00%> (+0.03%) ⬆️
arrow/src/csv/reader.rs 89.91% <0.00%> (+1.54%) ⬆️
arrow/src/array/transform/boolean.rs 84.61% <0.00%> (+7.69%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 488f826...362064d. Read the comment docs.

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you @alippai 👍

/// .downcast_ref::<StringArray>()
/// .unwrap()
/// .value(0),
/// "🍎"
Copy link
Contributor

Choose a reason for hiding this comment

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

👌

@alamb
Copy link
Contributor

alamb commented May 29, 2021

The MIRI failure is unrelated to the content of this PR (we disabled it until we can figure out why it is failing intermittently)

@alamb alamb merged commit 4ff2e56 into apache:master May 29, 2021
alamb pushed a commit that referenced this pull request Jun 4, 2021
alamb added a commit that referenced this pull request Jun 5, 2021
Co-authored-by: Ádám Lippai <adam@rigo.sk>
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.

Doctest for ArrayBuilder
4 participants