HyukjinKwon commented on a change in pull request #32709:
URL: https://github.com/apache/spark/pull/32709#discussion_r642458108



##########
File path: R/pkg/tests/fulltests/test_sparkSQL.R
##########
@@ -1451,7 +1451,7 @@ test_that("column functions", {
   expect_equal(collect(df2)[[3, 2]], TRUE)
 
   # Test that input_file_name()
-  actual_names <- sort(collect(distinct(select(df, input_file_name()))))

Review comment:
       It was sorting a DataFrame in R which isn't legitimate. In addition, 
there's no point of sorting. It's a single value single column DataFrame.
   
   ```
                                                                                
          input_file_name()
   1 
file:///private/var/folders/0c/q8y15ybd3tn7sr2_jmbmftr80000gp/T/RtmpwPkEnu/sparkr-testf2872350813d.tmp
   ```




-- 
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



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to