Skip to content

Commit

Permalink
make iceberg engine a paid feature
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzl25 committed Jan 27, 2025
1 parent 6bf7184 commit fb006d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/frontend/src/handler/create_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1448,6 +1448,9 @@ pub async fn create_iceberg_engine_table(
constraints: Vec<TableConstraint>,
table_name: ObjectName,
) -> Result<()> {
risingwave_common::license::Feature::IcebergEngine
.check_available()
.map_err(|e| anyhow::anyhow!(e))?;
// 1. fetch iceberg engine options from the meta node.
// 2. create a hummock table
// 3. create an iceberg sink
Expand Down
1 change: 1 addition & 0 deletions src/license/src/feature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ macro_rules! for_all_features {
{ SqlServerCdcSource, Paid, "CDC source connector for Sql Server." },
{ CdcAutoSchemaChange, Paid, "Auto replicate upstream DDL to CDC Table." },
{ IcebergSinkWithGlue, Paid, "Delivering data to Iceberg with Glue catalog." },
{ IcebergEngine, Paid, "Creating table with an iceberg engine." },
}
};
}
Expand Down

0 comments on commit fb006d5

Please sign in to comment.