Add AFTER_CHAT_WORK_FORMATTED field to the stg digital table
This commit is contained in:
parent
e17a8b87e5
commit
28aa664250
@ -79,6 +79,11 @@ select AGENT_NAME,
|
||||
TRANSFERRED_FROM,
|
||||
TRANSFERRED_TO,
|
||||
AFTER_CHAT_WORK,
|
||||
regexp_replace(
|
||||
cast(time(timestamp_seconds(cast(AFTER_CHAT_WORK as int))) as string),
|
||||
r'^\d\d',
|
||||
cast(extract(hour from time(timestamp_seconds(cast(AFTER_CHAT_WORK as int)))) + 24 * unix_date(date(timestamp_seconds(cast(AFTER_CHAT_WORK as int)))) as string)
|
||||
) as AFTER_CHAT_WORK_FORMATTED,
|
||||
AUTO_REQUEUE,
|
||||
CHAT_ENGAGED,
|
||||
CHAT_QUEUE_TIME,
|
||||
@ -168,6 +173,6 @@ select AGENT_NAME,
|
||||
r'^\d\d',
|
||||
cast(extract(hour from time(timestamp_seconds(cast(VIDEO_TIME as int)))) + 24 * unix_date(date(timestamp_seconds(cast(VIDEO_TIME as int)))) as string)
|
||||
) as VIDEO_TIME_FORMATTED,
|
||||
VIDEO_TOTAL_DURATION
|
||||
VIDEO_TOTAL_DURATION,
|
||||
from digital_deduplicated
|
||||
where row_number = 1
|
||||
Loading…
Reference in New Issue
Block a user