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: 

Comparing two SQL notebooks from different Environments

AtulMathur
Visitor

Hello Everyone,

I am part of data testing team which is responsible to verify data trends and insights generated from different sources. There are multiple schemas and tables in our platform. We use SQL queries in notebooks to verify all enrichment, mappings and aggregation tests. Before we go live in any release, we do a dry run in test environment. This involves a critical step of importing production data schema to test environment.

Here is my problem now: I want to verify that this step is successful and during this data copy from Prod to Test Env, we did not missed any tables or schema or any data within. My idea was to create two notebooks in SQL - one in Prod, one in Test. This SQL will contain list of all tables and querying the number of rows and few distinct checks.

What is the best and fastest way to do this comparison?

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