cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

Using SQL to create delta live tables but column headers from csv have spaces

vanessafvg
New Contributor III

I know this has probably been asked many times, although I have struggled to find the answer using sql

 

CREATE STREAMING LIVE TABLE bronze_site_usage COMMENT "ingest latest snapshot from api"
TBLPROPERTIES ("layer" = "bronze")
AS SELECT * FROM cloud_files("server/url", "csv", map("overwriteschema","true"));
 
however my columns have spaces in them so this has failed.   For the first round of this i actually manually renamed them in the file, and obviously that worked so the table was created...   is there anyway to ignore the schema / first row in the source file completely and just use the schema of the target table using SQL.
 
 
 
 
 
 
0 REPLIES 0

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