cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I read a specific Delta table part file?

jose_gonzalez
Moderator
Moderator

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
Moderator
Moderator

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
Moderator
Moderator

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.

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.