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:ย 

Does DLT use one single SparkSession?

Alex006
Contributor

Hi! 

Does DLT use one single SparkSession for all notebooks in a Delta Live Tables Pipeline?

1 ACCEPTED SOLUTION

Accepted Solutions

Kaniz
Community Manager
Community Manager

Hi @Alex006 , No, a Delta Live Tables (DLT) pipeline does not use a single SparkSession for all notebooks. DLT evaluates and runs all code defined in notebooks but has a different execution model than a notebook 'Run all' command. You cannot rely on the cell-by-cell execution ordering of notebooks when writing Python for DLT.

View solution in original post

1 REPLY 1

Kaniz
Community Manager
Community Manager

Hi @Alex006 , No, a Delta Live Tables (DLT) pipeline does not use a single SparkSession for all notebooks. DLT evaluates and runs all code defined in notebooks but has a different execution model than a notebook 'Run all' command. You cannot rely on the cell-by-cell execution ordering of notebooks when writing Python for DLT.