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

Converting from RDD to Dataset, and unit test takes 3x slower. (but prod is faster)

tanin
Contributor

I converted a data job fro RDD to Dataset, and I've found that, in prod, the data job runs faster, which is nice.

But unit test runs 3x slower than before.

My best guess is that Dataset spends time doing a lot of stuffs like encoding, optimizing, querying planning.

I wonder if there's a way to disable most of this in unit test since all of these don't matter in a local test.

Alternatively, is there a way to cache the plan, so it doesn't need to be recomputed on each test?

Thank you!

0 REPLIES 0

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