Skip to content

Commit

Permalink
and the default compression is gzip apparently?
Browse files Browse the repository at this point in the history
  • Loading branch information
johnny-schmidt committed Nov 25, 2024
1 parent 114a17d commit e3f0bb4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ data class DestinationCatalog(val streams: List<DestinationStream> = emptyList()
"Catalog must have at least one stream: check that files are in the correct location."
)
}
log.info { "Destination catalog initialized: $streams"}
log.info { "Destination catalog initialized: $streams" }
}

fun getStream(name: String, namespace: String?): DestinationStream {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,11 @@ class DestinationMessageFactory(
namespace = status.streamDescriptor.namespace,
name = status.streamDescriptor.name,
)
if ((message.trace.type ?: AirbyteTraceMessage.Type.STREAM_STATUS) == AirbyteTraceMessage.Type.STREAM_STATUS) {
if (
(message.trace.type
?: AirbyteTraceMessage.Type.STREAM_STATUS) ==
AirbyteTraceMessage.Type.STREAM_STATUS
) {
when (status.status) {
AirbyteStreamStatus.COMPLETE ->
if (fileTransferEnabled) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ class CSVFormatSpecification(
ObjectStorageCompressionSpecificationProvider {
override val flattening: FlatteningSpecificationProvider.Flattening =
FlatteningSpecificationProvider.Flattening.NO_FLATTENING
override val compression: ObjectStorageCompressionSpecification? = NoCompressionSpecification()
override val compression: ObjectStorageCompressionSpecification? =
GZIPCompressionSpecification()
}

/** JSONL */
Expand All @@ -144,7 +145,8 @@ class JsonFormatSpecification(
ObjectStorageCompressionSpecificationProvider {
override val flattening: FlatteningSpecificationProvider.Flattening? =
FlatteningSpecificationProvider.Flattening.NO_FLATTENING
override val compression: ObjectStorageCompressionSpecification? = NoCompressionSpecification()
override val compression: ObjectStorageCompressionSpecification? =
GZIPCompressionSpecification()
}

/** AVRO */
Expand Down

0 comments on commit e3f0bb4

Please sign in to comment.