New to databricks and spark, I'm trying to run the below command and met this error
spark.databricks.delta.retentionDurationCheck.enabled= "false"
error: 'SparkSession' object has no attribute 'databricks'
New to databricks and spark, I'm trying to run the below command and met this error
spark.databricks.delta.retentionDurationCheck.enabled= "false"
error: 'SparkSession' object has no attribute 'databricks'
It should be as sql
spark.sql("SET spark.databricks.delta.retentionDurationCheck.enabled=false")
Or put it in as spark Conf
property