HyukjinKwon commented on a change in pull request #25993: [DO-NOT-MERGE][R] 
Install Arrow and test Arrow optimization in AppVeyor build
URL: https://github.com/apache/spark/pull/25993#discussion_r330847032
 
 

 ##########
 File path: R/pkg/inst/worker/worker.R
 ##########
 @@ -50,7 +50,7 @@ compute <- function(mode, partition, serializer, 
deserializer, key,
     } else {
       # Check to see if inputData is a valid data.frame
       stopifnot(deserializer == "byte" || deserializer == "arrow")
-      stopifnot(class(inputData) == "data.frame")
+      stopifnot(is.data.frame(inputData))
 
 Review comment:
   In Arrow 0.14, seems `as.data.frame(arrow_batch)` returns non-naive R 
DataFrame ("tbl_df tbl data.frame"). So, direct class comparison doesn't look 
working here.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to