[ 
https://issues.apache.org/jira/browse/SPARK-19715?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15883642#comment-15883642
 ] 

Michael Armbrust commented on SPARK-19715:
------------------------------------------

This isn't a hypothetical.  A user of structured streaming upgraded to {{s3a}} 
and was surprised to see duplicate computation in the results.  Their files are 
named with a combination of upload time and a GUID, so I don't think there is 
any risk for this use case.  That said, I would not make this option the 
default.

> Option to Strip Paths in FileSource
> -----------------------------------
>
>                 Key: SPARK-19715
>                 URL: https://issues.apache.org/jira/browse/SPARK-19715
>             Project: Spark
>          Issue Type: New Feature
>          Components: Structured Streaming
>    Affects Versions: 2.1.0
>            Reporter: Michael Armbrust
>
> Today, we compare the whole path when deciding if a file is new in the 
> FileSource for structured streaming.  However, this cause cause false 
> negatives in the case where the path has changed in a cosmetic way (i.e. 
> changing s3n to s3a).  We should add an option {{fileNameOnly}} that causes 
> the new file check to be based only on the filename (but still store the 
> whole path in the log).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to