Skip to content

[R] Handling unexpected input to time64() et al #22738

Description

@asfimport
> time64()
Errorin Time64__initialize(unit) :argument"unit"ismissing, withnodefault> time64("ms")
Errorin Time64__initialize(unit) :Notcompatiblewithrequestedtype: [type=character; target=integer].> time64(1)
WARNING:Loggingbefore InitGoogleLogging() iswrittentoSTDERRF082611:13:34.657388162407872type.cc:234] Checkfailed:unit==TimeUnit::MICRO||unit==TimeUnit::NANOMustbemicrosecondsornanoseconds***Checkfailurestacktrace:***Aborttrap:6> time64(1L)
WARNING:Loggingbefore InitGoogleLogging() iswrittentoSTDERRF082611:14:09.445202251229632type.cc:234] Checkfailed:unit==TimeUnit::MICRO||unit==TimeUnit::NANOMustbemicrosecondsornanoseconds***Checkfailurestacktrace:***Aborttrap:6> time64("MILLI")
Errorin Time64__initialize(unit) :Notcompatiblewithrequestedtype: [type=character; target=integer].> time64(TimeUnit$MILLI)
WARNING:Loggingbefore InitGoogleLogging() iswrittentoSTDERRF082611:15:12.047847361547200type.cc:234] Checkfailed:unit==TimeUnit::MICRO||unit==TimeUnit::NANOMustbemicrosecondsornanoseconds***Checkfailurestacktrace:***Aborttrap:6

Reporter: Neal Richardson / @nealrichardson
Assignee: Neal Richardson / @nealrichardson

PRs and other links:

Note: This issue was originally created as ARROW-6364. Please see the migration documentation for further details.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions