I have a streaming data incoming which I am saving as a deltalake table using the below code:
cast_dataframe.writeStream.format("delta").outputMode("append")
.option("checkpointLocation",checkpointLocation)
.table(databasename+"."+tablename)
Here database is the name of database and tablename is the name of table used to create the table.
When i use show create the table to show the schema of a table, the location field is pointing to a random location something like this abfs://storageaccount@storageaccount.dfs.core.net/default/db_name/table_name. I however want to point the location to my specified location. How can I do that ?
I have tried the below approach but it didn't work.
cast_dataframe.writeStream.format("delta").outputMode("append")
.option("checkpointLocation",checkpointLocation)
.table(databasename+"."+tablename)
.save(my_specified_location)
But the approach above doesn't work. Please help me up with this.