【问题标题】:How to get the last value with the maximum timestamp in ingestion spec in apache druid?如何在apache druid的摄取规范中获取具有最大时间戳的最后一个值?
【发布时间】:2021-03-30 05:57:33
【问题描述】:

我在 https://druid.apache.org/docs/latest/querying/aggregations.html 阅读了有关聚合器的 druid 文档

我想这样使用

{
  "type" : "longLast",
  "name" : <output_name>,
  "fieldName" : <metric_name>,
}

但是在这个文档中有规定,First/Last aggregator 不能在摄取规范中使用。

我不知道如何获取摄取时的最后一个值(指标规格)。

有解决这个问题的办法吗?

【问题讨论】:

    标签: druid data-ingestion


    【解决方案1】:

    stringFirst/stringLast 聚合器从 0.20.0 Druid 版本开始工作。

    【讨论】:

      猜你喜欢
      • 2013-01-17
      • 2021-06-12
      • 2015-05-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-05-12
      • 2019-01-16
      • 1970-01-01
      相关资源
      最近更新 更多