-
Notifications
You must be signed in to change notification settings - Fork 4.5k
De-duplicate config parameters #14781
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For all the failed integration tests, tested on the
|
80f7919
to
c2bf6cd
Compare
Created github issues for each of the failures for GL to take a further look into:
|
…d corresponding config params
…ted corresponding config params
…nd fixed uncaught parenthesis
c2bf6cd
to
3fa68e8
Compare
grishick
approved these changes
Jul 21, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/connectors
Connector related issues
area/platform
issues related to the platform
area/server
connectors/destination/clickhouse
connectors/destination/clickhouse-strict-encrypt
connectors/destination/jdbc
connectors/destination/mariadb-columnstore
connectors/destination/mongodb
connectors/destination/mongodb-strict-encrypt
connectors/destination/mssql
connectors/destination/mssql-strict-encrypt
connectors/destination/mysql
connectors/destination/mysql-strict-encrypt
connectors/destination/oracle
connectors/destination/oracle-strict-encrypt
connectors/destination/postgres
connectors/destination/postgres-strict-encrypt
connectors/destination/redshift
connectors/destination/snowflake
connectors/source/clickhouse
connectors/source/clickhouse-strict-encrypt
connectors/source/cockroachdb
connectors/source/cockroachdb-strict-encrypt
connectors/source/db2
connectors/source/jdbc
connectors/source/mongodb-strict-encrypt
connectors/source/mongodb-v2
connectors/source/mssql
connectors/source/mssql-strict-encrypt
connectors/source/mysql
connectors/source/mysql-strict-encrypt
connectors/source/oracle
connectors/source/oracle-strict-encrypt
connectors/source/postgres
connectors/source/postgres-strict-encrypt
connectors/source/redshift
connectors/source/scaffold-java-jdbc
connectors/source/snowflake
connectors/source/tidb
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
De-duplicating and consolidating config parameters to be referenced only from
JdbcUtils.java
. Currently there are several files that are using constants of the same string so this change will help to move all those constants in a single file accessible by all JDBC connections. Original Github Issue: #14698How
Refactor most of the JDBC connections to move
ssl
,jdbc_url
,host
,post
,password
,username
,schema
,schemas
, etc config parameters to be placed inJdbcUtils.java
Recommended reading order:
Each of these files have overlapping config parameter constants that are consolidated into
JdbcUtils.java
JdbcUtils.java
ClickhouseDestination.java
MariadbColumnstoreDestination.java
MongodbDestinationStrictEncryptAcceptanceTest.java
MongodbDestination.java
MongodbDestinationAcceptanceTest.java
MSSQLDestination.java
MySQLDestination.java
SshMySQLDestinationAcceptanceTest.java
OracleDestination.java
PostgresDestination.java
RedshiftInsertDestination.java
RedshiftStagingS3Destination.java
CockroachDbSource.java
Db2Source.java
Db2SourceAcceptanceTest.java
MongoDbSource.java
MssqlSource.java
RedshiftSource.java
🚨 User Impact 🚨
Are there any breaking changes? What is the end result perceived by the user? If yes, please merge this PR with the 🚨🚨 emoji so changelog authors can further highlight this if needed.
There are no breaking changes, it is mainly a refactor to keep the diverging constants for JDBC config parameters centralized in one file that can be referenced across
Source
andDestination
connectorsNOTE: there seems to be an inconsistency with the naming of our connectors (e.g.
MssqlSource.java
vsMSSQLDestination.java
)Pre-merge Checklist
Expand the relevant checklist and delete the others.
New Connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampledocs/integrations/README.md
airbyte-integrations/builds.md
Airbyter
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 hereUpdating a connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/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 hereConnector Generator
-scaffold
in their name) have been updated with the latest scaffold by running./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplates
then checking in your changesTests
Unit
Put your unit tests output here.
Integration
Put your integration tests output here.
Acceptance
Put your acceptance tests output here.