Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Returns the Spark version. The string contains 2 fields, the first being a release version and the second being a git revision.
Syntax
from pyspark.sql import functions as sf
sf.version()
Examples
Example 1: Get Spark version
from pyspark.sql import functions as sf
spark.range(1).select(sf.version()).show(truncate=False)
+----------------------------------------------+
|version() |
+----------------------------------------------+
|4.0.0 4f8d1f575e99aeef8990c63a9614af0fc5479330|
+----------------------------------------------+