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

    https://github.com/apache/spark/pull/8547#discussion_r38391122
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/sources/interfaces.scala ---
    @@ -436,7 +436,8 @@ abstract class HadoopFsRelation 
private[sql](maybePartitionSpec: Option[Partitio
               Try(fs.listStatus(qualified)).getOrElse(Array.empty)
             }.filterNot { status =>
               val name = status.getPath.getName
    -          name.toLowerCase == "_temporary" || name.startsWith(".")
    +          // Is it safe to replace "_temporary" to "_"?
    --- End diff --
    
    Thanks for the comments. It seems there is a lot of corner cases to be 
covered from the test case. for example 1st is valid, but 2nd is not: 
    1st:
          "hdfs://host:9000/path/_temporary",
          "hdfs://host:9000/path/a=10/b=20",
          "hdfs://host:9000/path/_temporary/path",
    2nd:
          "hdfs://host:9000/path/_temporary",
          "hdfs://host:9000/path/a=10/b=20",
          "hdfs://host:9000/path/path1",
    Adding an PartitionValues.empty does not solve the problem. Will close this 
PR, and investigate other approaches.


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