数据湖探索 DLI-去重:示例

时间:2024-12-11 09:40:34

示例

根据order_id对数据进行去重,其中proctime为事件时间属性列

SELECT order_id, user, product, number
  FROM (
     SELECT *,
         ROW_NUMBER() OVER (PARTITION BY order_id ORDER BY proctime ASC) as row_num
     FROM Orders)
  WHERE row_num = 1;
support.huaweicloud.com/sqlref-flink-dli/dli_08_15080.html