Filesystem Catalog Iceberg external projects
MaxCompute maps an Apache Iceberg catalog (Iceberg Hadoop Catalog) stored in Object Storage Service (OSS) to an external project that follows the standard Iceberg file system hierarchy. Access permissions are based on the permissions granted to a RAM role for the OSS bucket, supporting read and write operations on Iceberg metadata and data. This catalog-level mapping requires a compliant file system hierarchy and self-managed permissions and storage for files in the lake format. It is suitable for stream-batch integration scenarios with controllable permissions and independent maintenance, allowing the data warehouse to seamlessly share the same Iceberg table data with open source engines such as Spark, Flink, and Hive.
Deleting an external project is a physical deletion operation that clears some historical information but does not delete data in the source system. The operation can take a long time. Wait for it to complete.
Usage notes
The following operations on a MaxCompute-managed Iceberg table can cause data loss or make data unreadable:
Forbidden operation | Consequence | Correct practice |
Modifying Iceberg table data through any interface other than MaxCompute write APIs. | The table may fail consistency checks and become unreadable. | Modify data only through MaxCompute SQL. |
Uploading files to the managed OSS path. | The background service treats uploaded files as orphan files and deletes them. | Do not upload data to the managed path. |
Sharing the same OSS path across multiple managed Iceberg tables. | Each table's garbage collection process deletes the other table's files. | Each table uses a separate OSS path. If multiple tables are created in the same directory, recreate the table using a clean path and copy the data to the new table to avoid data loss. |
Using OSS paths with a parent-child directory relationship for different managed Iceberg tables. | Each table's garbage collection treats the other table's files as orphan data and deletes them, causing data loss. | Use a unique OSS path for each managed Iceberg table. Avoid paths with parent-child relationships. |
Scope
Schema evolution is not currently supported.
Partitioned tables can be created, but operations such as adding, dropping, or merging partitions are not currently supported.
Limitations
Version limitations
Only features compatible with Iceberg SDK 1.6.1 are supported.
Reading and writing are supported only for Iceberg table format v2.
Features of the Iceberg v3 format are not supported.
Supported operations
MaxCompute data types: Data types (Version 1.0) and Data types (Version 2.0).
Partition pruning is supported. If not enabled, submit feedback through the Application Link or join the MaxCompute Developer Community DingTalk group (group ID: 11782920).
Unsupported operations
For MaxCompute-managed Iceberg tables:
The Rename Table statement is not supported.
The XCOPY Cross-Region Replication statement is not supported.
The CLONE TABLE and RENAME TABLE statements are not supported.
Table snapshot statements are not supported.
Setting default values for columns is not supported.
Materialized view operations are not supported.
Row-level access control is not supported.
The TRUNCATE statement is not supported.
CDC (private preview) is not supported.
Cross-region disaster recovery is not supported.
Local backup is not supported.
The
CREATE OR REPLACEstatement is not supported.The
LOADandUNLOADcommands are not supported.
Console queries and API responses display the storage size of managed Iceberg tables as 0 bytes.
Permissions
Control plane permissions
These permissions are checked during operations in the MaxCompute console, primarily when creating a MaxCompute external project and binding an OSS directory.
These permissions are managed by RAM. Sign in to the RAM console using an Alibaba Cloud account to configure the required operations and manage permissions as described in Grant permissions to a RAM user.
Data plane permissions
These permissions are checked when reading and writing Iceberg tables in OSS after connecting to the external project. They apply primarily to creating, maintaining, or using schemas, tables, and other resources in the bound OSS directory, typically through MaxCompute SQL.
These permissions are included in a RAM role and managed by RAM. The RAM role's permissions enable read and write access to Iceberg data in OSS. For configuration instructions, see OSS/Tablestore: RAM role authorization.
Procedure
Step 1: Create an external project
Log in to the MaxCompute console and select a region in the upper-left corner.
In the left-side navigation pane, choose .
On the External Project tab, click Create Project. In the Create Project dialog box, follow the prompts to configure the project information and click OK to create the project.
Parameter
Required
Description
Project Type
Yes
The default is External Project.
Region
Yes
The default is the current region and cannot be changed here.
Project Name (Globally Unique)
Yes
The name must be globally unique and cannot be changed after creation.
The name must start with a letter, contain only letters, digits, and underscores (_), and be 3 to 28 characters long.
MaxCompute Foreign Server Type
No
Select
Filesystem Catalog Iceberg.RoleARN
Yes
The ARN of the RAM role. The role must have permissions to access OSS.
Log in to the RAM console.
In the left navigation bar, select .
In the Basic Information section, you can obtain the ARN.
Example:
acs:ram::124****:role/aliyunodpsdefaultrole.Storage Type
Yes
OSS.
Endpoint
Yes
Automatically generated. For the China (Hangzhou) region, the endpoint is
oss-cn-hangzhou-internal.aliyuncs.com.Bucket Catalog
Yes
Select the OSS bucket and the full file system directory at the catalog level. If the bucket already contains Iceberg data, specify the directory immediately above the schema directory. Example:
oss://iceberg-fs/iceberg-test/.Billing Method
Yes
Subscription or Pay-as-you-go.
Default Quota
Yes
Select an existing quota.
Description
No
A custom project description.
Step 2: Access the data source system using SQL
An external project maps to a data source, so deleting the external project does not delete any data. Unlike standard external tables, executing DROP TABLE or DROP SCHEMA in an external project sends the request to the remote service and deletes the data in the corresponding table or database. Use DROP operations with caution.
Select a connection tool to connect to the external project.
List the schemas in the external project. By default, only database paths that store Iceberg tables are listed.
-- Enable schema syntax for the session. SET odps.namespace.schema=true; SHOW schemas;List the tables in a schema in the external project.
-- Enable schema syntax for the session. SET odps.namespace.schema=true; -- schema_name is the schema name displayed in the external project. USE SCHEMA <schema_name>; SHOW tables;Create a schema in the external project.
-- Enable schema syntax for the session. SET odps.namespace.schema=true; CREATE schema <schema_name>;
Example
Create a table in a schema and insert data.
For the CREATE TABLE syntax for Iceberg tables, see Syntax in MaxCompute-managed Iceberg tables (Beta). A Filesystem Catalog Iceberg external project already maps to an OSS directory, so the location parameter is not required when creating a table in the external project. Specify only the table columns and partition columns.
-- Create a table.
SET odps.namespace.schema=true;
USE SCHEMA <schema_name>;
CREATE TABLE IF NOT EXISTS test_iceberg_partition_table (
id BIGINT,
name STRING,
age INT,
salary DOUBLE,
is_active BOOLEAN,
created_at TIMESTAMP,
dt STRING,
region STRING
) COMMENT 'Test partitioned table for Iceberg filesystem external project'
PARTITIONED BY (dt, region);
-- Insert data.
SET odps.namespace.schema=true;
USE SCHEMA <schema_name>;
INSERT INTO test_iceberg_partition_table VALUES
(1, '张三', 28, 8000.0, TRUE, TIMESTAMP '2026-10-09 12:00:00', '2026-10-09', 'shanghai'),
(2, '李四', 32, 12000.0, TRUE, TIMESTAMP '2026-10-09 13:00:00', '2026-10-09', 'shanghai'),
(3, '王五', 25, 6500.0, FALSE, TIMESTAMP '2026-10-09 14:00:00', '2026-10-09', 'beijing'),
(4, '赵六', 35, 15000.0, TRUE, TIMESTAMP '2026-10-09 15:00:00', '2026-10-10', 'shanghai'),
(5, '孙七', 29, 9000.0, TRUE, TIMESTAMP '2026-10-09 16:00:00', '2026-10-10', 'beijing');
-- Query the table.
SET odps.namespace.schema=true;
USE SCHEMA <schema_name>;
SELECT * FROM test_iceberg_partition_table;
-- Sample output:
+------------+------+------+------------+-----------+------------+----+--------+
| id | name | age | salary | is_active | created_at | dt | region |
+------------+------+------+------------+-----------+------------+----+--------+
| 1 | 张三 | 28 | 8000.0 | true | 2026-10-09 12:00:00 | 2026-10-09 | shanghai |
| 2 | 李四 | 32 | 12000.0 | true | 2026-10-09 13:00:00 | 2026-10-09 | shanghai |
| 3 | 王五 | 25 | 6500.0 | false | 2026-10-09 14:00:00 | 2026-10-09 | beijing |
| 4 | 赵六 | 35 | 15000.0 | true | 2026-10-09 15:00:00 | 2026-10-10 | shanghai |
| 5 | 孙七 | 29 | 9000.0 | true | 2026-10-09 16:00:00 | 2026-10-10 | beijing |
+------------+------+------+------------+-----------+------------+----+--------+