cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Get Started Discussions
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

DLT SQL demo pipeline issue

Frustrated_DE
New Contributor II

Hi,

   First foray into DLT and following code exerts from the sample-DLT-notebook.

I'm creating a notebook with the SQL below:

CREATE STREAMING LIVE TABLE sales_orders_raw
COMMENT "The raw sales orders, ingested from /databricks-datasets."
TBLPROPERTIES ("myCompanyPipeline.quality" = "bronze")
AS
SELECT * FROM cloud_files("/databricks-datasets/retail-org/sales_orders/", "json", map("cloudFiles.inferColumnTypes", "true"))

I then reference this in my DLT pipeline but it fails on initialising with a syntax error (pic attached). Can anyone assist? Appreciate it says python and I'm using SQL but thought the pipeline transposed as magic commands aren't permitted in notebook being called in DLT pipe.

1 REPLY 1

Frustrated_DE
New Contributor II

If you change the notebook default language as opposed to using magic command. I normally have it set to Python, I've wrongly assumed DLT would transpose as can't use magic command but have to change default in order for it to work. 

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.