Data Studio社区连接器错误:数据中的列数与架构中的数不匹配. [英] Data Studio Community Connector error: The number of columns in the data does not match the number in the schema.

查看:109
本文介绍了Data Studio社区连接器错误:数据中的列数与架构中的数不匹配.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试浏览由自定义连接器获取的数据源时,遇到系统错误:593d1fe0.

When I try to explore my data source fetched by a custom connector, I encounter a System error: 593d1fe0.

The number of columns received in the data returned from the community connector does not match the number of columns requested by Data Studio

但是当我调试getData函数时,结果包含相同的列和相同的列数.

But When I'm debugging my getData function, the result contains the same columns and same number of columns.

什么会引起这种麻烦? 调试视图的一些屏幕截图:

What can cause this kind of troubles ? some screenshots of the debug view:

我的输出结构正确吗?关于列名,有什么要考虑的东西吗?

Is my output structure correct ? is there something to consider regarding column names ?

推荐答案

Data Studio不会从getData函数请求所有可能的字段.在大多数情况下,Data Studio会从可用字段中请求一小部分.进行getData调用时,必填字段列表将在request对象中传递.

Data Studio does not request all the possible fields from getData function. Most of the times, Data Studio will request a small subset from available fields. The list of required fields will be passed in the request object when the getData call is made.

请参见 getData参考文档,以了解requestfields.

您的getData响应不应返回所有可用字段.而是,响应应仅返回请求的字段.请参阅示例代码,其中显示了如何过滤字段.

Your getData response should not return all available fields. Rather, the response should return only the requested fields. See example code showing how you can filter the fields.

要获取更多帮助,您可以尝试使用官方 codelab -步骤10 与您的问题有关.您还可以在官方的 Data Studio开源存储库中查看更多示例.

For additional help, you can try the official codelab - Step 10 is relevant to your question. You can also view more examples at the official Data Studio Open Source repo.

这篇关于Data Studio社区连接器错误:数据中的列数与架构中的数不匹配.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆