same issue, the external Parquet table works just fine, but Delta table not working
Error when attempting to select * from Apache Spark table in the synapse SQL pool
According to documentation I should be able to query the spark tables without any additional setup.
However, this keeps failing for me.
I created table in spark with df.write.format("delta").saveAsTable(table)
and can query this fine in notebook.
When running on dedicated SQL pool
SELECT TOP (100) * FROM sparkdb.dbo.table
Error: Reference to database and/or server name in 'sparkdb.dbo.table' is not supported in this version of SQL Server.
When running on built-in
SELECT TOP (100) * FROM sparkdb.dbo.table
Error is: Invalid object name 'sparkdb.dbo.table'.
Azure Synapse Analytics
3 answers
Sort by: Most helpful
-
-
Stephen Connell 21 Reputation points
2021-11-22T08:33:00.917+00:00 I get the same error.
I used this statement from the samples:
spark.sql("CREATE TABLE ExternalDeltaTable2 USING DELTA LOCATION '{0}'".format(delta_table_path))
I have other parquet scripts that allow me to query the result but for all Delta I get similar to Invalid object name 'default.dbo.externaldeltatable2'.
-
Kristof De Middelaer 1 Reputation point
2022-05-06T12:37:26.22+00:00 Is it confirmed that this indeed does not work with Delta format? Is it known if support is going to be added?