我需要修改 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 亿条记录,我们只是以这种格式给出响应?
谢谢!