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

Difference between libraries dlt and dp

yit
Contributor

In all Databricks documentation, the examples use import dlt to create streaming tables and views. But, when generating sample Python code in ETL pipeline, the import in the sample is:

import pyspark import pipelines as dp

Which one is the correct library? Are there significant differences between these two?

I could not find any comparison between these two.

2 REPLIES 2

szymon_dybczak
Esteemed Contributor III

Hi @yit ,

Basically, they are the same thing. Not so long ago,  they renamed DLT (Delta Live Tables) to Lakeflow Declartive Pipelines. So I think from now on in all materials you will see new name for this library: pipelines (instead of dlt)

 guess they didn't managed to change old name in all their docs yet, so you can see here and there old name for that library.

nayan_wylde
Honored Contributor III

@yit Functionally, they are equivalent concepts (declarative definitions for streaming tables, materialized views, expectations, CDC, etc.). The differences youโ€™ll notice are mostly naming/ergonomics:

Module name:
Databricks docs & most existing notebooks: import dlt

https://docs.databricks.com/aws/en/dlt/python-dev


Spark guide & some generated samples: from pyspark import pipelines as dp


https://spark.apache.org/docs/_site/declarative-pipelines-programming-guide.html

 

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now