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

    https://github.com/apache/spark/pull/22676#discussion_r223741951
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/csv/CSVDataSource.scala
 ---
    @@ -251,7 +125,7 @@ object TextInputCSVDataSource extends CSVDataSource {
         maybeFirstLine.map(csvParser.parseLine(_)) match {
           case Some(firstRow) if firstRow != null =>
             val caseSensitive = 
sparkSession.sessionState.conf.caseSensitiveAnalysis
    -        val header = makeSafeHeader(firstRow, caseSensitive, parsedOptions)
    +        val header = CSVUtils.makeSafeHeader(firstRow, caseSensitive, 
parsedOptions)
    --- End diff --
    
    What about to import it from `CSVUtils`? What is the reason to have the 
prefix here?


---

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

Reply via email to