|
|
@@ -12,6 +12,13 @@ For realtime video-flow partitions, set year, month, and day consistently. For o
|
|
|
## Bucket and source definitions
|
|
|
|
|
|
- Read `rootSessionId` from the applicable physical column or `extparams`.
|
|
|
+- Realtime field mapping:
|
|
|
+ - `loghubods.useractive_log_per5min`: `GET_JSON_OBJECT(extparams, '$.rootSessionId')`.
|
|
|
+ - `loghubods.video_action_log_flow`: `GET_JSON_OBJECT(extparams, '$.rootSessionId')`.
|
|
|
+ - `loghubods.user_share_log_per5min`: physical column `rootsessionid`.
|
|
|
+- Realtime partition mapping:
|
|
|
+ - `useractive_log_per5min` and `user_share_log_per5min`: `dt LIKE 'yyyyMMdd%'`.
|
|
|
+ - `video_action_log_flow`: filter `year`, `month`, and day-valued `dt`; omit `hh` for the current-day cumulative result.
|
|
|
- For position `n` from the end, use `LOWER(SUBSTR(rootSessionId, LENGTH(rootSessionId) - n + 1, 1))` and retain only `^[0-9a-f]$`.
|
|
|
- Head: `pagesource RLIKE 'user-videos-share$'`.
|
|
|
- Recommendation: `pagesource RLIKE '(detail|category|recommend)$'`.
|