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

When to use Dataframes API over Spark SQL

parthibsg
New Contributor II

Hello Experts,

I am new to Databricks. Building data pipelines, I have both batch and streaming data.

Should I use Dataframes API to read csv files then convert to parquet format then do the transformation?

or

write to table using CSV then use Spark SQL to do transformation?.

Appreciate pros and cons and which one is better

Thank you

Rathinam

1 REPLY 1

Debayan
Databricks Employee
Databricks Employee

Hi Rathinam, It would be better to understand the pipeline more in this situation. Writing to table using CSV and then using spark SQL will be faster in few cases than the other one.

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