[英]GCP dataflow SQL export using service account
I have a service account access to a BQ view and I want to query it and export the data to GCS or a BQ dataset in another project.我有一个访问 BQ 视图的服务帐户,我想查询它并将数据导出到 GCS 或另一个项目中的 BQ 数据集。
Dataflow (+create job from SQL) looks perfect for the use case but I can't work out how to set it up so the service account is used for the query.数据流(+从 SQL 创建作业)看起来非常适合用例,但我不知道如何设置它,因此服务帐户用于查询。 It appears Dataflow accepts using a service account but how is this done?似乎 Dataflow 接受使用服务帐户,但这是如何完成的?
Thanks in advance,提前致谢,
If you want to export data to another BigQuery table, you can simply use an INSERT INTO <table> SELECT * FROM...
(also known as INSERT-SELECT).如果要将数据导出到另一个 BigQuery 表,只需使用INSERT INTO <table> SELECT * FROM...
(也称为 INSERT-SELECT)。 If you need to export this regularly, you can use scheduled queries如果需要定期导出,可以使用预定查询
if you want to export to Google Cloud Storage, you have 2 solutions如果你想导出到谷歌云存储,你有 2 个解决方案
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.