Skip to content

Commit 2b8f38f

Browse files
committed
Correct the parsing of timestamp
Signed-off-by: Ryan Liang <[email protected]>
1 parent 820835d commit 2b8f38f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/adaptors/integrations/__data__/repository/aws_s3/assets/create_mv-1.0.0.sql

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ CREATE MATERIALIZED VIEW {table_name}_mview AS
22
SELECT
33
owner_id AS `aws.s3.bucket_owner`,
44
bucket_name AS `aws.s3.bucket`,
5+
to_timestamp(CONCAT(SUBSTRING(request_time, 2), ' ', SUBSTRING(request_time_zone, 1, LENGTH(request_time_zone) - 1)), 'dd/MMM/yyyy:HH:mm:ss Z') AS `@timestamp`,
56
CONCAT(request_time, ' ', request_time_zone) AS `aws.s3.request_time`,
67
remote_ip AS `aws.s3.remote_ip`,
78
requester AS `aws.s3.requester`,

0 commit comments

Comments
 (0)