This is an automated email from the ASF dual-hosted git repository.
gurwls223 pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-3.2 by this push:
new f7ab2bf [SPARK-35811][PYTHON][FOLLOWUP] Deprecate
DataFrame.to_spark_io
f7ab2bf is described below
commit f7ab2bfc8c34af3098d2c2f22eb8572b5a797658
Author: itholic <[email protected]>
AuthorDate: Wed Aug 4 16:20:29 2021 +0900
[SPARK-35811][PYTHON][FOLLOWUP] Deprecate DataFrame.to_spark_io
### What changes were proposed in this pull request?
This PR is followup for https://github.com/apache/spark/pull/32964, to
improve the warning message.
### Why are the changes needed?
To improve the warning message.
### Does this PR introduce _any_ user-facing change?
The warning is changed from "Deprecated in 3.2, Use `spark.to_spark_io`
instead." to "Deprecated in 3.2, Use `DataFrame.spark.to_spark_io` instead."
### How was this patch tested?
Manually run `dev/lint-python`
Closes #33631 from itholic/SPARK-35811-followup.
Authored-by: itholic <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
(cherry picked from commit 3d72c20e64c18e6e10dc862ab19f07342fcdb2d6)
Signed-off-by: Hyukjin Kwon <[email protected]>
---
python/pyspark/pandas/frame.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/pyspark/pandas/frame.py b/python/pyspark/pandas/frame.py
index b1371c1..1833a1a 100644
--- a/python/pyspark/pandas/frame.py
+++ b/python/pyspark/pandas/frame.py
@@ -4808,7 +4808,7 @@ defaultdict(<class 'list'>, {'col..., 'col...})]
.. deprecated:: 3.2.0
Use :func:`DataFrame.spark.to_spark_io` instead.
"""
- warnings.warn("Deprecated in 3.2, Use spark.to_spark_io instead.",
FutureWarning)
+ warnings.warn("Deprecated in 3.2, Use DataFrame.spark.to_spark_io
instead.", FutureWarning)
return self.spark.to_spark_io(path, format, mode, partition_cols,
index_col, **options)
to_spark_io.__doc__ = SparkFrameMethods.to_spark_io.__doc__
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]