gcloud metastore services move-table-to-database (SERVICE : --location=LOCATION) --destination_db_name=DESTINATION_DB_NAME --source_db_name=SOURCE_DB_NAME --table_name=TABLE_NAME [--async] [GCLOUD_WIDE_FLAG …]
If run asynchronously with --async, exits after printing one
operation name that can be used to poll the status of the creation via:
gcloud metastore operations describe
us-central, run:
gcloud metastore services move-table-to-database my-metastore-service --location=us-central1 --table_name=table_name_to_move --source_db_name=database_name_to_move --destination_db_name=destination_database_name
To set the project attribute:
service on the command line with a fully
specified name;
--project on the command line;
core/project.
SERVICE
To set the service attribute:
service on the command line.
--location=LOCATIONdefault metastore/location.
To set the location attribute:
service on the command line with a fully
specified name;
--location on the command line;
metastore/location.
--destination_db_name=DESTINATION_DB_NAME--source_db_name=SOURCE_DB_NAME--table_name=TABLE_NAME--async--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 help for details.
metastore/v1 API. The full documentation for
this API can be found at: https://cloud.google.com/dataproc-metastore/docs
gcloud alpha metastore services move-table-to-databasegcloud beta metastore services move-table-to-database
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-05-27 UTC.