如何在没有第三方软件的情况下将 Apache Druid 连接到 Power BI?
How to connect Apache Druid to Power BI without third party software's?
任何人都可以与我分享将 apache druid 连接到 power bi 的过程,我已经尝试过许多网络教程,但我的不幸 none 实现是有效的。
let
Query1 = Json.Document(Web.Contents("paste_url:paste_port/druid/v2/?pretty",
[Headers=[#"Content-Type"="application/json"],
Content=Text.ToBinary(
"{
""queryType"": ""groupBy"",
""dataSource"": ""paste_your_table"",
""dimensions"": [""dimension1""] ,
""granularity"": ""all"",
""aggregations"":
[
{
""name"": ""metric1"",
""type"": ""longSum"",
""fieldName"": ""metric1""
}
],
""intervals"": [ ""2020-07-27T00:00:00.000/2020-08-03T00:00:00.000"" ]
}
"
)
]
)),
totable = Table.FromList(Query1, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
expand = Table.ExpandRecordColumn(totable, "Column1", {"version", "timestamp", "event"}, {"Column1.version", "Column1.timestamp", "Column1.event"})
in
expand
任何人都可以与我分享将 apache druid 连接到 power bi 的过程,我已经尝试过许多网络教程,但我的不幸 none 实现是有效的。
let
Query1 = Json.Document(Web.Contents("paste_url:paste_port/druid/v2/?pretty",
[Headers=[#"Content-Type"="application/json"],
Content=Text.ToBinary(
"{
""queryType"": ""groupBy"",
""dataSource"": ""paste_your_table"",
""dimensions"": [""dimension1""] ,
""granularity"": ""all"",
""aggregations"":
[
{
""name"": ""metric1"",
""type"": ""longSum"",
""fieldName"": ""metric1""
}
],
""intervals"": [ ""2020-07-27T00:00:00.000/2020-08-03T00:00:00.000"" ]
}
"
)
]
)),
totable = Table.FromList(Query1, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
expand = Table.ExpandRecordColumn(totable, "Column1", {"version", "timestamp", "event"}, {"Column1.version", "Column1.timestamp", "Column1.event"})
in
expand