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

fix: parsing zero value timestamp#1355

Merged
alvarowolfx merged 2 commits intogoogleapis:mainfrom
alvarowolfx:fix-zero-timestamp-parse
Apr 9, 2024
Merged

fix: parsing zero value timestamp#1355
alvarowolfx merged 2 commits intogoogleapis:mainfrom
alvarowolfx:fix-zero-timestamp-parse

Conversation

@alvarowolfx
Copy link
Copy Markdown
Contributor

PreciseDate class fails when instantiated with zero value ( number 0 or BigInt(0)). Using PreciseDate.parseFull + preciseDateInstance.setFulltime manually with BigInt skips the code paths that doesn't check for zero.

Reference:

Fixes #1353 🦕
Supersedes #1354

@alvarowolfx alvarowolfx requested review from a team and agrawal-siddharth April 8, 2024 20:16
@product-auto-label product-auto-label Bot added size: s Pull request size is small. api: bigquery Issues related to the googleapis/nodejs-bigquery API. labels Apr 8, 2024
@alvarowolfx alvarowolfx added the owlbot:run Add this label to trigger the Owlbot post processor. label Apr 8, 2024
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Apr 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigquery Issues related to the googleapis/nodejs-bigquery API. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Library cannot parse timestamp value "0" - Cannot convert a BigInt value to a number as PreciseDate

2 participants