Skip to content
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

🎉 BigQuery destination mlp #11238

Merged
merged 21 commits into from
Mar 23, 2022
Merged

🎉 BigQuery destination mlp #11238

merged 21 commits into from
Mar 23, 2022

Conversation

andriikorotkov
Copy link
Contributor

@andriikorotkov andriikorotkov commented Mar 17, 2022

What

Updated spec and documentation according to MLP document

How

2022-03-21_10-40

2022-03-21_10-40_1

Recommended reading order

  1. spec.json
  2. bigquery.md

🚨 User Impact 🚨

No impact

Pre-merge Checklist

Expand the relevant checklist and delete the others.

New Connector

Community member or Airbyter

  • Community member? 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
    • docs/SUMMARY.md
    • docs/integrations/<source or destination>/<name>.md including changelog. See changelog example
    • docs/integrations/README.md
    • airbyte-integrations/builds.md
  • 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 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 by running the /publish command described here
  • After the new connector version is published, connector version bumped in the seed directory 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
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.

@github-actions github-actions bot added area/connectors Connector related issues area/documentation Improvements or additions to documentation labels Mar 17, 2022
@andriikorotkov andriikorotkov temporarily deployed to more-secrets March 17, 2022 16:32 Inactive
@andriikorotkov andriikorotkov temporarily deployed to more-secrets March 17, 2022 16:32 Inactive
@andriikorotkov
Copy link
Contributor Author

andriikorotkov commented Mar 17, 2022

@misteryeo, I edited the spec and documentation, but there are a few issues that I don't quite understand. Please help me to understand a little deeper.

  1. Since this warning is in place, is there a way in the UI for us to lock this down after the destination has been created? https://share.getcloudapp.com/8LuDG6Gm - Unfortunately, this is static text that we added as a description to a specific field, and we can't change it dynamically.
  2. Can we surface BigQuery docs that describe what each field is and where to find that particular field and include that in the field description? - I have added a link to both our and the PSI documentation to the specification in some fields, which may be the biggest problem. But for clear fields, such as "Bucket Name" or "Bucket Path", I did not add a link. There is a rather detailed description for them, and a description with links in our documentation. Will that be enough?

@andriikorotkov andriikorotkov temporarily deployed to more-secrets March 17, 2022 17:53 Inactive
@andriikorotkov andriikorotkov temporarily deployed to more-secrets March 18, 2022 08:57 Inactive
@andriikorotkov andriikorotkov temporarily deployed to more-secrets March 18, 2022 08:57 Inactive
@andriikorotkov andriikorotkov temporarily deployed to more-secrets March 18, 2022 11:37 Inactive
@andriikorotkov andriikorotkov temporarily deployed to more-secrets March 18, 2022 11:37 Inactive
@misteryeo
Copy link
Contributor

@timroes on (1) - is this possible?

@andriikorotkov Let's still pull links to docs for those fields - we don't want to assume that everyone is technical in Cloud. Simply adding "Read more here." and linking docs is sufficient. Thanks!

@timroes
Copy link
Contributor

timroes commented Mar 18, 2022

@misteryeo I am not aware that we'd have any mechanism for this. But I'll pull in @sherifnada for this: Do you know of any way in our spec to define that a field is "setup only" and should not be changeable after creation anymore?

@andriikorotkov andriikorotkov temporarily deployed to more-secrets March 18, 2022 16:32 Inactive
@andriikorotkov andriikorotkov temporarily deployed to more-secrets March 18, 2022 16:32 Inactive
@sherifnada
Copy link
Contributor

@timroes there isn’t a way to describe that a field is immutable.

@andriikorotkov
Copy link
Contributor Author

@sherifnada, @misteryeo I found another small bug in the specs. When we have a field of type "oneOf", it is not marked with an asterisk as required, although it is present in the array "required". I will create a followup ticket to fix this.

@andriikorotkov andriikorotkov marked this pull request as ready for review March 18, 2022 20:59
@andriikorotkov
Copy link
Contributor Author

andriikorotkov commented Mar 18, 2022

/test connector=connectors/destination-bigquery

🕑 connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/2006453373
❌ connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/2006453373
🐛

@andriikorotkov
Copy link
Contributor Author

andriikorotkov commented Mar 19, 2022

/test connector=connectors/destination-bigquery

🕑 connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/2008893450
❌ connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/2008893450
🐛

@andriikorotkov
Copy link
Contributor Author

andriikorotkov commented Mar 19, 2022

/test connector=connectors/destination-bigquery

🕑 connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/2009673106
❌ connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/2009673106
🐛

@andriikorotkov
Copy link
Contributor Author

andriikorotkov commented Mar 19, 2022

/test connector=connectors/destination-bigquery

🕑 connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/2009812058
✅ connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/2009812058
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%
/actions-runner/_work/airbyte/airbyte/airbyte-integrations/bases/airbyte-protocol/airbyte_protocol/models/airbyte_protocol.py     124      0   100%
/actions-runner/_work/airbyte/airbyte/airbyte-integrations/bases/airbyte-protocol/airbyte_protocol/models/__init__.py               1      0   100%
/actions-runner/_work/airbyte/airbyte/airbyte-integrations/bases/airbyte-protocol/airbyte_protocol/__init__.py                      2      0   100%
normalization/transform_catalog/destination_name_transformer.py                                                                   155      8    95%
normalization/transform_config/transform.py                                                                                       159     30    81%
normalization/transform_catalog/table_name_registry.py                                                                            174     34    80%
normalization/transform_catalog/utils.py                                                                                           33      7    79%
normalization/transform_catalog/catalog_processor.py                                                                              143     77    46%
normalization/transform_catalog/transform.py                                                                                       45     26    42%
normalization/transform_catalog/stream_processor.py                                                                               524    337    36%
---------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                                                                                            1394    519    63%

…bigquery_mlp

� Conflicts:
�	docs/integrations/destinations/bigquery.md
@andriikorotkov
Copy link
Contributor Author

andriikorotkov commented Mar 20, 2022

/test connector=connectors/destination-bigquery

🕑 connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/2011784640
✅ connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/2011784640
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%
/actions-runner/_work/airbyte/airbyte/airbyte-integrations/bases/airbyte-protocol/airbyte_protocol/models/airbyte_protocol.py     124      0   100%
/actions-runner/_work/airbyte/airbyte/airbyte-integrations/bases/airbyte-protocol/airbyte_protocol/models/__init__.py               1      0   100%
/actions-runner/_work/airbyte/airbyte/airbyte-integrations/bases/airbyte-protocol/airbyte_protocol/__init__.py                      2      0   100%
normalization/transform_catalog/destination_name_transformer.py                                                                   155      8    95%
normalization/transform_config/transform.py                                                                                       159     30    81%
normalization/transform_catalog/table_name_registry.py                                                                            174     34    80%
normalization/transform_catalog/utils.py                                                                                           33      7    79%
normalization/transform_catalog/catalog_processor.py                                                                              143     77    46%
normalization/transform_catalog/transform.py                                                                                       45     26    42%
normalization/transform_catalog/stream_processor.py                                                                               524    337    36%
---------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                                                                                            1394    519    63%

@andriikorotkov
Copy link
Contributor Author

andriikorotkov commented Mar 22, 2022

/test connector=connectors/destination-bigquery

🕑 connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/2021103211
✅ connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/2021103211
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%
/actions-runner/_work/airbyte/airbyte/airbyte-integrations/bases/airbyte-protocol/airbyte_protocol/models/airbyte_protocol.py     124      0   100%
/actions-runner/_work/airbyte/airbyte/airbyte-integrations/bases/airbyte-protocol/airbyte_protocol/models/__init__.py               1      0   100%
/actions-runner/_work/airbyte/airbyte/airbyte-integrations/bases/airbyte-protocol/airbyte_protocol/__init__.py                      2      0   100%
normalization/transform_catalog/destination_name_transformer.py                                                                   155      8    95%
normalization/transform_config/transform.py                                                                                       159     30    81%
normalization/transform_catalog/table_name_registry.py                                                                            174     34    80%
normalization/transform_catalog/utils.py                                                                                           33      7    79%
normalization/transform_catalog/catalog_processor.py                                                                              143     77    46%
normalization/transform_catalog/transform.py                                                                                       45     26    42%
normalization/transform_catalog/stream_processor.py                                                                               524    337    36%
---------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                                                                                            1394    519    63%

@andriikorotkov
Copy link
Contributor Author

/publish connector=connectors/destination-bigquery

@andriikorotkov
Copy link
Contributor Author

andriikorotkov commented Mar 22, 2022

/publish connector=connectors/destination-bigquery

❌ connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/2022414876

@andriikorotkov
Copy link
Contributor Author

andriikorotkov commented Mar 22, 2022

/publish connector=connectors/destination-bigquery

❌ connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/2023131849

@andriikorotkov
Copy link
Contributor Author

andriikorotkov commented Mar 23, 2022

/publish connector=connectors/destination-bigquery

🕑 connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/2027724461
✅ connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/2027724461

@andriikorotkov andriikorotkov temporarily deployed to more-secrets March 23, 2022 11:19 Inactive
@andriikorotkov andriikorotkov temporarily deployed to more-secrets March 23, 2022 11:19 Inactive
@andriikorotkov andriikorotkov merged commit 8771ba9 into master Mar 23, 2022
@andriikorotkov andriikorotkov deleted the akorotkov/bigquery_mlp branch March 23, 2022 11:46
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/documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants