thisisnic edited a comment on pull request #11105: URL: https://github.com/apache/arrow/pull/11105#issuecomment-921279899
> behavior of the %S flag is different in arrow So, the R "%S" returns an integer, so you're right in highlighting the difference between Arrow and R. We have other time-related functions which return slightly different values, which we allow for, e.g. https://github.com/apache/arrow/blob/5260fd5970d34c62e0ae7680f606b29eab56d96b/r/tests/testthat/test-dplyr-lubridate.R#L155-L164 The function `expect_dplyr_equal()`, as you've pointed out, won't work on Array objects. However, you could write a test like the one shown above, which just adds a tolerance (given that the user is being returned a *more* precise answer than they would have, the tolerance is justified). I suppose the difficulty lies in the fact that the output is a string not a number, but there will be workarounds. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
