You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[java-bigquery] Analyze and fix timestamp rounding issue #12172
Hi, I'm hitting this issue when trying to read the maximum possible timestamp from a BigQuery view. I expect a value of 253402300799.999999, but I'm getting a 253402300800.0. When querying the view in the web console, I'm getting the expected value of 9999-12-31 23:59:59.999999 UTC.
I tried checking how formatOptions could be set, but that field doesn't exist in the QueryRequest model. It is mentioned in the API docs though: https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query
I checked that the models are generated based on API specs generated from the Discovery service. formatOptions field is not present in the Discovery service: https://bigquery.googleapis.com/$discovery/rest?version=v2
This is where I got stuck, I can't figure out if there are any public sources for the Discovery service.
BTW Why this would be a breaking change? Maybe we could somehow expose formatOptions and leave the defaults as is.
Activity
Neenu1995 commentedon Aug 31, 2022
This fix requires a breaking change. Consider fixing for next major version bump.
nineinchnick commentedon Jan 15, 2024
Hi, I'm hitting this issue when trying to read the maximum possible timestamp from a BigQuery view. I expect a value of
253402300799.999999, but I'm getting a253402300800.0. When querying the view in the web console, I'm getting the expected value of9999-12-31 23:59:59.999999 UTC.I stumbled on this when working on trinodb/trino#12346
I tried checking how
formatOptionscould be set, but that field doesn't exist in theQueryRequestmodel. It is mentioned in the API docs though: https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/queryI checked that the models are generated based on API specs generated from the Discovery service.
formatOptionsfield is not present in the Discovery service: https://bigquery.googleapis.com/$discovery/rest?version=v2This is where I got stuck, I can't figure out if there are any public sources for the Discovery service.
BTW Why this would be a breaking change? Maybe we could somehow expose
formatOptionsand leave the defaults as is.wendigo commentedon Feb 14, 2024
Is anyone working on that?
nineinchnick commentedon Feb 22, 2024
I just found out there's a public issue tracker, so I reported it there too: https://issuetracker.google.com/u/1/issues/326260769
[-]Analyze and fix timestamp rounding issue[/-][+][java-bigquery] Analyze and fix timestamp rounding issue[/+]