【发布时间】:2016-04-15 18:53:08
【问题描述】:
是否可以通过 API 在 BigQuery 表的架构定义中指定 cmets?
通过 Hadoop 连接器创建 BigQuery 表时,我使用以下架构
[{"name" : "event_id", "type" : "integer"},{ "name" : "categorization" , "type" : "string" }]
我想要类似的东西
[{"name" : "event_id", "type" : "integer", "description" : "The event identifier"},{ "name" : "categorization" , "type" : "string" }]
编辑:我刚刚用火花连接器试过这个,但它不起作用。描述仍然是空的
BigQueryConfiguration.configureBigQueryOutput(
bqConfiguration, projectId, bqDatasetId, bqTable, schema)
bqConfiguration.set(
"mapreduce.job.outputformat.class",
classOf[BigQueryOutputFormat[_,_]].getName)
new JavaPairRDD(rdd.map((null, _))).saveAsNewAPIHadoopDataset(bqConfiguration)
}
双重编辑:为上下文添加了一些代码
【问题讨论】:
标签: google-bigquery