Skip to content

Commit

Permalink
cdk-java: improve java compatibility for s3-glue (#47216)
Browse files Browse the repository at this point in the history
a customer is trying to modify destination-s3-glue, which is written in java. It calls a constructor to BaseS3Destination that doesn't have all optional parameters, and defines a class that extends WriteConfig. I just added an @JvmOverload and a open to the respective lines
  • Loading branch information
stephane-airbyte authored Oct 22, 2024
1 parent 9947b32 commit e6dcf00
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions airbyte-cdk/java/airbyte-cdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ corresponds to that version.

| Version | Date | Pull Request | Subject |
|:-----------|:-----------|:------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 0.47.2 | 2024-10-21 | [\#47216](https://github.com/airbytehq/airbyte/pull/47216) | improve java compatibiilty|
| 0.47.1 | 2024-09-27 | [\#45397](https://github.com/airbytehq/airbyte/pull/45397) | Allow logical replication from Postgres 16 read-replicas|
| 0.47.0 | 2024-09-26 | [\#42030](https://github.com/airbytehq/airbyte/pull/42030) | minor refactor |
| 0.46.1 | 2024-09-20 | [\#45700](https://github.com/airbytehq/airbyte/pull/45700) | Destinations: Fix bug in parsing jsonschema |
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=0.47.1
version=0.47.2
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import java.util.function.Consumer
private val LOGGER = KotlinLogging.logger {}

abstract class BaseS3Destination
@JvmOverloads
protected constructor(
protected val configFactory: S3DestinationConfigFactory = S3DestinationConfigFactory(),
protected val environment: Map<String, String> = System.getenv(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package io.airbyte.cdk.integrations.destination.s3

import io.airbyte.protocol.models.v0.DestinationSyncMode

class WriteConfig
open class WriteConfig
@JvmOverloads
constructor(
val namespace: String?,
Expand Down

0 comments on commit e6dcf00

Please sign in to comment.