示例#1
0
def is_before_spark_311():
    return spark_version() < "3.1.1"
示例#2
0
def is_spark_330_or_later():
    return spark_version() >= "3.3.0"
示例#3
0
def is_spark_300():
    return (spark_version() == "3.0.0"
            or spark_version().startswith('3.0.0-amzn'))
示例#4
0
def is_before_spark_330():
    return spark_version() < "3.3.0"
示例#5
0
def is_before_spark_320():
    return spark_version() < "3.2.0"
示例#6
0
def is_spark_300():
    return spark_version() == "3.0.0"
示例#7
0
def is_neg_dec_scale_bug_version():
    return ("3.1.1" <= spark_version() < "3.1.3") or ("3.2.0" <= spark_version() < "3.2.1")
示例#8
0
def is_before_spark_311():
    return (is_databricks_runtime() and spark_version() < "3.1.0") or (not is_databricks_runtime() and spark_version() < "3.1.1")