从Google Apps脚本运行保存的bigquery查询? [英] Run a saved bigquery query from Google Apps Script?

查看:58
本文介绍了从Google Apps脚本运行保存的bigquery查询?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们经常使用Google Apps脚本来运行BigQuery查询并将其放入Google表格中.但是,工作流程很烦人:

We frequently use Google Apps script to run BigQuery queries and put them into a Google Sheet. However, the workflow is annoying:

  1. 在BigQuery中运行查询,直到正确为止.
  2. 复制/粘贴到文本编辑器以放入换行斜杠
  3. 在应用脚本中运行它,希望它能工作
  4. 返回BigQuery并在出现问题的情况下重复1-3.

是否可以使用BigQuery的保存功能保存查询,然后从脚本中调用该特定查询?

Is there some way to just save a query using BigQuery's save function, and then call that specific query from a script?

推荐答案

一种解决方法...

尝试另存为视图,并执行一个简单的

try saving as a view, and execute a simple

Select * from MyView

这篇关于从Google Apps脚本运行保存的bigquery查询?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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