BigQuerySource

BigQuery 源导入数据。

JSON 表示法
{
  "projectId": string,
  "datasetId": string,
  "tableId": string,
  "gcsStagingDir": string,
  "dataSchema": string,

  // Union field partition can be only one of the following:
  "partitionDate": {
    object (Date)
  }
  // End of list of possible types for union field partition.
}
字段
projectId

string

包含 BigQuery 源的项目 ID 或项目编号。长度限制为 128 个字符。如果未指定,则继承父请求中的项目 ID。

datasetId

string

必需。要从中复制数据的 BigQuery 数据集,长度限制为 1,024 个字符。

tableId

string

必需。要从中复制数据的 BigQuery 表,长度限制为 1,024 个字符。

gcsStagingDir

string

用于导入操作的中间 Cloud Storage 目录,长度限制为 2,000 个字符。如果要将 BigQuery 内容导出至特定 Cloud Storage 目录,则可以指定。

dataSchema

string

从来源解析数据时要使用的架构。

支持的用户事件导入值:

  • user_event(默认):每行一个 UserEvent

支持的文档导入值:

  • document(默认):每行一个 Document 格式。每个文档都必须具有有效的 Document.id 以及 Document.json_dataDocument.struct_data
  • custom:每行一条自定义数据,格式任意,但要符合数据存储区的 Schema 定义。此功能只能由“宽泛”数据存储区垂直行业使用。
联合字段 partition。BigQuery 表分区信息。如果 BigQuery 表未分区,请将此字段留空。partition 只能是下列其中一项:
partitionDate

object (Date)

BigQuery 时间分区表的 _PARTITIONDATE,采用 YYYY-MM-DD 格式。