Github user MaxGekk commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20959#discussion_r180981947
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/csv/CSVSuite.scala
 ---
    @@ -1279,4 +1278,64 @@ class CSVSuite extends QueryTest with 
SharedSQLContext with SQLTestUtils {
           Row("0,2013-111-11 12:13:14") :: Row(null) :: Nil
         )
       }
    +
    +  val sampledTestData = (row: Row) => {
    --- End diff --
    
    I have to define it as `val` because `def` contains a reference to outer 
class `CSVSuite` and the lambda inside of `map(...)` becomes not serializable.


---

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

Reply via email to