4 New Table Types in 2022 by Snowflake - A Summary - by Somen Swain - Snowflake - Dec, 2022 - Medium
4 New Table Types in 2022 by Snowflake - A Summary - by Somen Swain - Snowflake - Dec, 2022 - Medium
4 New Table Types in 2022 by Snowflake - A Summary - by Somen Swain - Snowflake - Dec, 2022 - Medium
Somen Swain
Dec 17, 2022 · 6 min read · Listen
We all by now have become very familiar with Snowflake’s table types which
are namely “Standard Tables”, “Temporary Tables”, “Transient Tables” & More from Medium
“External Tables”. Let us discuss on the
9 newly
3 introduced table types, their
John Ryan in Snowflake
features and what problems do they solve.
Top 14 Snowflake Data
Engineering Best Practices
The four new type of tables that were announced by Snowflake this year are
Gonzalo Fernandez Plaza
as follows:
Snowflake SnowPro
Advanced: Architect —
1. Iceberg Tables. Practice Exam Questions
There are primarily 3 design criteria which makes iceberg table unique
considering it is powered by “Open Source → Table Format”.
Pic Courtesy → Snowflake
Iceberg tables are capable of doing most of the activities as a standard table
does i.e., full DML operations, Dynamic data masking, row level security,
etc.. Now this is something which is unique if we try relate it with external Help Status Writers Blog Careers Privacy Terms About
Text to speech
tables on Snowflake which are primarily just “read only”. Personally I really
like a diagram which Snowflake has given that clearly portrays when Iceberg
tables can be used, please refer it as below:
Syntax:
Syntax
Over here you have to give the keyword as “iceberg” to make it as iceberg
table. External volume are needed to define this table which are kind of
similar to external stage syntax i.e.,
Syntax for external volume.
You can also go through one of my blog to know more about Iceberg tables &
table format, link shared as below:
2. DYNAMIC TABLES
Dynamic Tables are a new table type in Snowflake that lets teams use simple
SQL statements to declaratively define the result of your data pipelines. They
automatically refreshes as the data changes. This was also announced under
the name as “Materialized tables” on SnowSummit at Vegas, but later they
have renamed as “Dynamic Tables”.
Now what is a declarative way of defining the pipelines ? See the snapshot
below:
Dynamic table(Syntax)
To understand dynamic table we have to try relate it with Task & Stream.
Previously, a data engineer would use Streams and Tasks along with
manually managing the database objects (tables, streams, tasks, SQL DML
code) to build a data pipeline in Snowflake. But with Dynamic Tables, data
pipelines get much easier. Check out this diagram:
Pic Courtesy → Snowflake
Syntax:
More read:
https://www.snowflake.com/blog/dynamic-tables-delivering-declarative-
streaming-data-pipelines/
3. HYBRID TABLES
This was launched around June 2022, there was a major announcement done
in the Snowflake Summit at Vegas i.e., about “UNISTORE workload” that is
going to address the OLTP and OLAP needs. Now “Hybrid Tables” are
designed for this Unistore workload. So whenever you think “Unistore” then
think “Hybrid Tables”
Hybrid tables are a new Snowflake table type powering Unistore. A key
design principle is to have this table support all the transactional capabilities
need. These are highly performant which is a need of any transactional
application & support fast single row operations. They work on entirely new
row-based storage engine. This is unlike other tables in Snowflake where data
is stored in columnar way. Below is the design diagram of it:
3. Delayed access
a. Primary keys are defined & Snowflake enforces the uniqueness of it.
d. Join tables, Hybrid tables can be joined with standard tables in Snowflake.
Syntax:
The Syntax
Do check the ones marked in yellow i.e., keyword “HYBRID” for distinction
on table type, “CONSTRAINT, INDEXES” that would be supported and
imposed by Snowflake once it is defined along with this table.
4. EVENT TABLES
This is launched very recently and below is what I know for now(limited
information).
SUMMARY :
All the 4 new table type which we discussed in this blog are in PrPr and is not
yet GA. Having some initial understanding of each of this category of table
and knowing in which use case what kind of table fits in is always helpful.
Below diagram would help in getting some clarifications on the feature to
use case details.
Use case to Table type mapping