当使用PHP将行插入Google Big Query时,不会发生任何事情



我正在尝试将单行数据插入我在Google Big Query的演示项目中。我正在使用 PHP Google Cloud 客户端库:

# Imports the Google Cloud client library
use GoogleCloudBigQueryBigQueryClient;

创建表或数据集工作正常。但是当我尝试使用以下代码进行正常插入时:

# Instantiates a client
$bigQuery = new BigQueryClient( [
    'projectId' => $projectId
] );
# The name for the new dataset
$datasetName = 'demo';
$tablaName = "demo";
$table = $bigQuery->dataset( $datasetName )
                  ->table( $tablaName );
$row = [
    'city' => 'Detroit',
    'state' => 'MI',
    'home' => 'black'
];
$insertResponse = $table->insertRow($row, [
    'insertId' => '1'
]);

我得到的只是空白页面,没有任何错误。如果(出于测试目的(我正在更改其中一个数据字段名称(让我们说"city"到不存在的"cityyy" - 那么我收到错误,没有这样的字段有给定的名称 - 这意味着请求工作正常,但为什么我得到空的白页? 并且没有新行插入到我的演示表中(我正在使用大查询 UI 检查它(?

有什么想法吗?

好的,想通了...

尝试通过API进行选择,并显示所有插入的行。

似乎谷歌大查询

缓存在谷歌大查询GUI(Web界面(上显示了旧结果。

最新更新