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: 

Getting Different results when I am running the Global Templary table (Transform Query)

Pradeep_Namani
New Contributor III

We are running a logic in an Azure Databricks notebook using Python with Spark. Initially, we read data from ADLS and load it into a global temporary table to perform data quality checks. We then recreate the same temporary table. Afterward, we use these temporary tables to write Spark SQL for transformations, execute the query, and load the results into another global temporary table. Finally, the result set is written back to ADLS.

Problem: When reading the transformed data, one of the column values is inconsistent. Each time we query the data, the column alternates between returning null and the another some value.

RUN1: Written Premium column consist of Null Value

Pradeep_Namani_1-1732529251887.png

 

RUN2: Written Premium column consist of Value

Pradeep_Namani_0-1732529202334.png

Please help me on this, Thanks in Advance

1 REPLY 1

Pradeep_Namani
New Contributor III

The script is too large to paste in here, so please get in touch with me to to obtain it.

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