<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Gowtham on Medium]]></title>
        <description><![CDATA[Stories by Gowtham on Medium]]></description>
        <link>https://medium.com/@gowthamsubramani99?source=rss-ae796e86928d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*4tlp70hjP4gCmErb</url>
            <title>Stories by Gowtham on Medium</title>
            <link>https://medium.com/@gowthamsubramani99?source=rss-ae796e86928d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 13:38:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gowthamsubramani99/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Snowflake Streams and Tasks: Your Path to Real-Time Data Excellence]]></title>
            <link>https://medium.com/bi3-technologies/snowflake-streams-and-tasks-your-path-to-real-time-data-excellence-fd2d2b1ca63a?source=rss-ae796e86928d------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd2d2b1ca63a</guid>
            <category><![CDATA[real-time-analytics]]></category>
            <category><![CDATA[snowflake-computing]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[stream]]></category>
            <category><![CDATA[snowflake-data-cloud]]></category>
            <dc:creator><![CDATA[Gowtham]]></dc:creator>
            <pubDate>Thu, 21 Sep 2023 08:01:09 GMT</pubDate>
            <atom:updated>2023-09-21T08:28:45.375Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Introduction:</strong></h3><p>In today’s fast-paced world of data analytics and cloud computing, businesses and data professionals need solutions that enable them to efficiently process, analyze, and manage data. Snowflake, a leading cloud data platform, has been at the forefront of providing innovative tools and features to meet these demands. Two such features that have gained prominence are Snowflake Tasks and Streams.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T6qUVsekbTib25hh-OQIbg.png" /></figure><p>In this comprehensive guide, we will delve deep into the world of Snowflake Tasks and Streams, exploring what they are, how they work, and how they can be harnessed to enhance your data workflows. Whether you’re a data engineer, analyst, or business decision-maker, understanding these powerful Snowflake features can revolutionize the way you handle data, from real-time data ingestion to automation of routine tasks.</p><p>Let’s embark on a journey to unlock the full potential of Snowflake Tasks and Streams and discover how they can empower your data initiatives.</p><h3><strong>Prerequisite:</strong></h3><ol><li><strong>Snowflake Account:</strong> You need access to a Snowflake account or instance. If you don’t have one, you’ll need to sign up for a Snowflake account.</li><li><strong>Database and Warehouse:</strong> You should have a Snowflake database and a virtual warehouse created. These are the foundational components where your data and tasks will operate.</li><li><strong>Table(s):</strong> You’ll need one or more tables in your Snowflake database to capture changes in data. Streams are typically created on existing tables.</li></ol><h3><strong>Example:</strong></h3><p>Imagine you’re managing an e-commerce platform, and you want to monitor real-time sales data and generate the hourly sale report.</p><h3><strong>Sample sales table</strong></h3><p>Use Account Admin Role</p><pre>--Use your own database name instead of DEV<br>USE DATABASE DEV;<br><br>USE ROLE ACCOUNTADMIN;</pre><p>Let’s Create sales table with sample data</p><pre>USE SCHEMA RAW_DATA;<br><br>-- Create the sales table<br>CREATE OR REPLACE TABLE sales (<br>  sale_id INT AUTOINCREMENT PRIMARY KEY,<br>  order_date TIMESTAMP,<br>  product_name STRING,<br>  sales_amount FLOAT<br>);<br><br>-- Insert sample data into the sales table<br>INSERT INTO sales (order_date, product_name, sales_amount)<br>VALUES<br>  (&#39;2023-09-10 10:00:00&#39;, &#39;Product A&#39;, 100.00),<br>  (&#39;2023-09-10 10:15:00&#39;, &#39;Product B&#39;, 75.50),<br>  (&#39;2023-09-10 10:30:00&#39;, &#39;Product A&#39;, 120.75),<br>  (&#39;2023-09-10 10:45:00&#39;, &#39;Product C&#39;, 50.25),<br>  (&#39;2023-09-10 10:15:00&#39;, &#39;Product B&#39;, 85.00),<br>  (&#39;2023-09-10 10:30:00&#39;, &#39;Product A&#39;, 110.50);<br><br>-- Check the sales table<br>SELECT * FROM sales;</pre><p><strong>Reference:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vF87APrksmIoSglSEA0UrA.png" /><figcaption>Sales data</figcaption></figure><h3>Snowflake Streams: The Real-Time Data Channel</h3><p>Before we dive into Snowflake Tasks, let’s start with Snowflake Streams. Streams in Snowflake are continuous, ordered sequences of changes (inserts, updates, or deletes) made to one or more tables in a database. They act as real-time data channels, capturing data changes as they occur, making it easier to track and react to real-time events.</p><p><strong>Creating a Stream</strong></p><pre>-- Create a stream for the sales table<br>CREATE OR REPLACE STREAM sales_stream<br>ON TABLE sales;<br><br>-- Check the stream metadata<br>SHOW STREAMS;</pre><h3>Snowflake Tasks: Automating Real-Time Workflows</h3><p>Snowflake Tasks are automated workflows that can be scheduled to run based on triggers or a defined schedule. You can use Snowflake Tasks to perform actions based on the data changes captured by Streams. For example, you can use Tasks to update a dashboard, send notifications, or perform ETL (Extract, Transform, Load) operations in response to real-time events.</p><p><strong>Creating a Task</strong></p><p>To create a Snowflake Task, you need to define the SQL statement(s) you want to execute when the task is triggered. Here’s an example of creating a simple task:</p><p>Let’s create reporting table before creating task</p><pre>-- Create the hourly_sales_report table<br>CREATE OR REPLACE TABLE hourly_sales_report (<br>  report_date DATE,<br>  report_hour TIMESTAMP,<br>  total_sales FLOAT<br>);</pre><h3><strong>Task:</strong></h3><pre>CREATE OR REPLACE TASK load_hourly_sales_data<br>  WAREHOUSE = &#39;COMPUTE_WH&#39; --Specify your warehouse<br>  SCHEDULE = &#39;60 MINUTE&#39; -- Specify the frequency of task to run<br>  COMMENT = &#39;Analyzes new feedback entries in real-time&#39;<br>AS<br>  -- SQL script for real-time analysis<br>  BEGIN<br>    INSERT INTO hourly_sales_report (report_date, report_hour, total_sales)<br>    SELECT<br>      DATE_TRUNC(DAY, CURRENT_TIMESTAMP()) AS report_date,<br>      DATE_TRUNC(HOUR, CURRENT_TIMESTAMP()) AS report_hour,<br>      SUM(sales_amount) AS total_sales<br>    FROM sales_stream;<br>  END;</pre><p>By default, Snowflake tasks are created in the SUSPEND state. To execute the task and trigger the script, you need to explicitly change its state to RESUME. You can do this using the ALTER TASK statement. Here&#39;s how to alter your task to resume it:</p><pre>-- Enable the task<br>ALTER TASK load_hourly_sales_data RESUME;</pre><p>Let’s test the flow by inserting some record to the sales table</p><pre> INSERT INTO sales (order_date, product_name, sales_amount)<br>VALUES<br>  (&#39;2023-09-10 11:00:00&#39;, &#39;Product A&#39;, 200.00),<br>  (&#39;2023-09-10 11:15:00&#39;, &#39;Product B&#39;, 750.50);</pre><p>To check the Change is capture in stream execute the below query</p><pre>SELECT * FROM sales_stream;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q9GoCFrsxTX-sAMV-tFkCg.png" /><figcaption>CDC stream data</figcaption></figure><p>Sales report table</p><pre>SELECT * FROM hourly_sales_report;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TZNCLqkufMpyIL6h5kapAw.png" /></figure><h3><strong>Monitoring:</strong></h3><p>Below query will show the tasks current status.</p><pre>show tasks like &#39;%load_hourly_sales_data%&#39; in dev.raw_data;</pre><p>Below query will provide access to your task history and scheduled runs, allowing you to keep a close eye on error statuses and performance.</p><pre>SELECT *<br>FROM TABLE(INFORMATION_SCHEMA.TASK_HISTORY(<br>    scheduled_time_range_start =&gt; DATEADD(HOUR, -1, CURRENT_TIMESTAMP())<br>));</pre><h3>Conclusion:</h3><p>Snowflake Streams and Tasks offer a powerful combination for real-time data processing and automation. By capturing data changes in Streams and triggering Tasks based on those changes, you can build dynamic and responsive data workflows that keep your organization informed and agile in an increasingly fast-paced data landscape.</p><p>Whether it’s real-time analytics, automated notifications, or ETL processes, Snowflake provides the tools to make it happen, opening up a world of possibilities for real-time data processing.</p><h3>About Us:</h3><p>Bi3 has been recognized for being one of the fastest-growing companies in Australia. Our team has delivered substantial and complex projects for some of the largest organizations around the globe, and we’re quickly building a brand that is well-known for superior delivery.</p><p>Website: <a href="https://bi3technologies.com/">https://bi3technologies.com</a></p><p>Follow us on,<br><em>LinkedIn: </em><a href="https://www.linkedin.com/company/bi3technologies"><em>https://www.linkedin.com/company/bi3technologies</em></a><em><br>Instagram: </em><a href="https://www.instagram.com/bi3technologies/"><em>https://www.instagram.com/bi3technologies/</em></a><em><br>Twitter: </em><a href="https://twitter.com/Bi3Technologies"><em>https://twitter.com/Bi3Technologies</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd2d2b1ca63a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bi3-technologies/snowflake-streams-and-tasks-your-path-to-real-time-data-excellence-fd2d2b1ca63a">Snowflake Streams and Tasks: Your Path to Real-Time Data Excellence</a> was originally published in <a href="https://medium.com/bi3-technologies">BI3 Technologies</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Continuous Data Ingestion from Azure Blob Storage to Snowflake using Snowpipe]]></title>
            <link>https://medium.com/bi3-technologies/continuous-data-ingestion-from-azure-blob-storage-to-snowflake-using-snowpipe-a82b0c93f4ea?source=rss-ae796e86928d------2</link>
            <guid isPermaLink="false">https://medium.com/p/a82b0c93f4ea</guid>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[snowpipe]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Gowtham]]></dc:creator>
            <pubDate>Wed, 15 Sep 2021 12:27:04 GMT</pubDate>
            <atom:updated>2021-12-10T08:56:24.444Z</atom:updated>
            <content:encoded><![CDATA[<p>In this blog, you will learn to load data from Azure storage account to snowflake automatically using Snowpipe.</p><p><strong>Process Flow</strong></p><figure><img alt="Snowpipe Process Flow Diagram" src="https://cdn-images-1.medium.com/max/151/1*uxQbWPrnhBvoVy7pG9Jfew.png" /><figcaption>Process Flow Diagram</figcaption></figure><ol><li><strong>Prerequisite</strong></li></ol><p>Assume, we have a table in our Snowflake’s Database, and we want to copy the data from Azure Blob Storage into our tables as soon as new files are uploaded into the Blob Storage.</p><figure><img alt="Create table Script" src="https://cdn-images-1.medium.com/max/1024/1*z8mbitsOoA2wpHV27AvIbg.png" /><figcaption>Create a table</figcaption></figure><p><strong>2. Facilitate Azure Services and Snowflake to build a data pipeline to auto ingest files from Azure Blob Storage into Snowflake’s table.</strong></p><p>Create a storage account under the resource group. Example: “<strong>testportal1</strong> “</p><p><strong>2.1 Create a container (Azure)</strong></p><p>Example: “<strong>snowpipe-demo-container</strong>”</p><figure><img alt="Create a Container" src="https://cdn-images-1.medium.com/max/1024/1*0ClSDY9x4HpIxql2jr6K7g.png" /><figcaption>Create a container</figcaption></figure><p><strong>2.2 Create a queue (Azure)</strong></p><p>Example: “<strong>snowpipe-demo-queue</strong>”</p><figure><img alt="Create a queue" src="https://cdn-images-1.medium.com/max/1024/1*gkQoIY6JnXKfDqz1KvxP0Q.png" /><figcaption>Create a queue</figcaption></figure><p><strong>2.3 Create an Event Grid Subscription (Azure)</strong></p><p>Use the below step to create an Event Grind Subscription for the Container and set the endpoint to the Storage Queue.</p><p><strong>Step 1:</strong> Navigate to Storage Account and click on Events, then click +Event Subscription.</p><figure><img alt="Create Event Subscription" src="https://cdn-images-1.medium.com/max/914/1*MvLmdWzwOLM8RjqUs_iumw.png" /><figcaption>Create Event Subscription</figcaption></figure><p><strong>Step 2:</strong> In the EVENT SUBSCRIPTION DETAILS Section, Give a name and choose <strong><em>Event Grid Schema</em></strong> for Event Schema.</p><figure><img alt="Fill details in Event Subscriptions" src="https://cdn-images-1.medium.com/max/1024/1*0R8SyzGJsYvIfx7ZODUeMQ.png" /><figcaption>Fill details in Event Subscriptions</figcaption></figure><p><strong>Step 3:</strong> In Topic Details Section, Give a name for the Topic</p><p><strong>Step 4:</strong> In the Event Types Section, Choose only <strong><em>Blob Created</em></strong> and uncheck the others.</p><p><strong>Step 5:</strong> In Endpoint Details Section, Choose <strong><em>Storage Queues</em></strong> as endpoint type.</p><p><strong>Step 6:</strong> Now click on Select an endpoint, then Select your subscription, Storage Account the created Storage Queue, finally, click on Confirm Selection.</p><figure><img alt="Select storage account" src="https://cdn-images-1.medium.com/max/1024/1*CJdGy3mgxVmg3oYfJEeEvQ.png" /><figcaption>Select storage account</figcaption></figure><p><strong>Step 7:</strong> Click on Create, now the Topic and the Event Subscription creation are completed.</p><p><strong>2.4 Create a Notification Integration in Snowflake (Snowflake)</strong></p><p>For this we need, the Azure Tenant Id and Storage Queue URL</p><p><strong>Step 1:</strong> To get the Storage Queue URL, Navigate to Storage Account, then click on Queues, Copy the URL of the desired queue.</p><figure><img alt="Copy Storage Queue URL" src="https://cdn-images-1.medium.com/max/1024/1*hdW8xifHv1Ybb12uqmBF9Q.png" /><figcaption>Copy Storage Queue URL</figcaption></figure><p><strong>Step 2:</strong> To get the Tenant Id, Navigate to Azure Active Directory Service, In the Overview pane, copy the Tenant Id.</p><figure><img alt="Copy Tenant ID" src="https://cdn-images-1.medium.com/max/1024/1*yUspwD8buyeC0Z1YhK2MmQ.png" /><figcaption>Copy Tenant ID</figcaption></figure><pre><strong>Storage Queue URL:</strong> <a href="https://testportal1.queue.core.windows.net/snowpipe-demo-queue">https://***.core.windows.net/***-demo-queue</a></pre><pre><strong>Tenant Id:</strong>***-d49a-45bd-8ad1–88695***</pre><p><strong>Step 3:</strong> Now Navigate to Snowflake and change the role to ACCOUNTADMIN.</p><p><strong>Step 4:</strong> Use the below syntax for creating Notification Integration.</p><pre><em>// Create Notification Integration</em></pre><pre><em>CREATE NOTIFICATION INTEGRATION INTEGRATION_NAME</em></pre><pre><em>ENABLED=TRUE</em></pre><pre><em>TYPE=QUEUE</em></pre><pre><em>NOTIFICATION_PROVIDER=AZURE_STORAGE_QUEUE</em></pre><pre><em>AZURE_STORAGE_QUEUE_PRIMARY_URI=’STORAGE_QUEUE_URL’</em></pre><pre><em>AZURE_TENANT_ID=’AD_TENANT_ID’;</em></pre><p>Replace the <strong>STORAGE_QUEUE_URL</strong> with the actual Storage Queue URL and <strong>AD_TENANT_ID</strong> with the actual Tenant Id.</p><pre><em>// Create Notification Integration</em></pre><pre><em>CREATE NOTIFICATION INTEGRATION SNOWPIPE_DEMO2_NOTFINT</em></pre><pre><em>ENABLED=TRUE</em></pre><pre><em>TYPE=QUEUE</em></pre><pre><em>NOTIFICATION_PROVIDER=AZURE_STORAGE_QUEUE</em></pre><pre><em>AZURE_STORAGE_QUEUE_PRIMARY_URI=’</em>https://***.core.windows.net/***-queue’</pre><pre><em>AZURE_TENANT_ID=’***-d49a-45bd-8ad1–886951**&#39;;</em></pre><p><strong>Step 5:</strong> Now snowflake knows that this integration is for Azure, where will it get the event notifications, but we need Azure also to authenticate our Snowflake Account one time.</p><p>Execute the below command to achieve this.</p><pre><em>DESC NOTIFICATION INTEGRATION SNOWPIPE_DEMO2_NOTFINT ;</em></pre><p>It gives an <strong>AZURE_CONSENT_URL</strong> which will be used to establish a protocol between Azure Account and Snowflake Account.</p><p><strong>Step 6: </strong>Copy the URL, and paste it into the browser, where you have already logged into Azure Portal.</p><p><strong>Step 7: </strong>Click on Accept.</p><p>Once the establishment is successful, you will be redirected to the Snowflake page like below.</p><figure><img alt="Azure Portal" src="https://cdn-images-1.medium.com/max/1024/1*4zFbv5LvRM7Xf_hM8KhS0Q.png" /><figcaption>Azure Portal</figcaption></figure><p><strong>2.5 Confirm Snowflake is authorized</strong></p><p>Navigate to Azure Portal and redirect to the Active Directory service page, and click on Enterprise Applications.</p><figure><img alt="Enterprise Application" src="https://cdn-images-1.medium.com/max/1024/1*yuujxvp-74mtKlb9Pgrovg.png" /><figcaption>Enterprise Application</figcaption></figure><p>You can see now Snowflake is added as an Enterprise Application.</p><p><strong>2.6 Grant Storage access to the Snowflake Application (Azure)</strong></p><p><strong>Step 1:</strong> Copy the name of the Snowflake Enterprise Application.</p><p>Name: SnowflakePACInt0181</p><p><strong>Step 2:</strong> Navigate to Azure Storage Account and choose Access Control IAM.</p><p><strong>Step 3:</strong> Click on Add and Add Role Assignment.</p><figure><img alt="Role Assignment" src="https://cdn-images-1.medium.com/max/1024/1*1rjj1kMdVzzGSCXBR4RKuw.png" /><figcaption>Role Assignment</figcaption></figure><p><strong>Step 4:</strong> Choose Storage Queue Data Contribute for Role.</p><p><strong>Step 5:</strong> Choose our created Snowflake Enterprise Application and click on Save.</p><figure><img alt="Add role assignment" src="https://cdn-images-1.medium.com/max/1024/1*bHAcJ5THH61AfF6MBHc-Dw.png" /><figcaption>Add role assignment</figcaption></figure><p>Now the Snowflake application is added to the Storage Queue Data Contributor role.</p><p><strong>2.7 Create Stages in Snowflake for two different file formats (Snowflake)</strong></p><p>For this, we need two pieces of information. One is Blob Service URL and Shared Access Signature Token which we need to generate.</p><p><strong>Step 1:</strong> To get the Blob Service Endpoint, Go to Storage Account, Click on Endpoints and copy the Blob Service Endpoint.</p><figure><img alt="Copy Blob Service Endpoint" src="https://cdn-images-1.medium.com/max/1024/1*w2EsnUhUI7DLvt0p9z3lrA.png" /><figcaption>Copy Blob Service Endpoint</figcaption></figure><pre><strong>Blob Service Endpoint:</strong> https://***.blob.core.windows.***</pre><p><strong>Step 2:</strong> To get the Shared Access Signature Token, Click on Shared Access Signature</p><p><strong>Step 3:</strong> In the selection pane, select only the required permissions.</p><p><strong>Step 4:</strong> Now click on Generate SAS and Connection String and Copy the SAS Token</p><figure><img alt="Generate SAS" src="https://cdn-images-1.medium.com/max/1024/1*oO6em3lW-iEJ6rM5I-NVEA.png" /><figcaption>Generate SAS</figcaption></figure><figure><img alt="Generate SAS and Connection String and Copy the SAS Token" src="https://cdn-images-1.medium.com/max/1024/1*GEqX3SUPhXVlmwYyJ5BJzQ.png" /><figcaption>Generate SAS and Connection String and Copy the SAS Token</figcaption></figure><pre><strong>SAS Token:</strong> ?sv=2020–02–10***************8&amp;se=2021–06–23T18:21:32Z&amp;st=2021–06–23T10:21:32Z&amp;s***************SUV76ygOOGyMh******RPkxpkqD5FDLaM%3D</pre><p><strong>Step 5:</strong> Navigate to Snowflake and create a stage for JSON file using the below commands.</p><p><em>// Create Stage for a JSON File</em></p><pre><em>CREATE OR REPLACE STAGE “SNOWPIPE_DEMO_DB”.”PUBLIC”.SNOWPIPE_STUDENT_STG_JSON</em></pre><pre><em>URL = ’</em> <a href="https://testportal1.queue.core.windows.net/snowpipe-demo-container/STUDENTS_JSON/&#39;">https://***.core.windows.net/snowpipe-demo<em>-container/***&#39;</em></a></pre><pre><em>CREDENTIALS = (AZURE_SAS_TOKEN = ‘?sv=***se=2021–06–23T18:21:32Z&amp;st=2021–06–*****’)</em></pre><pre><em>FILE_FORMAT = (TYPE = ‘JSON’);</em></pre><pre><strong>Note:</strong> Replace the <strong>URL</strong> and <strong>AZURE_SAS_TOKEN</strong> with the actual values.</pre><pre>To see the available staging files, execute the below commands.</pre><pre><em>LS @SNOWPIPE_STUDENT_STG_JSON;</em></pre><p><strong>2.8 Creating SnowPipe (Snowflake)</strong></p><p>Create the SnowPipe for different stage files using the below commands.</p><pre><em>// Create pipe for Stage JSON File</em></pre><pre><em>CREATE OR REPLACE PIPE SNOWPIPE_DEMO_DB.PUBLIC.DEMO_SNOWPIPE_STUDENTS_JSON</em></pre><pre><em>AUTO_INGEST=TRUE</em></pre><pre><em>INTEGRATION=SNOWPIPE_DEMO2_NOTFINT</em></pre><pre><em>AS</em></pre><pre><em>COPY INTO SNOWPIPE_DEMO_DB.PUBLIC.STUDENTS_JSON(STUDENT_ID,NAME)</em></pre><pre><em>FROM(SELECT $1:STUDENT_ID, $1:NAME FROM @SNOWPIPE_DEMO_DB.PUBLIC.SNOWPIPE_STUDENT_STG_JSON );</em></pre><p><strong>2.9 The Results</strong></p><p>As soon as we created the pipe, Let’s try uploading the file, as of now, the records count is 0 in a table.</p><figure><img alt="Upload file in blob" src="https://cdn-images-1.medium.com/max/1024/1*V7cIU2SMIhLULWw9jmwnDA.png" /><figcaption>Upload file in blob</figcaption></figure><p>Use the below command to make sure our file is available in staging.</p><pre><em>LS @SNOWPIPE_STUDENT_STG_JSON;</em></pre><p>If the tables are not loaded with values try refreshing the pipes using the below commands.</p><pre><em>ALTER PIPE DEMO_SNOWPIPE_STUDENTS_JSON REFRESH;</em></pre><p>Our file was added to the stage, now let’s check target table is loaded with new data by executing the below command.</p><pre><em>SELECT * FROM SNOWPIPE_DEMO_DB.PUBLIC.STUDENTS_JSON;</em></pre><figure><img alt="Target table" src="https://cdn-images-1.medium.com/max/1024/1*SEHD30TMQK-FekhztUWp8g.png" /><figcaption>Target table</figcaption></figure><p>Yes, our table is loaded with new values, we have now successfully set up a data pipeline for continuous data ingestion from Azure Blob Storage to Snowflake.</p><p>Finally, We have accomplished loading the data from Azure blob storage into snowflake using Snowpipe. It uses the Microsoft Azure Queue and Event Subscriptions and a Snowflake container to load the file into Blob which acts as Source to the Snowpipe and target table to load the data.</p><p>Have you ever tried load data into a snowflake table using Snowpipe? What was the issue you faced? Leave a comment. We will try to help you.</p><p><strong>Reference Links :<br></strong><a href="https://docs.snowflake.com/en/user-guide/data-load-snowpipe-auto-azure.html">https://docs.snowflake.com/en/user-guide/data-load-snowpipe-auto-azure.html</a></p><h3>About Us</h3><p>Bi3 has been recognized for being one of the fastest-growing companies in Australia. Our team has delivered substantial and complex projects for some of the largest organizations around the globe and we’re quickly building a brand that is well known for superior delivery.</p><p><em>Website : </em><a href="https://bi3technologies.com/"><em>https://bi3technologies.com/</em></a></p><p>Follow us on,<br><em>LinkedIn : </em><a href="https://www.linkedin.com/company/bi3technologies"><em>https://www.linkedin.com/company/bi3technologies</em></a><em><br>Instagram : </em><a href="https://www.instagram.com/bi3technologies/"><em>https://www.instagram.com/bi3technologies/</em></a><em><br>Twitter : </em><a href="https://twitter.com/Bi3Technologies"><em>https://twitter.com/Bi3Technologies</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a82b0c93f4ea" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bi3-technologies/continuous-data-ingestion-from-azure-blob-storage-to-snowflake-using-snowpipe-a82b0c93f4ea">Continuous Data Ingestion from Azure Blob Storage to Snowflake using Snowpipe</a> was originally published in <a href="https://medium.com/bi3-technologies">BI3 Technologies</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>