【发布时间】:2018-03-15 14:25:51
【问题描述】:
我正在寻找更新 BigQuery 中现有表的架构的方法。我可以看到在 python here 中做同样的事情,这是一个 API 请求。我想在 Java 中看到这一点,并浏览我能找到的文档和源代码
TableDefinition tableDefinition = StandardTableDefinition.of(schema);
table.toBuilder().setDefinition(definition)
但它重写了整个架构。其他可能的更新模式的方法可以找到here
有人可以指导我使用 Java 向 BigQuery 中的现有表添加新列吗?
【问题讨论】:
-
看看这里:github.com/GoogleCloudPlatform/google-cloud-java/issues/1564 您需要再次指定整个架构 - 包括您的新列。
-
@GrahamPolley 您能否将您的回复添加为答案而不是评论?
标签: java google-bigquery schema updates patch