Skip to content

ARROW-6364: [R] Handling unexpected input to time64() et al: - #5201

Closed
nealrichardson wants to merge 1 commit into
apache:masterfrom
nealrichardson:time-unit-validation
Closed

ARROW-6364: [R] Handling unexpected input to time64() et al:#5201
nealrichardson wants to merge 1 commit into
apache:masterfrom
nealrichardson:time-unit-validation

Conversation

@nealrichardson

Copy link
Copy Markdown
Member

This PR is based on #5198 (ARROW-6338) and is just one commit beyond that patch: 87209fb

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #5201 into master will decrease coverage by 13.21%.
The diff coverage is 87.8%.

Impacted file tree graph

@@ Coverage Diff @@## master #5201 +/- ##
===========================================
- Coverage 88.69% 75.47% -13.22% 
===========================================
Files 934 57 -877 Lines 121092 3649 -117443 Branches 1437 0 -1437 ===========================================
- Hits 107399 2754 -104645 + Misses 13331 895 -12436 + Partials 362 0 -362
Impacted FilesCoverage Δ
r/R/feather.R65.11% <ø> (ø)⬆️
r/R/Table.R88% <ø> (ø)⬆️
r/R/csv.R97.36% <ø> (ø)⬆️
r/R/parquet.R73.07% <ø> (ø)⬆️
r/R/Column.R0% <ø> (ø)⬆️
r/R/RecordBatch.R96.29% <ø> (ø)⬆️
r/R/Struct.R100% <ø> (ø)⬆️
r/R/compression.R92.3% <ø> (ø)⬆️
r/R/RecordBatchWriter.R70% <ø> (ø)⬆️
r/R/ArrayData.R20% <ø> (ø)⬆️
... and 892 more

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 c9bd6d7...87209fb. Read the comment docs.

@pitrou

Copy link
Copy Markdown
Member

@nealrichardson You'll need to rebase and fix conflicts.

@nealrichardson

Copy link
Copy Markdown
MemberAuthor

Rebased

Comment threadr/R/type.R
# Allow non-integer input for convenience
unit <- as.integer(unit)
} else {
stop('"unit" should be one of ', oxford_paste(names(valid_units), "or"), call.=FALSE)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is there a non-Oxford paste? :-)

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Not for me ;)

(paste() is the vectorized R string concatenation function)

@pitrou

Copy link
Copy Markdown
Member

@pitroupitrou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1. Trusting @nealrichardson on this.

kou pushed a commit that referenced this pull request Feb 20, 2023
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.

3 participants

@nealrichardson@codecov-io@pitrou