【发布时间】:2017-05-06 19:46:36
【问题描述】:
假设我在 BQ 中有这个 myTable 表:
[
{"name": "executionId", "type": "STRING"},
{"name":"metadata", "type":"record","fields":[
{"name":"fileName", "type":"STRING"},
{"name":"fileType", "type":"STRING"},
{"name":"errors", "type":"STRING"}
]}
]
现在我正在尝试在我的代码中获取表架构。 这是我尝试使用example:
import com.google.cloud.examples.bigquery.snippets.*;
public class MyClass {
public static void main(String[] args) throws Exception {
BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();
BigQuerySnippets bigQuerySnippets = new BigQuerySnippets(bigquery);
Table table = bigQuerySnippets.getTable("MY_DATASET", "myTable");
现在我该如何继续?
table 有这个方法吗?
【问题讨论】:
标签: java google-bigquery