rok commented on a change in pull request #9606: URL: https://github.com/apache/arrow/pull/9606#discussion_r586896681
########## File path: r/tests/testthat/test-Array.R ########## @@ -727,6 +727,15 @@ test_that("[ accepts Arrays and otherwise handles bad input", { ) }) +test_that("[ %in% looks up string key in dictionary", { + a1 <- Array$create(as.factor(c("A", "B", "C"))) + a2 <- DictionaryArray$create(c(0L, 1L, 2L), c(4.5, 3.2, 1.1)) + arrow:::call_function("is_in_meta_binary", a1, Array$create("B")) + arrow:::call_function("is_in_meta_binary", a1, Array$create("D")) + arrow:::call_function("is_in_meta_binary", a2, Array$create(3.2)) Review comment: I was looking to test for errors but the added check is better. Adding. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org