HyukjinKwon opened a new pull request #26335: [SPARK-29668][PYTHON] Add a 
deprecation warning for Python 3.4 and 3.5
URL: https://github.com/apache/spark/pull/26335
 
 
   ### What changes were proposed in this pull request?
   
   This PR proposes to show a warning for deprecated Python 3.4 and 3.5 in 
Pyspark.
   
   ### Why are the changes needed?
   
   It's officially deprecated.
   
   ### Does this PR introduce any user-facing change?
   
   Yes, it shows a warning message for Python 3.4 and 3.5:
   
   ```
   ...
   Using Spark's default log4j profile: 
org/apache/spark/log4j-defaults.properties
   Setting default log level to "WARN".
   To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use 
setLogLevel(newLevel).
   /.../spark/python/pyspark/context.py:220: DeprecationWarning: Support for 
Python 2 and Python 3 prior to version 3.6 is deprecated as of Spark 3.0. See 
also the plan for dropping Python 2 support at 
https://spark.apache.org/news/plan-for-dropping-python-2-support.html.
     DeprecationWarning)
   ...
   ```
   
   ### How was this patch tested?
   
   Manually tested.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to