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: 

How can I read a specific Delta table part file?

jose_gonzalez
Databricks Employee
Databricks Employee

is there a way to read a specific part off a delta table? When I try to read the parquet file as 

parquet I get an error in the notebook that I’m using the incorrect format as it’s part of a delta table. I just want to read a single Parquet file, not the whole Delta table

1 ACCEPTED SOLUTION

Accepted Solutions

jose_gonzalez
Databricks Employee
Databricks Employee

Disable Delta format to read as Parquet you need to set to false the following Spark settings:

>> SET spark.databricks.delta.formatCheck.enabled=false

OR

>> spark.conf.set("spark.databricks.delta.formatCheck.enabled", "false")

its not recommended to read the delta table directory using the read.parquet because the delta table directory can always possibly have in-active files which are to be cleaned up by vacuum.

View solution in original post

1 REPLY 1

jose_gonzalez
Databricks Employee
Databricks Employee

Disable Delta format to read as Parquet you need to set to false the following Spark settings:

>> SET spark.databricks.delta.formatCheck.enabled=false

OR

>> spark.conf.set("spark.databricks.delta.formatCheck.enabled", "false")

its not recommended to read the delta table directory using the read.parquet because the delta table directory can always possibly have in-active files which are to be cleaned up by vacuum.

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