Justin Cole
02/04/2022, 1:38 PMJustin Cole
02/04/2022, 1:41 PMAugustin Lafanechere (Airbyte)
02/04/2022, 1:56 PMpublic static String getOutputFilename(final Timestamp timestamp, final String customSuffix, final S3Format format) {
final DateFormat formatter = new SimpleDateFormat(S3DestinationConstants.YYYY_MM_DD_FORMAT_STRING);
formatter.setTimeZone(TimeZone.getTimeZone("UTC"));
return String.format(
"%s_%d%s.%s",
formatter.format(timestamp),
timestamp.getTime(),
customSuffix,
format.getFileExtension());
}
Feel free to open an issue to request this feature.Justin Cole
02/04/2022, 1:58 PMJustin Cole
02/04/2022, 2:00 PM