-
Notifications
You must be signed in to change notification settings - Fork 4.5k
🎉 Destination MySQL: Add jdbc_url_params support for optional JDBC parameters #10362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
...tination-mysql/src/main/java/io/airbyte/integrations/destination/mysql/MySQLDestination.java
Outdated
Show resolved
Hide resolved
...tination-mysql/src/main/java/io/airbyte/integrations/destination/mysql/MySQLDestination.java
Outdated
Show resolved
Hide resolved
...tination-mysql/src/main/java/io/airbyte/integrations/destination/mysql/MySQLDestination.java
Outdated
Show resolved
Hide resolved
...tination-mysql/src/main/java/io/airbyte/integrations/destination/mysql/MySQLDestination.java
Show resolved
Hide resolved
...tination-mysql/src/main/java/io/airbyte/integrations/destination/mysql/MySQLDestination.java
Outdated
Show resolved
Hide resolved
if (!additionalParameters.isEmpty()) { | ||
jdbcUrl.append("&"); | ||
jdbcUrl.append("?"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
append "?" instead of "&" since this zeroDateTimeBehavior=convertToNull
is already included in additionalParameters
...tination-mysql/src/main/java/io/airbyte/integrations/destination/mysql/MySQLDestination.java
Show resolved
Hide resolved
Oh, I missed this question during the review. Yes, I think the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates. I think the only thing left is to replace RuntimeException
with a more specific one, like IllegalArgumentException
. Next you can publish a new version of this connector, update the version in the seed, and update the spec. You can follow the pre-merge checklist for details.
/test connector=connectors/destination-mysql
|
/publish connector=connectors/destination-mysql
|
What
Add support for MySQL Destinations to take in a JDBC URL Params input to specify any additional JDBC parameters for the connection
How
Add in
jdbc_url_params
forMySQLDestination
in the configJsonNode
. Optionally append to the JDBC string if it exists and is not empty.Recommended reading order
🚨 User Impact 🚨
Pre-merge Checklist
Expand the relevant checklist and delete the others.
Updating a connector
Community member or Airbyter
[ ] Grant edit access to maintainers (instructions)airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
~bootstrap.md
. See [description and examples]~(https://docs.google.com/document/d/1ypdgmwmEHWv-TrO4_YOQ7pAJGVrMp5BOkEVh831N260/edit?usp=sharing)docs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing/publish
command described here