Skip to content

Commit

Permalink
Merge pull request #75 from dschiavu/GH-74-Change_UNLOAD_CSV_suffix_t…
Browse files Browse the repository at this point in the history
…o_official_spec

[#74] Change UNLOAD command's CSV file suffix to match official AWS Redshift:
  • Loading branch information
ocadaruma authored Jul 8, 2022
2 parents 5eb359c + a2cc518 commit 0995e10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/jp/ne/opt/redshiftfake/write/Writer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0995e10

Please sign in to comment.