Skip to content

BigQuery Destination : Fix GCS processing of Facebook data - #9415

Merged
Andrii Leonets (DoNotPanicUA) merged 8 commits into
masterfrom
aleonets/oncall-86
Jan 13, 2022
Merged

BigQuery Destination : Fix GCS processing of Facebook data#9415
Andrii Leonets (DoNotPanicUA) merged 8 commits into
masterfrom
aleonets/oncall-86

Conversation

@DoNotPanicUA

Copy link
Copy Markdown
Contributor

What

GCS BigQuery processing uses Avro files.
If field name contains char -, the loader fails due to invalid namesapce value.
Issue OnCall #86

How

Replace - to _ in the field name and use updated names in the namespaces.

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
  • Credentials added to Github CI. 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
  • Credentials added to Github CI. 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.

@DoNotPanicUA

Andrii Leonets (DoNotPanicUA) commented Jan 11, 2022

Copy link
Copy Markdown
Contributor Author

/test connector=destination-bigquery

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

	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                                                              Stmts   Miss  Cover
	 -------------------------------------------------------------------------------------
	 main_dev_transform_catalog.py                                         3      3     0%
	 main_dev_transform_config.py                                          3      3     0%
	 normalization/__init__.py                                             4      0   100%
	 normalization/destination_type.py                                    13      0   100%
	 normalization/transform_catalog/__init__.py                           2      0   100%
	 normalization/transform_catalog/catalog_processor.py                143     77    46%
	 normalization/transform_catalog/destination_name_transformer.py     155      8    95%
	 normalization/transform_catalog/reserved_keywords.py                 13      0   100%
	 normalization/transform_catalog/stream_processor.py                 520    333    36%
	 normalization/transform_catalog/table_name_registry.py              174     34    80%
	 normalization/transform_catalog/transform.py                         45     26    42%
	 normalization/transform_catalog/utils.py                             33      7    79%
	 normalization/transform_config/__init__.py                            2      0   100%
	 normalization/transform_config/transform.py                         148     34    77%
	 -------------------------------------------------------------------------------------
	 TOTAL                                                              1258    525    58%

@DoNotPanicUA

This comment has been minimized.

@DoNotPanicUA

Andrii Leonets (DoNotPanicUA) commented Jan 11, 2022

Copy link
Copy Markdown
Contributor Author

/test connector=destination-s3

🕑 destination-s3 https://github.com/airbytehq/airbyte/actions/runs/1683600796
✅ destination-s3 https://github.com/airbytehq/airbyte/actions/runs/1683600796
No Python unittests run

@DoNotPanicUA

Andrii Leonets (DoNotPanicUA) commented Jan 11, 2022

Copy link
Copy Markdown
Contributor Author

/test connector=destination-gcs

🕑 destination-gcs https://github.com/airbytehq/airbyte/actions/runs/1683601551
✅ destination-gcs https://github.com/airbytehq/airbyte/actions/runs/1683601551
No Python unittests run

@octavia-squidington-iii
Octavia Squidington III (octavia-squidington-iii) temporarily deployed to more-secrets January 11, 2022 16:51 Inactive
@octavia-squidington-iii
Octavia Squidington III (octavia-squidington-iii) temporarily deployed to more-secrets January 11, 2022 16:52 Inactive
@octavia-squidington-iii
Octavia Squidington III (octavia-squidington-iii) temporarily deployed to more-secrets January 11, 2022 16:52 Inactive
@octavia-squidington-iii
Octavia Squidington III (octavia-squidington-iii) temporarily deployed to more-secrets January 11, 2022 16:52 Inactive
@octavia-squidington-iii
Octavia Squidington III (octavia-squidington-iii) temporarily deployed to more-secrets January 11, 2022 17:20 Inactive
@DoNotPanicUA

Andrii Leonets (DoNotPanicUA) commented Jan 11, 2022

Copy link
Copy Markdown
Contributor Author

/test connector=destination-bigquery-denormalized

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

The fail is not related to the change. Locally it works fine. The test instance can't reach airbyte/normalization:dev image.
Screenshot from 2022-01-11 20-51-52
The same test fail on the master: https://github.com/airbytehq/airbyte/actions/runs/1683960600

@octavia-squidington-iii
Octavia Squidington III (octavia-squidington-iii) temporarily deployed to more-secrets January 11, 2022 18:17 Inactive
@DoNotPanicUA

Copy link
Copy Markdown
Contributor Author

In addition, integration service has obvious issues. Which might lead to test failure.
image

@DoNotPanicUA
Andrii Leonets (DoNotPanicUA) temporarily deployed to more-secrets January 12, 2022 16:04 Inactive
@github-actions github-actions Bot added the area/documentation Improvements or additions to documentation label Jan 12, 2022
@DoNotPanicUA
Andrii Leonets (DoNotPanicUA) temporarily deployed to more-secrets January 12, 2022 17:10 Inactive
@DoNotPanicUA

Copy link
Copy Markdown
Contributor Author

/publish connector=connectors/destination-s3

@DoNotPanicUA

Copy link
Copy Markdown
Contributor Author

/publish connector=connectors/destination-bigquery

@DoNotPanicUA

Copy link
Copy Markdown
Contributor Author

/publish connector=connectors/destination-bigquery-denormalized

@octavia-squidington-iii
Octavia Squidington III (octavia-squidington-iii) temporarily deployed to more-secrets January 12, 2022 17:21 Inactive
@octavia-squidington-iii
Octavia Squidington III (octavia-squidington-iii) temporarily deployed to more-secrets January 12, 2022 17:21 Inactive
@octavia-squidington-iii
Octavia Squidington III (octavia-squidington-iii) temporarily deployed to more-secrets January 12, 2022 17:22 Inactive
@DoNotPanicUA

Copy link
Copy Markdown
Contributor Author

/publish connector=connectors/destination-s3

@DoNotPanicUA

Copy link
Copy Markdown
Contributor Author

/publish connector=connectors/destination-bigquery

@DoNotPanicUA

Copy link
Copy Markdown
Contributor Author

/publish connector=connectors/destination-bigquery-denormalized

@DoNotPanicUA
Andrii Leonets (DoNotPanicUA) temporarily deployed to more-secrets January 12, 2022 19:58 Inactive
@octavia-squidington-iii
Octavia Squidington III (octavia-squidington-iii) temporarily deployed to more-secrets January 12, 2022 20:00 Inactive
@octavia-squidington-iii
Octavia Squidington III (octavia-squidington-iii) temporarily deployed to more-secrets January 12, 2022 20:00 Inactive
@octavia-squidington-iii
Octavia Squidington III (octavia-squidington-iii) temporarily deployed to more-secrets January 12, 2022 20:00 Inactive
@DoNotPanicUA

Andrii Leonets (DoNotPanicUA) commented Jan 13, 2022

Copy link
Copy Markdown
Contributor Author

/publish connector=connectors/destination-bigquery-denormalized

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

@DoNotPanicUA

Andrii Leonets (DoNotPanicUA) commented Jan 13, 2022

Copy link
Copy Markdown
Contributor Author

/publish connector=connectors/destination-bigquery

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

@DoNotPanicUA

Andrii Leonets (DoNotPanicUA) commented Jan 13, 2022

Copy link
Copy Markdown
Contributor Author

/publish connector=connectors/destination-s3

🕑 connectors/destination-s3 https://github.com/airbytehq/airbyte/actions/runs/1692854866
✅ connectors/destination-s3 https://github.com/airbytehq/airbyte/actions/runs/1692854866

@DoNotPanicUA
Andrii Leonets (DoNotPanicUA) temporarily deployed to more-secrets January 13, 2022 13:14 Inactive
@octavia-squidington-iii
Octavia Squidington III (octavia-squidington-iii) temporarily deployed to more-secrets January 13, 2022 13:15 Inactive
@octavia-squidington-iii
Octavia Squidington III (octavia-squidington-iii) temporarily deployed to more-secrets January 13, 2022 13:15 Inactive
@octavia-squidington-iii
Octavia Squidington III (octavia-squidington-iii) temporarily deployed to more-secrets January 13, 2022 13:15 Inactive
@DoNotPanicUA

Andrii Leonets (DoNotPanicUA) commented Jan 13, 2022

Copy link
Copy Markdown
Contributor Author

/publish connector=connectors/destination-bigquery-denormalized

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

@DoNotPanicUA
Andrii Leonets (DoNotPanicUA) temporarily deployed to more-secrets January 13, 2022 15:00 Inactive
@octavia-squidington-iii
Octavia Squidington III (octavia-squidington-iii) temporarily deployed to more-secrets January 13, 2022 15:02 Inactive
@DoNotPanicUA
Andrii Leonets (DoNotPanicUA) temporarily deployed to more-secrets January 13, 2022 15:57 Inactive
@DoNotPanicUA

Andrii Leonets (DoNotPanicUA) commented Jan 13, 2022

Copy link
Copy Markdown
Contributor Author

/publish connector=connectors/destination-bigquery-denormalized

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

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