clickhouse:如何在数组中找到在另一列中高于日期的最小日期?

问题描述 投票:0回答:1

基本上,我的表具有以下数据结构:

  • id_level1Int32
  • id_level2Int32
  • event_date日期
  • arr_object_idsInt32的数组]--按下一列排序
  • arr_object_dates日期数组
  • -升序排序

    我需要为每对object_date拥有至少event_date以上的(id_leve1, id_level2)。在Clickhouse中怎么可能?

然后我将使用arrayElement(arr_object_ids, indexOf(arr_object_dates, solution)获得相应的object_id

基本上,我的表具有以下数据结构:id_level1:Int32 id_level2:Int32 event_date:日期arr_object_ids:Int32的数组-按下一列排序arr_object_dates:日期的数组...

clickhouse
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.