小编RCa*_*laf的帖子

BigQuery Data.ErrorProto.Reason"已停止"

我正在插入数据insertAll()DataInsertAllRespone.InsertErrors返回我插入的每一行的相同错误.

这些错误只会给我这个领域

**Data.ErrorProto.Reason** which contains: **"stopped"**.

这是调用insertAll()的方法:

public bool InsertAll(BigqueryService s, String datasetId, String tableId, List<TableDataInsertAllRequest.RowsData> data)
{
    TabledataResource t = s.Tabledata;
    TableDataInsertAllRequest req = new TableDataInsertAllRequest()
    {
        Kind = "bigquery#tableDataInsertAllRequest",
        Rows = data /*Posar aquí les files per pujar al BigQuery*/
    };
    TableDataInsertAllResponse response = t.InsertAll(req, projectId, datasetId, tableId).Execute();
    if (response.InsertErrors != null) return true;
    return false;
}
Run Code Online (Sandbox Code Playgroud)

怎么了?为什么无法上传数据?

*编辑:*我意识到,如果我上传少于6行正常工作,但行大小约为1.6 Kb,最大行大小为20Kb.

谢谢,罗杰

google-bigquery

7
推荐指数
1
解决办法
831
查看次数

标签 统计

google-bigquery ×1