Processing near real-time data into a Snowflake table using Snowpipe
This recipe guides you through the process of setting up a Snowpipe and enabling the streaming of data from a cloud storage bucket.
Getting ready
Since we will be performing configuration with AWS to configure events on the S3 bucket, you should have the required privileges on the bucket. If you do not have access, you will need to ask your AWS administrator to configure the S3 bucket for you. The sample files, if you would like to download them for this recipe, can be found at https://github.com/PacktPublishing/Snowflake-Cookbook/tree/master/Chapter03/r7.
How to do it…
The steps for this recipe are as follows:
- Let's first create a database where we will create our target table, Snowpipe, and the stage objects:
CREATE DATABASE SP_EX;
- Create the target table where we will load the data through Snowpipe:
CREATE TABLE TRANSACTIONS ( Transaction_Date DATE, Customer_ID...