Skip to content

Commit 2a6f4eb

Browse files
committed
datetimefix
1 parent 4a84dde commit 2a6f4eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

distribution/lib/Standard/AWS/0.0.0-dev/src/Database/Redshift/Redshift_Connection.enso

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,8 @@ type Redshift_Connection
431431
s3_file_path = normalized_staging_bucket2 + table_name + "_" + Random.uuid + ".csv"
432432
s3_file = S3_File.new s3_file_path staging_bucket_credentials
433433
if s3_file.is_error then Error.throw s3_file
434-
written_s3_file = table.write s3_file format=..Delimited
434+
normalized_datetime_table = table.format [(..By_Type ..Date_Time)] 'yyyy-MM-dd HH:mm:ssz'
435+
written_s3_file = normalized_datetime_table.write s3_file format=..Delimited
435436
if written_s3_file.is_error then Error.throw written_s3_file
436437

437438
created_table = if exists.not then self.create_table table_name table primary_key=[] temporary=temporary else case if_exists of

0 commit comments

Comments
 (0)