-
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: Added conversion from JSON Datetime to BigQuery format #7413
🐛 Destination BigQuery-denormalized: Added conversion from JSON Datetime to BigQuery format #7413
Conversation
/test connector=connectors/destination-bigquery-denormalized
|
/test connector=connectors/destination-bigquery-denormalized
|
/test connector=connectors/destination-bigquery-denormalized
|
/test connector=connectors/destination-bigquery
|
...query/src/main/java/io/airbyte/integrations/destination/bigquery/BigQueryRecordConsumer.java
Outdated
Show resolved
Hide resolved
One more point, please do not forget to go through the checklist. For example, nor now I see that title doesn't match the requirement in the checklist. Thanks |
* @return The list of fields with datetime format. | ||
* | ||
*/ | ||
public static List<String> getDateTimeFieldsFromSchema(Schema schema) { |
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.
does this handle nested fields? could the unit test also address it?
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.
Thanks, I have added handling of that. Updated an integration test.
/test connector=connectors/destination-bigquery-denormalized
|
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.
/publish connector=connectors/destination-bigquery-denormalized
|
/test connector=connectors/destination-bigquery-denormalized
|
/publish connector=connectors/destination-bigquery-denormalized
|
…ime to BigQuery format (#7413)
…ime to BigQuery format (airbytehq#7413)
What
The bug when DATETIME comes in the wrong format. Next error occurs:
JSON table encountered too many errors, giving up. Rows: 1; errors: 1. Please look into the errors[] collection for more details
How
Added the logic to handle DATETIME from JSON and adapt it for BigQuery format.
See Loading Data cloud storage JSON
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