You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 04:21:12 UTC
[jira] [Updated] (SPARK-13585) addPyFile behavior change between
1.6 and before
[ 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org