Skip to content

🐛 Destination BigQuery (+denormalized): correctly parse buffer count - #26213

Merged
Edward Gao (edgao) merged 17 commits into
masterfrom
edgao/dest_bq_parse_file_buffer_count_config
May 18, 2023
Merged

Edward Gao (edgao) merged 17 commits into
masterfrom
edgao/dest_bq_parse_file_buffer_count_config

Conversation

@edgao

@edgao Edward Gao (edgao) commented May 17, 2023 •

Copy link
Copy Markdown
Contributor

we're not actually parsing the config correctly (it's nested under the loading_method object). Extract it correctly.

also swap the order of parameters in the assertEquals calls. The convention is assertEquals(expected, actual).

@github-actions

github-actions Bot commented May 17, 2023 •

Copy link
Copy Markdown
Contributor

Before Merging a Connector Pull Request

Wow! What a great pull request you have here! 🎉

To merge this PR, ensure the following has been done/considered for each connector added or updated:

  • PR name follows PR naming conventions
  • Breaking changes are considered. If a Breaking Change is being introduced, ensure an Airbyte engineer has created a Breaking Change Plan and you've followed all steps in the Breaking Changes Checklist
  • Connector version has been incremented in the Dockerfile and metadata.yaml according to our Semantic Versioning for Connectors guidelines
  • Secrets in the connector's spec are annotated with airbyte_secret
  • All documentation files are up to date. (README.md, bootstrap.md, docs.md, etc...)
  • Changelog updated in docs/integrations/<source or destination>/<name>.md with an entry for the new version. See changelog example
  • You, or an Airbyter, have run /test successfully on this PR - or on a non-forked branch
  • You, or an Airbyter, have run /publish successfully on this PR - or on a non-forked branch
  • You've updated the connector's metadata.yaml file new!

If the checklist is complete, but the CI check is failing,

  1. Check for hidden checklists in your PR description

  2. Toggle the github label checklist-action-run on/off to re-run the checklist CI.

@edgao

This comment was marked as outdated.

@edgao

This comment was marked as outdated.

@github-actions

github-actions Bot commented May 17, 2023 •

Copy link
Copy Markdown
Contributor

Affected Connector Report

NOTE ⚠️ Changes in this PR affect the following connectors. Make sure to do the following as needed:

  • Run integration tests
  • Bump connector or module version
  • Add changelog
  • Publish the new version

✅ Sources (0)

Connector Version Changelog Publish
  • See "Actionable Items" below for how to resolve warnings and errors.

❌ Destinations (2)

Connector Version Changelog Publish
destination-bigquery 1.4.3 ✅ ❌
(diff seed version)
destination-bigquery-denormalized 1.4.1 ✅ ❌
(diff seed version)
  • See "Actionable Items" below for how to resolve warnings and errors.

👀 Other Modules (1)

  • base-normalization

Actionable Items

(click to expand)

Category Status Actionable Item
Version ❌
mismatch
The version of the connector is different from its normal variant. Please bump the version of the connector.
⚠
doc not found
The connector does not seem to have a documentation file. This can be normal (e.g. basic connector like source-jdbc is not published or documented). Please double-check to make sure that it is not a bug.
Changelog ⚠
doc not found
The connector does not seem to have a documentation file. This can be normal (e.g. basic connector like source-jdbc is not published or documented). Please double-check to make sure that it is not a bug.
❌
changelog missing
There is no chnagelog for the current version of the connector. If you are the author of the current version, please add a changelog.
Publish ⚠
not in seed
The connector is not in the cloud or oss registry, so its publication status cannot be checked. This can be normal (e.g. some connectors are cloud-specific, and only listed in the cloud seed file). Please double-check to make sure that you have added a metadata.yaml file and the expected registries are enabled.

@edgao

This comment was marked as outdated.

@edgao

This comment was marked as outdated.

@edgao

Edward Gao (edgao) commented May 17, 2023 •

Copy link
Copy Markdown
Contributor Author

/test connector=connectors/destination-bigquery

🕑 connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/5008629473
✅ connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/5008629473
Python tests coverage:

Name                                                              Stmts   Miss  Cover
-------------------------------------------------------------------------------------
normalization/transform_config/__init__.py                            2      0   100%
normalization/transform_catalog/reserved_keywords.py                 15      0   100%
normalization/transform_catalog/__init__.py                           2      0   100%
normalization/destination_type.py                                    18      0   100%
normalization/__init__.py                                             4      0   100%
normalization/transform_catalog/destination_name_transformer.py     171     10    94%
normalization/transform_catalog/table_name_registry.py              174     34    80%
normalization/transform_config/transform.py                         195     48    75%
normalization/transform_catalog/utils.py                             51     14    73%
normalization/transform_catalog/dbt_macro.py                         22      7    68%
normalization/transform_catalog/catalog_processor.py                147     80    46%
normalization/transform_catalog/transform.py                         65     39    40%
normalization/transform_catalog/stream_processor.py                 603    407    33%
-------------------------------------------------------------------------------------
TOTAL                                                              1469    639    57%

Build Passed

Test summary info:

All Passed

@edgao

Edward Gao (edgao) commented May 17, 2023 •

Copy link
Copy Markdown
Contributor Author

/test connector=connectors/destination-bigquery-denormalized

🕑 connectors/destination-bigquery-denormalized https://github.com/airbytehq/airbyte/actions/runs/5008629916
✅ connectors/destination-bigquery-denormalized https://github.com/airbytehq/airbyte/actions/runs/5008629916
Python tests coverage:

Name                                                              Stmts   Miss  Cover
-------------------------------------------------------------------------------------
normalization/transform_config/__init__.py                            2      0   100%
normalization/transform_catalog/reserved_keywords.py                 15      0   100%
normalization/transform_catalog/__init__.py                           2      0   100%
normalization/destination_type.py                                    18      0   100%
normalization/__init__.py                                             4      0   100%
normalization/transform_catalog/destination_name_transformer.py     171     10    94%
normalization/transform_catalog/table_name_registry.py              174     34    80%
normalization/transform_config/transform.py                         195     48    75%
normalization/transform_catalog/utils.py                             51     14    73%
normalization/transform_catalog/dbt_macro.py                         22      7    68%
normalization/transform_catalog/catalog_processor.py                147     80    46%
normalization/transform_catalog/transform.py                         65     39    40%
normalization/transform_catalog/stream_processor.py                 603    407    33%
-------------------------------------------------------------------------------------
TOTAL                                                              1469    639    57%

Build Passed

Test summary info:

All Passed

@edgao
Edward Gao (edgao) marked this pull request as ready for review May 17, 2023 22:59
@edgao
Edward Gao (edgao) requested a review from a team as a code owner May 17, 2023 22:59
@edgao Edward Gao (edgao) changed the title Destination BigQuery (+denormalized): correctly parse buffer count 🐛 Destination BigQuery (+denormalized): correctly parse buffer count May 17, 2023

@ryankfu Ryan Fu (ryankfu) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for getting this up!

@octavia-squidington-iii Octavia Squidington III (octavia-squidington-iii) added the area/documentation Improvements or additions to documentation label May 17, 2023
@edgao

Edward Gao (edgao) commented May 17, 2023 •

Copy link
Copy Markdown
Contributor Author

/publish connector=connectors/destination-bigquery,connectors/destination-bigquery-denormalized

🕑 Publishing the following connectors:
connectors/destination-bigquery,connectors/destination-bigquery-denormalized
https://github.com/airbytehq/airbyte/actions/runs/5008946057


| Connector | Version | Did it publish? |
| --- | --- | --- | --- |
| connectors/destination-bigquery-denormalized | 1.4.1 | ✅ |
| connectors/destination-bigquery | 1.4.2 | ❌ |

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

Joe Bell (jbfbell) and others added 5 commits May 18, 2023 07:34
…25925)

* readme update

* allow passing additional flags to test containers

* remove build dependency

* Automated Change

* versioning updates

* restore denormalized change from master

* formatting changes

* formatting

* Automated Change

* update metadata file

---------

Co-authored-by: jbfbell <jbfbell@users.noreply.github.com>
* Source Airtable: skip missing streams

* Move stream removal to a separate method, cover with tests

* Update changelog

* Fix flake warnings

* Update docs/integrations/sources/airtable.md

Co-authored-by: Sherif A. Nada <snadalive@gmail.com>

* Update docs/integrations/sources/airtable.md

Co-authored-by: Sherif A. Nada <snadalive@gmail.com>

* Automated Change

* Update link to docs in warning

* Automated Change

* Automated Change

* Automated Change

* “Empty-Commit”

---------

Co-authored-by: Sherif A. Nada <snadalive@gmail.com>
Co-authored-by: arsenlosenko <arsenlosenko@users.noreply.github.com>
* Initial commit - All test passed

* add stream fax cover

* refactor docs

* fix schema, Added pagination

* Add several streams, fix schema

* fix schema, add streams, refactor docs

* EOF

* Resolve conflicts

* Resolve conflicts

* add metadata file

---------

Co-authored-by: marcosmarxm <marcosmarxm@gmail.com>
@edgao

Edward Gao (edgao) commented May 18, 2023 •

Copy link
Copy Markdown
Contributor Author

/publish connector=connectors/destination-bigquery

🕑 Publishing the following connectors:
connectors/destination-bigquery
https://github.com/airbytehq/airbyte/actions/runs/5015106490


| Connector | Version | Did it publish? |
| --- | --- | --- | --- |
| connectors/destination-bigquery | 1.4.3 | ✅ |

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

Edward Gao (edgao) added a commit that referenced this pull request May 18, 2023
table is currently broken, e.g. #26213 (comment)
@edgao
Edward Gao (edgao) enabled auto-merge (squash) May 18, 2023 15:25
@edgao
Edward Gao (edgao) merged commit c25afc4 into master May 18, 2023
@edgao
Edward Gao (edgao) deleted the edgao/dest_bq_parse_file_buffer_count_config branch May 18, 2023 16:45
M. Marx (marcosmarxm) added a commit to natalia-miinto/airbyte that referenced this pull request Jun 8, 2023
…from config (airbytehq#26213)

* fix logic in parsing config

* simplify logic

* ugh

* holy moly that took way too many iterations

* version bumps / changelog

* Automated Change

* ✨ Destination Bigquery: stop running normalization container for DAT (airbytehq#25925)

* readme update

* allow passing additional flags to test containers

* remove build dependency

* Automated Change

* versioning updates

* restore denormalized change from master

* formatting changes

* formatting

* Automated Change

* update metadata file

---------

Co-authored-by: jbfbell <jbfbell@users.noreply.github.com>

* fix version (airbytehq#26218)

* Source Airtable: skip missing streams (airbytehq#25946)

* Source Airtable: skip missing streams

* Move stream removal to a separate method, cover with tests

* Update changelog

* Fix flake warnings

* Update docs/integrations/sources/airtable.md

Co-authored-by: Sherif A. Nada <snadalive@gmail.com>

* Update docs/integrations/sources/airtable.md

Co-authored-by: Sherif A. Nada <snadalive@gmail.com>

* Automated Change

* Update link to docs in warning

* Automated Change

* Automated Change

* Automated Change

* “Empty-Commit”

---------

Co-authored-by: Sherif A. Nada <snadalive@gmail.com>
Co-authored-by: arsenlosenko <arsenlosenko@users.noreply.github.com>

* 🎉 New Source: Ringcentral [Low code CDK] (airbytehq#25701)

* Initial commit - All test passed

* add stream fax cover

* refactor docs

* fix schema, Added pagination

* Add several streams, fix schema

* fix schema, add streams, refactor docs

* EOF

* Resolve conflicts

* Resolve conflicts

* add metadata file

---------

Co-authored-by: marcosmarxm <marcosmarxm@gmail.com>

* rebump version

* Automated Change

---------

Co-authored-by: edgao <edgao@users.noreply.github.com>
Co-authored-by: Joe Bell <joseph.bell@airbyte.io>
Co-authored-by: jbfbell <jbfbell@users.noreply.github.com>
Co-authored-by: Joe Reuter <joe@airbyte.io>
Co-authored-by: Arsen Losenko <20901439+arsenlosenko@users.noreply.github.com>
Co-authored-by: Sherif A. Nada <snadalive@gmail.com>
Co-authored-by: arsenlosenko <arsenlosenko@users.noreply.github.com>
Co-authored-by: btkcodedev <btk.codedev@gmail.com>
Co-authored-by: marcosmarxm <marcosmarxm@gmail.com>
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.

6 participants