BigQuery Functions Not Working

2019-08-05 15:59发布

The bigquery functions in our apps script had been working fine all along but 18/06/2013 onwards setProjectId(), setQuery() and other BigQuery functions have stopped working.

On using these functions, the variables remain undefined when they should ideally be populated.

A small sample script which reproduces this issue:

var newJobReference = BigQuery.newJobReference().setProjectId(yourProjectID);
var jobConfig = BigQuery.newJobConfiguration().setQuery(yourJobQueryConfiguration);

Anyone facing the same issue? What might be causing this?

1条回答
Explosion°爆炸
2楼-- · 2019-08-05 16:21

Issue is resolved when I use:

var newJobReference = BigQuery.newJobReference();
newJobReference.setProjectId(yourProjectID);

Instead of:

var newJobReference = BigQuery.newJobReference().setProjectId(yourProjectID);
查看更多
登录 后发表回答