Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Snowflake Cookbook

You're reading from  Snowflake Cookbook

Product type Book
Published in Feb 2021
Publisher Packt
ISBN-13 9781800560611
Pages 330 pages
Edition 1st Edition
Languages
Authors (2):
Hamid Mahmood Qureshi Hamid Mahmood Qureshi
Profile icon Hamid Mahmood Qureshi
Hammad Sharif Hammad Sharif
Profile icon Hammad Sharif
View More author details

Table of Contents (12) Chapters

Preface Chapter 1: Getting Started with Snowflake Chapter 2: Managing the Data Life Cycle Chapter 3: Loading and Extracting Data into and out of Snowflake Chapter 4: Building Data Pipelines in Snowflake Chapter 5: Data Protection and Security in Snowflake Chapter 6: Performance and Cost Optimization Chapter 7: Secure Data Sharing Chapter 8: Back to the Future with Time Travel Chapter 9: Advanced SQL Techniques Chapter 10: Extending Snowflake Capabilities Other Books You May Enjoy

Loading Parquet files into Snowflake

This recipe demonstrates how to load Parquet-format data from files present on cloud storage. We will make use of an external stage created on top of an AWS S3 bucket and will load the Parquet-format data into a new table.

Getting ready

Since we will be loading a file from our local system into Snowflake, we will need to first get such a file ready on the local system. To save time, you can download a previously created sample file from https://github.com/PacktPublishing/Snowflake-Cookbook/blob/master/Chapter03/r4.

How to do it…

We shall start by creating a database, followed by creating a table that will contain the Parquet file. We need will then create a file format for the Parquet file. The steps are as follows:

  1. Let's first create a database where we will create our table and load it with some sample data:
    CREATE DATABASE C3_R4;
  2. Create a new table called TRANSACTIONS. We will load the sample data into this...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}