首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >问答首页 >BigQuery Data.ErrorProto.Reason“停止”

BigQuery Data.ErrorProto.Reason“停止”
EN

Stack Overflow用户
提问于 2014-01-30 15:58:41
回答 1查看 1.7K关注 0票数 11

我使用insertAll()插入数据,但是DataInsertAllRespone.InsertErrors返回我插入的每一行的相同错误。

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

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

这是调用insertAll()的方法:

代码语言:javascript
代码运行次数:0
运行
复制
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;
}

会发生什么?为什么不能上传数据?

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

谢谢,罗杰

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-02-13 23:31:54

几天前我找到了解决办法。当您使用BigQuery ()方法将数据流到insertAll中时,您可以一次流多个行。如果其中一个行是错误的,Data.ErrorProto.Reason包含此错误的消息,例如,“无法将值转换为字符串”。其他行在Data.ErrorProto.Reason.中包含“已停止”。

如果您曾经看到此错误,则可能存在行格式中的不一致。

票数 18
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/21461317

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档