Apache Iceberg: The Complete Guide
0% Completed
Introduction to Apache Iceberg
Apache Iceberg Architecture
Get Started with Apache Iceberg
This section covers DDL operations in Apache Iceberg with Spark. You can execute them using either SQL or the DataFrame API (DataFrameWriterV2), though some DDL features are SQL-only. Examples for both approaches are included.
Creating table
1. Using Spark SQL
1
2
3
4
5
6
7
8
9
10
spark.sql(f"""
CREATE TABLE IF NOT EXISTS ecommerce_db.consumers (
consumer_id STRING,
name STRING,
age INT,
address STRING,
email STRING
)
USING iceberg
""")
2. DataFrame API
1
2
3
4
5
6
7
8
9
10
spark.sql(f"""
CREATE TABLE IF NOT EXISTS ecommerce_db.consumers (
consumer_id STRING,
name STRING,
age INT,
address STRING,
email STRING
)
USING iceberg
""")
Create a table with partitions
1
TODO
Use the CREATE TABLEā¦AS SELECT statement
1
TODO
Finish Course Early?
You have not completed all required lessons and assessments.
Your Progress
0%