Sitemap

Member-only story

Loading data from a remote database into Snowflake ….. without ETL tools

Johan
2 min readJan 5, 2025

Link to read without subscription.

Photo by benjamin lehman on Unsplash

Inspired by this article I decided this should be tested: -> a direct query from within Snowflake to a remote database.

Why would this be interesting: with this, there is no need to use separate tooling for source extraction. That will certainly save some euro’s !!!

For this setup, I created a MySql database online at https://aiven.io/. Works really easy:

After that, I used DBeaver to create a table and insert some data:

Next, go to your Snowflake environment and use this repo to load a Snowpark script: https://gitlab.com/samuel.ehrlich/federated_queries. It contains:

  • a MySql driver to upload to a Snowflake stage
  • a Snowpark python script to create the required components in Snowflake, such as a network rule and an external access integration

--

--

Johan
Johan

Written by Johan

I am a freelance data engineer. My main focus is Snowflake, but I am always eager to learn new things. Python and AWS are my main side interests

No responses yet