Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

feat: automatically convert date/datetime/timestamps#422

Merged
alvarowolfx merged 8 commits intogoogleapis:mainfrom
alvarowolfx:feat-date-auto-convert
Mar 20, 2024
Merged

feat: automatically convert date/datetime/timestamps#422
alvarowolfx merged 8 commits intogoogleapis:mainfrom
alvarowolfx:feat-date-auto-convert

Conversation

@alvarowolfx
Copy link
Copy Markdown
Contributor

Automatically converts DATE/DATETIME/TIMESTAMP accordingly to BigQuery Write API Docs. For doing this, we clone deep objects passed by the user, inspect each attribute to see if a Javascript Date exists, then convert to the appropriate format expect by the service side.

Still TDB if this is going to be an opt-in feature or enabled by default.

Fixes #419 #344 🦕

@product-auto-label product-auto-label Bot added size: l Pull request size is large. api: bigquerystorage Issues related to the googleapis/nodejs-bigquery-storage API. labels Feb 28, 2024
@alvarowolfx alvarowolfx marked this pull request as ready for review March 15, 2024 21:05
@alvarowolfx alvarowolfx requested a review from a team March 15, 2024 21:05
@alvarowolfx alvarowolfx added the owlbot:run Add this label to trigger the Owlbot post processor. label Mar 15, 2024
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Mar 15, 2024
@alvarowolfx alvarowolfx added the owlbot:run Add this label to trigger the Owlbot post processor. label Mar 19, 2024
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Mar 19, 2024
Comment thread src/managedwriter/encoder.ts
Comment thread src/managedwriter/encoder.ts
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigquerystorage Issues related to the googleapis/nodejs-bigquery-storage API. size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Date type value in typescript as input to TIMESTAMP filed results in '1970-01-01 00:00:00 UTC'

2 participants