从查询结果中创建表? [英] Create table out of a query result?

查看:84
本文介绍了从查询结果中创建表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Bigquery的Java API。我正在运行一个选择查询并希望将结果保存到目标表中。

我已经设置了loadConfig.setDestinationTable(),但我得到的是负载配置必须指定至少一个源URI。

你能解释我做错了什么吗?

解决方案

您不想设置loadConfig目标表,而是使用queryConfig.setDestinationTable()来代替(因为这是'加载作业 - 这是查询作业)。正如Fh所说,如果您分享您使用的代码,我们可以提供更详细的帮助。

I'm using Bigquery's Java API. I'm running a select query and want the result saved to a destination table.

I've set the loadConfig.setDestinationTable() but I am getting "Load configuration must specify at least one source URI".

Could you please explain what am I doing wrong?

解决方案

You don't want to set the loadConfig destination table, but the queryConfig.setDestinationTable() instead (since this isn't a load job -- it is a query job). As Fh said, if you share the code you're using we can give more detailed help.

这篇关于从查询结果中创建表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆