def is_before_spark_311(): return spark_version() < "3.1.1"
def is_spark_330_or_later(): return spark_version() >= "3.3.0"
def is_spark_300(): return (spark_version() == "3.0.0" or spark_version().startswith('3.0.0-amzn'))
def is_before_spark_330(): return spark_version() < "3.3.0"
def is_before_spark_320(): return spark_version() < "3.2.0"
def is_spark_300(): return spark_version() == "3.0.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")
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")