Github user steveloughran commented on the issue:

    https://github.com/apache/spark/pull/17120
  
    -1, non binding
    
    I understand the rationale for this, to aid migration from s3/s3n to s3a, 
but given the need is schema independence, you should be using the full path 
name from `Path.getUri().getPath()` instead of getName(), which means only the 
filename is checked.
    
    match only on name and the two files
    ```
    s3a://bucket/incoming/dataset.avro
    s3a://bucket/2015/12/dataset.avro
    ```
    will be mistaken for the same file, even when they aren't. If this scenario 
arises then someone will end up fielding support calls about missing data, or 
worse, incorrect query results.
    
    If you use the full path, that problem goes away and the filtering is only 
on schema and filesystem/bucket 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