0

我需要修改 Google Data Studio - Google BigQuery Connector 以满足自定义要求。

https://support.google.com/datastudio/answer/6370296

第一个问题:如何找到此数据连接器的源代码?

第二个问题:

根据指南,https://developers.google.com/datastudio/connector/reference,getData (),返回给定请求的表格数据。

响应是这种格式

{
     "schema":[
        {
           "name":"OpportunityName",
           "dataType":"STRING"
        },
        {
           "name":"IsVerified",
           "dataType":"BOOLEAN"
        },
        {
           "name":"Created",
           "dataType":"STRING"
        },
        {
           "name":"Amount",
           "dataType":"NUMBER"
        }
     ],
     "rows":[
        {
           "values":[
              "Interesting",
              true,
              "2017-05-23",
              "120453.65"
           ]
        },
        {
           "values":[
              "SF",
              false,
              "2017-03-03",
              "362705286.92"
           ]
        },
        {
           "values":[
              "Spring Sale",
              true,
              "2017-04-21",
              "870.12"
           ]
        }
     ],
     "cachedData":true
  }

但 BigQuery 的表中可能有 1 亿条记录。我们不在乎它可能是 1 亿条记录,我们只是以这种格式给出响应?

谢谢!

4

1 回答 1

2

现有的 DS-BQ 连接器不是开源的,因此您将无法修改其行为。

照这样说:

  • DS-BQ 连接器有一个比开放式连接器“更智能”的 API 契约——查询和过滤器将被传递下去。

  • 随意使用您可能需要的任何逻辑创建您自己的 DS-BQ 连接器!社区连接器会喜欢你的贡献。

于 2018-10-13T04:14:22.937 回答