From a2cc5188c160aee31fa03ad5943078f5af039656 Mon Sep 17 00:00:00 2001 From: Danijel Schiavuzzi Date: Fri, 1 Jul 2022 11:10:49 +0100 Subject: [PATCH] [opt-tech/redshift-fake-driver#74] Change UNLOAD command's CSV file suffix to match official AWS Redshift: https://docs.aws.amazon.com/redshift/latest/dg/r_UNLOAD.html --- src/main/scala/jp/ne/opt/redshiftfake/write/Writer.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/jp/ne/opt/redshiftfake/write/Writer.scala b/src/main/scala/jp/ne/opt/redshiftfake/write/Writer.scala index 867757a..b212355 100644 --- a/src/main/scala/jp/ne/opt/redshiftfake/write/Writer.scala +++ b/src/main/scala/jp/ne/opt/redshiftfake/write/Writer.scala @@ -30,7 +30,7 @@ class Writer(unloadCommand: UnloadCommand, s3Service: S3Service) { } } val result = stream.toString("UTF-8") - val resultKey = s"${unloadCommand.destination.prefix}0000_part_00" + val resultKey = s"${unloadCommand.destination.prefix}000" if (unloadCommand.createManifest) { val resultUrl = unloadCommand.destination.copy(prefix = resultKey).full