Index
MetastorePartitionService(interface)BatchCreateMetastorePartitionsRequest(message)BatchCreateMetastorePartitionsResponse(message)BatchDeleteMetastorePartitionsRequest(message)BatchSizeTooLargeError(message)BatchUpdateMetastorePartitionsRequest(message)BatchUpdateMetastorePartitionsResponse(message)CreateMetastorePartitionRequest(message)FieldSchema(message)ListMetastorePartitionsRequest(message)ListMetastorePartitionsResponse(message)MetastorePartition(message)MetastorePartitionList(message)MetastorePartitionValues(message)ReadStream(message)SerDeInfo(message)StorageDescriptor(message)StreamList(message)StreamMetastorePartitionsRequest(message)StreamMetastorePartitionsResponse(message)UpdateMetastorePartitionRequest(message)
MetastorePartitionService
BigQuery Metastore Partition Service API. This service is used for managing metastore partitions in BigQuery metastore. The service supports only batch operations for write.
| BatchCreateMetastorePartitions |
|---|
| BatchDeleteMetastorePartitions |
|---|
| BatchUpdateMetastorePartitions |
|---|
| ListMetastorePartitions |
|---|
| StreamMetastorePartitions |
|---|
BatchCreateMetastorePartitionsRequest
Request message for BatchCreateMetastorePartitions.
| Fields | |
|---|---|
parent |
Required. Reference to the table to where the metastore partitions to be added, in the format of projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. |
requests[] |
Required. Requests to add metastore partitions to the table. |
skip_ |
Optional. Mimics the ifNotExists flag in IMetaStoreClient add_partitions(..). If the flag is set to false, the server will return ALREADY_EXISTS if any partition already exists. If the flag is set to true, the server will skip existing partitions and insert only the non-existing partitions. A maximum of 900 partitions can be inserted in a batch. |
BatchCreateMetastorePartitionsResponse
Response message for BatchCreateMetastorePartitions.
| Fields | |
|---|---|
partitions[] |
The list of metastore partitions that have been created. |
BatchDeleteMetastorePartitionsRequest
Request message for BatchDeleteMetastorePartitions. The MetastorePartition is uniquely identified by values, which is an ordered list. Hence, there is no separate name or partition id field.
| Fields | |
|---|---|
parent |
Required. Reference to the table to which these metastore partitions belong, in the format of projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. |
partition_ |
Required. The list of metastore partitions (identified by its values) to be deleted. A maximum of 900 partitions can be deleted in a batch. |
BatchSizeTooLargeError
Structured custom error message for batch size too large error. The error can be attached as error details in the returned rpc Status for more structured error handling in the client.
| Fields | |
|---|---|
max_ |
The maximum number of items that are supported in a single batch. This is returned as a hint to the client to adjust the batch size. |
error_ |
Optional. The error message that is returned to the client. |
BatchUpdateMetastorePartitionsRequest
Request message for BatchUpdateMetastorePartitions.
| Fields | |
|---|---|
parent |
Required. Reference to the table to which these metastore partitions belong, in the format of projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. |
requests[] |
Required. Requests to update metastore partitions in the table. |
BatchUpdateMetastorePartitionsResponse
Response message for BatchUpdateMetastorePartitions.
| Fields | |
|---|---|
partitions[] |
The list of metastore partitions that have been updated. A maximum of 900 partitions can be updated in a batch. |
CreateMetastorePartitionRequest
Request message for CreateMetastorePartition. The MetastorePartition is uniquely identified by values, which is an ordered list. Hence, there is no separate name or partition id field.
| Fields | |
|---|---|
parent |
Required. Reference to the table to where the metastore partition to be added, in the format of projects/{project}/databases/{databases}/tables/{table}. |
metastore_ |
Required. The metastore partition to be added. |
FieldSchema
Schema description of a metastore partition column.
| Fields | |
|---|---|
name |
Required. The name of the column. The maximum length of the name is 1024 characters |
type |
Required. The type of the metastore partition column. Maximum allowed length is 1024 characters. |
ListMetastorePartitionsRequest
Request message for ListMetastorePartitions.
| Fields | |
|---|---|
parent |
Required. Reference to the table to which these metastore partitions belong, in the format of projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. |
filter |
Optional. SQL text filtering statement, similar to a WHERE clause in a query. Only supports single-row expressions. Aggregate functions are not supported. Examples: "int_field > 5" "date_field = CAST('2014-9-27' as DATE)" "nullable_field is not NULL" "st_equals(geo_field, st_geofromtext("POINT(2, 2)"))" "numeric_field BETWEEN 1.0 AND 5.0" Restricted to a maximum length for 1 MB. |
ListMetastorePartitionsResponse
Response message for ListMetastorePartitions.
| Fields | |
|---|---|
Union field response. The response depends on the number of metastore partitions to be returned; it can be a list of partitions or a list of ReadStream objects. For the second situation, the BigQuery Read API ReadRows method must be used to stream the data and convert it into a list of partitions. response can be only one of the following: |
|
partitions |
The list of partitions. |
streams |
The list of streams. |
MetastorePartition
Information about a Hive partition.
| Fields | |
|---|---|
values[] |
Required. Represents the values of the partition keys, where each value corresponds to a specific partition key in the order in which the keys are defined. Each value is limited to 1024 characters. |
create_ |
Output only. The creation time of the partition. |
storage_ |
Optional. Contains information about the physical storage of the data in the partition. |
parameters |
Optional. Additional parameters or metadata associated with the partition. Maximum size 10 KiB. |
fields[] |
Optional. List of columns. |
MetastorePartitionList
List of metastore partitions.
| Fields | |
|---|---|
partitions[] |
Required. List of partitions. |
MetastorePartitionValues
Represents the values of a metastore partition.
| Fields | |
|---|---|
values[] |
Required. The values of the partition keys, where each value corresponds to a specific partition key in the order in which the keys are defined. |
ReadStream
Information about a single stream that is used to read partitions.
| Fields | |
|---|---|
name |
Output only. Identifier. Name of the stream, in the form |
SerDeInfo
Serializer and deserializer information.
| Fields | |
|---|---|
name |
Optional. Name of the SerDe. The maximum length is 256 characters. |
serialization_ |
Required. Specifies a fully-qualified class name of the serialization library that is responsible for the translation of data between table representation and the underlying low-level input and output format structures. The maximum length is 256 characters. |
parameters |
Optional. Key-value pairs that define the initialization parameters for the serialization library. Maximum size 10 Kib. |
StorageDescriptor
Contains information about the physical storage of the data in the metastore partition.
| Fields | |
|---|---|
location_ |
Optional. The physical location of the metastore partition (e.g. |
input_ |
Optional. Specifies the fully qualified class name of the InputFormat (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcInputFormat"). The maximum length is 128 characters. |
output_ |
Optional. Specifies the fully qualified class name of the OutputFormat (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat"). The maximum length is 128 characters. |
serde_ |
Optional. Serializer and deserializer information. |
StreamList
List of streams.
| Fields | |
|---|---|
streams[] |
Output only. List of streams. |
StreamMetastorePartitionsRequest
The top-level message sent by the client to the [Partitions.StreamMetastorePartitions][] method. Follows the default gRPC streaming maximum size of 4 MB.
| Fields | |
|---|---|
parent |
Required. Reference to the table to where the partition to be added, in the format of projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. |
metastore_ |
Optional. A list of metastore partitions to be added to the table. |
skip_ |
Optional. Mimics the ifNotExists flag in IMetaStoreClient add_partitions(..). If the flag is set to false, the server will return ALREADY_EXISTS on commit if any partition already exists. If the flag is set to true: 1) the server will skip existing partitions insert only the non-existing partitions as part of the commit. 2) The client must set the |
StreamMetastorePartitionsResponse
This is the response message sent by the server to the client for the [Partitions.StreamMetastorePartitions][] method when the commit is successful. Server will close the stream after sending this message.
| Fields | |
|---|---|
total_ |
Total count of partitions streamed by the client during the lifetime of the stream. This is only set in the final response message before closing the stream. |
total_ |
Total count of partitions inserted by the server during the lifetime of the stream. This is only set in the final response message before closing the stream. |
UpdateMetastorePartitionRequest
Request message for UpdateMetastorePartition.
| Fields | |
|---|---|
metastore_ |
Required. The metastore partition to be updated. |
update_ |
Optional. The list of fields to update. |