[
https://issues.apache.org/jira/browse/SPARK-13585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hyukjin Kwon updated SPARK-13585:
---------------------------------
Labels: bulk-closed (was: )
> addPyFile behavior change between 1.6 and before
> ------------------------------------------------
>
> Key: SPARK-13585
> URL: https://issues.apache.org/jira/browse/SPARK-13585
> Project: Spark
> Issue Type: Bug
> Components: PySpark
> Affects Versions: 1.6.0
> Reporter: Santhosh Gorantla Ramakrishna
> Priority: Minor
> Labels: bulk-closed
>
> addPyFile in earlier versions would remove the .py file if it already
> existed. In 1.6, it throws an exception "__.py exists and does not match
> contents of __.py".
> This might be because the underlying scala code needs an overwrite parameter,
> and this is being defaulted to false when called from python.
> private def copyFile(
> url: String,
> sourceFile: File,
> destFile: File,
> fileOverwrite: Boolean,
> removeSourceFile: Boolean = false): Unit = {
> Would be good if addPyFile takes a parameter to set the overwrite and default
> to false.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]