An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
Py4JJavaError in Azure Synapse notebook?
Anuradha Prasad Joshi
0
Reputation points
I am adding code to azure notebooks. I got the following error
Py4JJavaError!
Py4JJavaError Traceback (most recent call last)
Cell In [185], line 9
1 # Define the database and table name
2 # database_name = "default"
3 # table_name = "Contact_History_oncoemr"
(...)
7 # Create or replace the table using the DataFrame
8 # Contact_HistoryDF.write.format("delta").mode("overwrite").saveAsTable("{database_name}.{table_name}")
----> 9 Contact_HistoryDF.write.mode("overwrite").format('delta').saveAsTable("default.Contact_History_oncoemr")
File /opt/spark/python/lib/pyspark.zip/pyspark/sql/readwriter.py:1041, in DataFrameWriter.saveAsTable(self, name, format, mode, partitionBy, **options)
1039 if format is not None:
Azure Synapse Analytics
Azure Synapse Analytics
Sign in to answer