-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
🐛 Destination BigQuery-Denormalized: Fix JSON with $ref Definition keys #7736
🐛 Destination BigQuery-Denormalized: Fix JSON with $ref Definition keys #7736
Conversation
/test connector=connectors/destination-bigquery-denormalized
|
/test connector=connectors/destination-bigquery
|
…alized_datetime_fix
/test connector=connectors/destination-bigquery
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. we can proceed with publish and merge without airbyte review
/publish connector=connectors/destination-bigquery-denormalized
|
…ys (airbytehq#7736) * BUG-6638: Fix fields with $ref definition. * BUG-6638: Added integration tests. * BUG-6638: Added integration tests. * BUG-6638: Added integration tests. * BUG-6638: Added doc and pumped Dockerfile version. * BUG-6638: Added doc and pumped Dockerfile version. * BUG-6638: replaced for with forEach * BUG-6638: Bumped specification
What
The issue appears when Airbyte trying to parse JSON fields that contain
$ref
definition. e.g.The main problem such values come to
BigQueryDenormalizedRecordConsumer.java
as ObjecNode classes, despite the fact Schema type of this column isStandardSQLTypeName.STRING
.How
The handling for such a case was added to
BigQueryDenormalizedDestination.java
andBigQueryDenormalizedRecordConsumer.java
. Now, such fields will be stored as raw String JSON at BigQuery DB.e.g.
See integration tests.
Recommended reading order
x.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/SUMMARY.md
docs/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 changes