SELECT
TIME,
COLLECT_LIST( VAL1 ) OVER (ORDER BY TIME ROWS BETWEEN 1000 PRECEDING AND CURRENT ROW) AS A_VAL,
COLLECT_LIST( VAL2 ) OVER (ORDER BY TIME ROWS BETWEEN 1000 PRECEDING AND CURRENT ROW) AS B_VAL
FROM
TempTABLE;
위와 같은 형태의 Hive 쿼리를 Oracle로 변경하고자 하나 방법이 모호하여 문의 드립니다.
Collect_list 함수에 대한 정보는 아래와 같습니다.
Built-in Aggregate Functions (UDAF) - The following built-in aggregate functions are supported in Hive:
collect_list // Return type: array, Description: Returns a list of objects with duplicates. (As of Hive 0.13.0.)
|