Shane Torgerson
01/23/2023, 3:32 PMJosephK (exDatabricks)
01/23/2023, 3:33 PMShane Torgerson
01/23/2023, 3:34 PMJosephK (exDatabricks)
01/23/2023, 3:35 PMShane Torgerson
01/23/2023, 3:41 PMJosephK (exDatabricks)
01/23/2023, 4:20 PMpath
instead of the table name and avoid the metastorespark.sql("""ALTER TABLE delta.`path` SET TBLPROPERTIES (delta.enableChangeDataFeed = true)""")
Shane Torgerson
01/23/2023, 9:04 PMds.write().format("delta").option("delta.enableChangeDataFeed",true).mode(SaveMode.Overwrite).save(path)
import io.delta.tables.DeltaTable
DeltaTable.createOrReplace(spark)
.tableName("foo")
.addColumn("bar","STRING")
.addColumn("baz","STRING")
.property("delta.enableChangeDataFeed","true")
.location(path)
.execute()
Kashyap Bhatt
01/23/2023, 9:30 PMCREATE TABLE ... TBLPROPERTIES (delta.enableChangeDataFeed = true)
) and the way to do that in python is DeltaTable....property("delta.enableChangeDataFeed","true")
.
But I also share the general gripe that many many pages only show SQL examples when you're dying to get the python equivalent.