cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Create table using a location

vvt1976
New Contributor

Hi,

Databricks newbie here. I have copied delta files from my Synapse workspace into DBFS. To add them as a table, I executed.
create table audit_payload using delta location '/dbfs/FileStore/data/general/audit_payload'

The command executed properly. However, the SELECT on the table gives
[DELTA_READ_TABLE_WITHOUT_COLUMNS] You are trying to read a Delta table `spark_catalog`.`default`.`audit_payload` that does not have any columns.

How can I bring the table with all the column mapping

 

 

 
1 REPLY 1

-werners-
Esteemed Contributor III

can you read the delta lake files using spark.read.format("delta").load("path/to/delta/table")?
If not, it is not a valid delta lake table, which is my guess as creating a table from delta lake is nothing more than a semantic wrapper around the actual files.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group