I am trying to write some data to Azure SQL Data Warehouse using Azure Databricks and Python. The code I am using is as follows:
salesdf.write\
.format('com.databricks.spark.sqldw')\
.option('url', sqlDwUrlSmall)\
.option('dbtable', 'StgSales')\
.option( 'forward_spark_azure_storage_credentials','True')\
.option('tempdir', tempDir)\
.mode('overwrite')\
.save()
This method fails without a specific error message. The traceback doesn't make any sense either. I'm pretty sure I have all of the options and format stated correctly but it is still not working.
Not sure, but I think the issue is with syntax. This is what I found in official documentation.
Check .option("forwardSparkAzureStorageCredentials", "true") in your code, it seems you have put (_) underscore.