From the course: Manage and Optimize Big Data with Apache Iceberg
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Implement schema changes - SQL Tutorial
From the course: Manage and Optimize Big Data with Apache Iceberg
Implement schema changes
- [Instructor] Let's learn the schema changes practically. For that, click on the New and add a new notebook. We will give a name Schema_Changes to this notebook. Now if you remember in the previous sessions, we have already created our orders table. Now imagine that we got a new requirement there. In this table a one more column information as it start coming in. that is shipping date. Now to accommodate that change in our table, we need to add an extra column. How we can do that, we can use percent SQL alter table orders, and then we can add the column. You can give the column name that Shipping_dt of type date. And when you execute, This will add a shipping date column into our table. If you want to check whether it got added up or not, we can just do select star from our orders table. You will start seeing that extra column, but right now there will be no value because a new file will insert a value inside it. Got it? Now imagine that there was a miscommunication. Instead of…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Iceberg table structure and metadata3m 20s
-
(Locked)
Schema management and evolution5m 55s
-
(Locked)
Implement schema changes6m 20s
-
(Locked)
Partitioning in Iceberg6m 16s
-
(Locked)
Implementing partitioning6m 39s
-
(Locked)
Challenge: Change the table schema16s
-
(Locked)
Solution: Change the table schema49s
-
(Locked)
-
-
-