Method: hive.v1alpha.projects.catalogs.databases.tables.partitions.batchUpdate

Updates partitions in a table.

HTTP request

POST https://biglake.googleapis.com/hive/v1alpha/{parent=projects/*/catalogs/*/databases/*/tables/*}/partitions:batchUpdate

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Reference to the table to which these partitions belong, in the format of projects/{project}/catalogs/{catalogs}/databases/{database}/tables/{table}.

Request body

The request body contains data with the following structure:

JSON representation
{
  "requests": [
    {
      object (UpdatePartitionRequest)
    }
  ]
}
Fields
requests[]

object (UpdatePartitionRequest)

Required. Requests to update partitions in the table.

Response body

Response message for partitions.batchUpdate.

If successful, the response body contains data with the following structure:

JSON representation
{
  "partitions": [
    {
      object (Partition)
    }
  ]
}
Fields
partitions[]

object (Partition)

The list of partitions that have been updated. A maximum of 900 partitions can be updated in a batch.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/bigquery
  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

UpdatePartitionRequest

Request message for UpdatePartition.

JSON representation
{
  "partition": {
    object (Partition)
  },
  "updateMask": string
}
Fields
partition

object (Partition)

Required. The partition to be updated.

updateMask

string (FieldMask format)

Optional. The list of fields to update.

This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".