You are on page 1of 17

UNIT - IV

How Snowflake Compute Works


• Snowflake pay-as-you-use data processing
with cost advantages.
• Snowflake Data Cloud allows to enable and
control the underlying cloud provider compute
resources through their warehouse construct.
Snowflake Compute Warehouses
• Snowflake warehouses make up the compute layer of
Snowflake.
• Snowflake warehouses again are just configurations of the
amount of compute to deploy when a warehouse is resumed or
running.
• This Snowflake compute layer with its virtual compute
warehouses provides the compute power to process data
within the Snowflake Data Cloud.
• Snowflake warehouses are really the main processing and
working layer of raw compute resources.
• Warehouses that are in suspended mode can go
into running mode with very little latency as long
as the Auto Resume parameter is set to true.
• The coordination related to turning on the
warehouse is performed and controlled by the
Snowflake Data Cloud services layer, which will
have the warehouse running even after the
execution job that required its services is
completed.
• Snowflake UI for the Creation and
management of a Warehouse
Snowflake Warehouse Sizes
Snowflake Multi-clustering
• A multi-cluster warehouse can spawn additional
compute clusters of the same size as the original
cluster to manage workloads with additional
concurrency needs.
• The scale-out is controlled by Minimum Clusters and
Maximum Clusters settings.
• The multi-cluster warehouse feature is only available
in the Snowflake Enterprise edition and higher
Semi-structured Data Type in
Snowflake
How the Variant Data Type Works
• The command to create a table named
JSON_WEATHER_DATA with only one column
named v and the data type as VARIANT
How to Load JSON Data
• create a stage by running the query

• This query creates a stage from where our weather sample unstructured data has been previously loaded into an AWS S3 bucket
• Once executed, this command will load data
from the AWS S3 bucket into the
JSON_WEATHER_DATA table we created
earlier.
How to Query JSON Data
• You can easily access elements in JSON objects using the
JSON dot notation and bracket notation. In both cases the
column name is case-insensitive, but the element name is
case-sensitive
How to Create a View on JSON
Data
How to Perform a Join Operation
on a View

You might also like