Skip to content

πŸŽ‰ Destination MSSQL: added custom JDBC parameters support. - #13054

Merged
Alexander Tsukanov (alexandertsukanov) merged 8 commits into
masterfrom
prakash_10718_JdbcParam_MSSQL
Jun 8, 2022
Merged

Alexander Tsukanov (alexandertsukanov) merged 8 commits into
masterfrom
prakash_10718_JdbcParam_MSSQL

Conversation

@pcsoni89

@pcsoni89 pcsoni89 commented May 20, 2022 •

Copy link
Copy Markdown
Contributor

What

Add support for MSSQL Destinations to take in a JDBC URL Params input to specify any additional JDBC parameters for the connection.

This is a follow up to #10421
This is part of #9501

How

AbstractJdbcDestination can already handle jdbc parameters via the jdbc_url_params field, but the MSSQLDestination spec does not specify that field. We should update the spec to support additional jdbc parameters for MSSQL destination

Recommended reading order

1.AbstractJdbcDestination.java
2.MSSQLDestination.java

🚨 User Impact 🚨

For existing destination oracle connections, a new parameter i.e. JDBC URL Params will be displayed.It is an optional field and accepts key=value data. There won't be any impact on existing operations.

Pre-merge Checklist

Expand the relevant checklist and delete the others.

New Connector

Airbyter

If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.

  • Create a non-forked branch based on this PR and test the below items on it
  • Build is successful
  • If new credentials are required for use in CI, add them to GSM. Instructions.
  • /test connector=connectors/<name> command is passing
  • New Connector version released on Dockerhub by running the /publish command described here
  • After the connector is published, connector added to connector index as described here
  • Seed specs have been re-generated by building the platform and committing the changes to the seed spec files, as described here
Updating a connector

Community member or Airbyter

  • Grant edit access to maintainers (instructions)
  • Secrets in the connector's spec are annotated with airbyte_secret
  • Unit & integration tests added and passing. Community members, please provide proof of success locally e.g: screenshot or copy-paste unit, integration, and acceptance test output. To run acceptance tests for a Python connector, follow instructions in the README. For java connectors run ./gradlew :airbyte-integrations:connectors:<name>:integrationTest.
  • Code reviews completed
  • Documentation updated
    • Connector's README.md
    • Connector's bootstrap.md. See description and examples
    • Changelog updated in docs/integrations/<source or destination>/<name>.md including changelog. See changelog example
  • PR name follows PR naming conventions

Airbyter

If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.

  • Create a non-forked branch based on this PR and test the below items on it
  • Build is successful
  • If new credentials are required for use in CI, add them to GSM. Instructions.
  • /test connector=connectors/<name> command is passing
  • New Connector version released on Dockerhub and connector version bumped by running the /publish command described here
Connector Generator
  • Issue acceptance criteria met
  • PR name follows PR naming conventions
  • If adding a new generator, add it to the list of scaffold modules being tested
  • The generator test modules (all connectors with -scaffold in their name) have been updated with the latest scaffold by running ./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplates then checking in your changes
  • Documentation which references the generator is updated as needed

Tests

Unit

Put your unit tests output here.

Integration

Put your integration tests output here.

Acceptance

Put your acceptance tests output here.

@alexandertsukanov

Copy link
Copy Markdown
Contributor

pcsoni89 I don't see changes on the UI specification regarding additional JDBC params, does this parameter exist?

@pcsoni89

pcsoni89 commented May 23, 2022 •

Copy link
Copy Markdown
Contributor Author

/test connector=connectors/destination-mssql

πŸ•‘ connectors/destination-mssql https://github.com/airbytehq/airbyte/actions/runs/2371357135
❌ connectors/destination-mssql https://github.com/airbytehq/airbyte/actions/runs/2371357135
πŸ› https://gradle.com/s/eduyq34awxx6o

@alexandertsukanov

Copy link
Copy Markdown
Contributor

pcsoni89 cannot approve until the next things won't be done:

  1. Bumping of the version
  2. Update the changelog.md
  3. Tests will successfully pass

Thanks.

@github-actions github-actions Bot added the area/documentation Improvements or additions to documentation label May 25, 2022
@pcsoni89
pcsoni89 temporarily deployed to more-secrets May 25, 2022 06:50 Inactive
@pcsoni89

Copy link
Copy Markdown
Contributor Author

pcsoni89 cannot approve until the next things won't be done:

  1. Bumping of the version
  2. Update the changelog.md
  3. Tests will successfully pass

Thanks.

Added bump files and changelog.
Waiting for integration test issue to be resolved (another issue going on for integration).

@pcsoni89

pcsoni89 commented May 25, 2022 •

Copy link
Copy Markdown
Contributor Author

/test connector=connectors/destination-mssql

πŸ•‘ connectors/destination-mssql https://github.com/airbytehq/airbyte/actions/runs/2384558320
❌ connectors/destination-mssql https://github.com/airbytehq/airbyte/actions/runs/2384558320
πŸ› https://gradle.com/s/lduyqkh45tio2

@alafanechere

Augustin (alafanechere) commented Jun 3, 2022 •

Copy link
Copy Markdown
Contributor

/test connector=connectors/destination-mssql

πŸ•‘ connectors/destination-mssql https://github.com/airbytehq/airbyte/actions/runs/2433619677
βœ… connectors/destination-mssql https://github.com/airbytehq/airbyte/actions/runs/2433619677
Python tests coverage:

Name                                                              Stmts   Miss  Cover
-------------------------------------------------------------------------------------
normalization/transform_config/__init__.py                            2      0   100%
normalization/transform_catalog/reserved_keywords.py                 13      0   100%
normalization/transform_catalog/__init__.py                           2      0   100%
normalization/destination_type.py                                    13      0   100%
normalization/__init__.py                                             4      0   100%
normalization/transform_catalog/destination_name_transformer.py     155      8    95%
normalization/transform_config/transform.py                         159     31    81%
normalization/transform_catalog/table_name_registry.py              174     34    80%
normalization/transform_catalog/utils.py                             38      9    76%
normalization/transform_catalog/dbt_macro.py                         22      7    68%
normalization/transform_catalog/catalog_processor.py                147     80    46%
normalization/transform_catalog/transform.py                         61     38    38%
normalization/transform_catalog/stream_processor.py                 543    352    35%
-------------------------------------------------------------------------------------
TOTAL                                                              1333    559    58%

Build Passed

Test summary info:

All Passed

@alafanechere

Copy link
Copy Markdown
Contributor

Alexander Tsukanov (@alexandertsukanov) do you approve now that pcsoni89 has made the changes?

@alexandertsukanov

Copy link
Copy Markdown
Contributor

Alexander Tsukanov (@alexandertsukanov) do you approve now that pcsoni89 has made the changes?

Augustin (@alafanechere) Looks like the version in Dockerfile is still not bumped here

@alexandertsukanov

Copy link
Copy Markdown
Contributor

Alexander Tsukanov (@alexandertsukanov) do you approve now that pcsoni89 has made the changes?

Augustin (@alafanechere) Looks like the version in Dockerfile is still not bumped here

Bumped looks like this could be published and merged. But I want to re-run the tests again.

@alexandertsukanov

Alexander Tsukanov (alexandertsukanov) commented Jun 8, 2022 •

Copy link
Copy Markdown
Contributor

/test connector=connectors/destination-mssql

πŸ•‘ connectors/destination-mssql https://github.com/airbytehq/airbyte/actions/runs/2460452665
βœ… connectors/destination-mssql https://github.com/airbytehq/airbyte/actions/runs/2460452665
Python tests coverage:

Name                                                              Stmts   Miss  Cover
-------------------------------------------------------------------------------------
normalization/transform_config/__init__.py                            2      0   100%
normalization/transform_catalog/reserved_keywords.py                 13      0   100%
normalization/transform_catalog/__init__.py                           2      0   100%
normalization/destination_type.py                                    13      0   100%
normalization/__init__.py                                             4      0   100%
normalization/transform_catalog/destination_name_transformer.py     155      8    95%
normalization/transform_config/transform.py                         159     31    81%
normalization/transform_catalog/table_name_registry.py              174     34    80%
normalization/transform_catalog/utils.py                             38      9    76%
normalization/transform_catalog/dbt_macro.py                         22      7    68%
normalization/transform_catalog/catalog_processor.py                147     80    46%
normalization/transform_catalog/transform.py                         61     38    38%
normalization/transform_catalog/stream_processor.py                 543    352    35%
-------------------------------------------------------------------------------------
TOTAL                                                              1333    559    58%

Build Passed

Test summary info:

All Passed

@alexandertsukanov

Alexander Tsukanov (alexandertsukanov) commented Jun 8, 2022 •

Copy link
Copy Markdown
Contributor

/test connector=connectors/destination-mssql-strict-encrypt

πŸ•‘ connectors/destination-mssql-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/2460454092
βœ… connectors/destination-mssql-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/2460454092
Python tests coverage:

Name                                                              Stmts   Miss  Cover
-------------------------------------------------------------------------------------
normalization/transform_config/__init__.py                            2      0   100%
normalization/transform_catalog/reserved_keywords.py                 13      0   100%
normalization/transform_catalog/__init__.py                           2      0   100%
normalization/destination_type.py                                    13      0   100%
normalization/__init__.py                                             4      0   100%
normalization/transform_catalog/destination_name_transformer.py     155      8    95%
normalization/transform_config/transform.py                         159     31    81%
normalization/transform_catalog/table_name_registry.py              174     34    80%
normalization/transform_catalog/utils.py                             38      9    76%
normalization/transform_catalog/dbt_macro.py                         22      7    68%
normalization/transform_catalog/catalog_processor.py                147     80    46%
normalization/transform_catalog/transform.py                         61     38    38%
normalization/transform_catalog/stream_processor.py                 543    352    35%
-------------------------------------------------------------------------------------
TOTAL                                                              1333    559    58%

Build Passed

Test summary info:

All Passed

@grubberr
Serhii Chvaliuk (grubberr) temporarily deployed to more-secrets June 8, 2022 10:21 Inactive
@alexandertsukanov

Alexander Tsukanov (alexandertsukanov) commented Jun 8, 2022 •

Copy link
Copy Markdown
Contributor

/publish connector=connectors/destination-mssql

πŸ•‘ connectors/destination-mssql https://github.com/airbytehq/airbyte/actions/runs/2460884723
πŸš€ Successfully published connectors/destination-mssql
πŸš€ Auto-bumped version for connectors/destination-mssql
βœ… connectors/destination-mssql https://github.com/airbytehq/airbyte/actions/runs/2460884723

@alexandertsukanov

Alexander Tsukanov (alexandertsukanov) commented Jun 8, 2022 •

Copy link
Copy Markdown
Contributor

/publish connector=connectors/destination-mssql-strict-encrypt

πŸ•‘ connectors/destination-mssql-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/2460885356
πŸš€ Successfully published connectors/destination-mssql-strict-encrypt
❌ Couldn't auto-bump version for connectors/destination-mssql-strict-encrypt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants