Skip to main content
Solved

Compare values between data in different schemas


Forum|alt.badge.img+3

Hi Team, 

I have few data loads that read data using API’s and writing to Snowflake tables. Often the data is incomplete & inconsistent. Im checking if I can use Attacama to compare the data between different snowflake schema’s : eg) Raw vs Curated? I understand we can write SQL Execute (select col1 from Tab A minus select col1 from Tab b and create a plan. But i have 500+ jobs and needs a lot of plans to be created. Looking for correct way of doing this?

 

 

Best answer by Vani

Hello @Siva_Madhavan ,

I understand that you need to compare the data in table between Schema A and B for 500 different data sets. As you already knew ,the parameterization may not work in SQL Execute to pass the entire SQL query. As a workaround, we may need to store the queries in a master lookup table/file and create the component for each dataset dynamically using a step called “Complex XML writer” step which would require some support from the Ataccama consultant. So I would suggest you to reach out to your Engagement Manager for further discussion about this use case. 

View original
Did this topic help you find an answer to your question?

2 replies

Forum|alt.badge.img+3
  • Ataccamer
  • 2 replies
  • Answer
  • July 19, 2022

Hello @Siva_Madhavan ,

I understand that you need to compare the data in table between Schema A and B for 500 different data sets. As you already knew ,the parameterization may not work in SQL Execute to pass the entire SQL query. As a workaround, we may need to store the queries in a master lookup table/file and create the component for each dataset dynamically using a step called “Complex XML writer” step which would require some support from the Ataccama consultant. So I would suggest you to reach out to your Engagement Manager for further discussion about this use case. 


Forum|alt.badge.img+3
  • Author
  • Data Pioneer L2
  • 31 replies
  • July 19, 2022

Thanks Vani for your reply.

I wish there is an sample plan in Ataccama IDE Tutorial’s for ‘Complex XML Writer” but thanks for highlighting this STEP ill do further research. 

 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings