- NAME
-
- gcloud alpha biglake iceberg tables create - create a BigLake Iceberg table
- SYNOPSIS
-
-
gcloud alpha biglake iceberg tables create--create-from-file=CREATE_FROM_FILE(--namespace=NAMESPACE:--catalog=CATALOG) [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(ALPHA)Create a BigLake Iceberg table. - EXAMPLES
-
To create a table
my_tablein parent catalogmy-catalogand namespacemy-namespaceusing a creation request fromtable_creation.json, run:gcloud alpha biglake iceberg tables create --namespace=my-namespace --catalog=my-catalog --create-from-file=table_creation.jsonThe table name and schema fields are required and must be specified in
table_creation.json.Example
table_creation.json:{ "name": "my_table", "location": "gs://my-catalog/my-namespace/my_table", "schema": { "type": "struct", "schema-id": 0, "fields": [ { "id": 1, "name": "user_id", "required": true, "type": "long", "doc": "Unique identifier for the user" }, { "id": 2, "name": "username", "required": false, "type": "string" } ] }, "partition-spec": { "spec-id": 0, "fields": [ { "name": "user_id_bucket", "transform": "bucket[5]", "source-id": 1, "partition-id": 1001 } ] }, "write-order": { "order-id": 0, "fields": [ { "transform": "identity", "source-id": 1, "direction": "asc", "null-order": "nulls-last" } ] }, "stage-create": false, "properties": { "owner": "owner", "environment": "test", "write.format.default": "parquet", "comment": "Creating a new table" } }
- REQUIRED FLAGS
-
--create-from-file=CREATE_FROM_FILE-
Path to a JSON file containing the table creation request. The format must
follow the Apache Iceberg REST Catalog Open API specification for
CreateTableRequest. The fieldsnameandschemamust be specified. -
Namespace resource - The Iceberg Namespace to create. The arguments in this
group can be used to specify the attributes of this resource. (NOTE) Some
attributes are not given arguments in this group but can be set in other ways.
To set the
projectattribute:-
provide the argument
--namespaceon the command line with a fully specified name; -
provide the argument
--projecton the command line; -
set the property
core/project.
This must be specified.
--namespace=NAMESPACE-
ID of the namespace or fully qualified identifier for the namespace.
To set the
namespaceattribute:-
provide the argument
--namespaceon the command line.
This flag argument must be specified if any of the other arguments in this group are specified.
-
provide the argument
--catalog=CATALOG-
The Iceberg Catalog for the resource.
To set the
catalogattribute:-
provide the argument
--namespaceon the command line with a fully specified name; -
provide the argument
--catalogon the command line.
-
provide the argument
-
provide the argument
- GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$ gcloud helpfor details. - NOTES
-
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation-only early access
allowlist. This variant is also available:
gcloud beta biglake iceberg tables create
gcloud alpha biglake iceberg tables create
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-03-31 UTC.