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

    https://github.com/apache/spark/pull/12354#discussion_r59648663
  
    --- Diff: core/src/main/scala/org/apache/spark/rdd/HadoopRDD.scala ---
    @@ -220,8 +220,8 @@ class HadoopRDD[K, V](
     
           // Sets the thread local variable for the file's name
           split.inputSplit.value match {
    -        case fs: FileSplit => 
SqlNewHadoopRDDState.setInputFileName(fs.getPath.toString)
    -        case _ => SqlNewHadoopRDDState.unsetInputFileName()
    +        case fs: FileSplit => 
FileScanRDDState.setInputFileName(fs.getPath.toString)
    --- End diff --
    
    I see. This is used in 
https://github.com/apache/spark/blob/d6dc12ef0146ae409834c78737c116050961f350/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/InputFileName.scala
 during code generation.
    
    Should I remove the change of file name?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to