cancel
Showing results for 
Search instead for 
Did you mean: 
Databricks Free Edition Help
Engage in discussions about the Databricks Free Edition within the Databricks Community. Share insights, tips, and best practices for getting started, troubleshooting issues, and maximizing the value of your trial experience to explore Databricks' capabilities effectively.
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to Create a pipeline in order to populate a table with Auto Loader

Rafa3loneil
New Contributor II

Hello,

I'm new to using Databricks Free Edition and I'm following the Data Ingestion with Lakeflow Connection training track. Since I'm using the free version, I don't have access to the available lab resources.

In the Auto Loader training step, I've already imported a similar CSV file into my directory, but I'm having trouble creating my Delta Live Table.

When I run the command below on my notebook:

CREATE OR REFRESH STREAMING TABLE sql_csv_autoloader SCHEDULE EVERY 1 WEEK AS SELECT * FROM STREAM read_files( '/Volumes/workspace/default/dbacademy_ecommerce/csv_files_autoloader_source', FORMAT => 'csv', SEP => ';', HEADER => true );

I get the following error:So I went to the documentation for help with this problem and I understood that I need to create a pipeline, but how to create it and when I should execute this SQL command is not clear.
My perception is that the documentation is outdated or I'm looking in the wrong place

https://docs.databricks.com/aws/en/ldp/developer/ldp-sql-ref-create-streaming-table

can someone help me?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

szymon_dybczak
Esteemed Contributor III

Hi @pradeep_singh ,

Based on screenshot @Rafa3loneil  provided - he already done this. I think the main issue here is that he tried to execute a SDP code as a regular notebook cell (1). Instead he need to intialize pipeline using "Run Pipeline" button (2.)

szymon_dybczak_0-1769939633667.png

 

View solution in original post

4 REPLIES 4

szymon_dybczak
Esteemed Contributor III

In declarative pipelines you don't run cells in the notebook. Try to use run pipeline button 

pradeep_singh
Contributor III

If you havent already .
Below Catalog option of left hand side select Jobs and pipelines 

Select Create a new pipeline 

Point this pipeline to source from this notebook . 

Run the pipeline . 

Thsi is how you run a SDP code 

Thank You
Pradeep Singh - https://www.linkedin.com/in/dbxdev

szymon_dybczak
Esteemed Contributor III

Hi @pradeep_singh ,

Based on screenshot @Rafa3loneil  provided - he already done this. I think the main issue here is that he tried to execute a SDP code as a regular notebook cell (1). Instead he need to intialize pipeline using "Run Pipeline" button (2.)

szymon_dybczak_0-1769939633667.png

 

Got it . Thanks for clarifying . I guess i missed the details 😀

Thank You
Pradeep Singh - https://www.linkedin.com/in/dbxdev