Github user jkbradley commented on a diff in the pull request: https://github.com/apache/spark/pull/21153#discussion_r185262870 --- Diff: python/pyspark/util.py --- @@ -61,6 +62,26 @@ def _get_argspec(f): return argspec +def majorMinorVersion(version): --- End diff -- Yes please, a few things: * throw exception when unable to parse * make it a static method of a class pyspark.util.VersionUtils * add unit test
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org