【发布时间】:2014-12-15 15:46:08
【问题描述】:
我目前正在将 PHP 与 Google BigQuery 一起使用并收到以下错误 -
可捕获的致命错误:传递给 Google_Service_Bigquery_Jobs_Resource::query() 的参数 2 必须是 Google_Service_Bigquery_QueryRequest 的实例,没有给出,在第 34 行的 /a/a/a.com/a/a/a.php 中调用并定义在 /a/a/a.com/a/a/google-api-php-client/src/Google/Service/Bigquery.php 第 722 行
这是围绕它的代码 -
$service = new Google_Service_Bigquery($client);
$results = $service->jobs->query('SELECT * FROM [table.table] LIMIT 50'); // line 34
以前从未使用过 Google BigQuery,所以我不确定我在这里做错了什么
【问题讨论】:
标签: php google-bigquery