-
Notifications
You must be signed in to change notification settings - Fork 595
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
BigQuery return timestamp field as exponential #990
Comments
@debopamsengupta did you mean to close? |
Well, found a workaround as the exponential can be converted into a Unix timestamp using |
I agree! Which API call is the time field returned in? |
https://googlecloudplatform.github.io/gcloud-node/#/docs/v0.25.1/bigquery?method=query returns the time field |
I can't find that property being returned in the raw API response (https://cloud.google.com/bigquery/docs/reference/v2/jobs/query) Is this your own data? It looks like we could convert to a Date object if we see the matching schema type for a returned property is "TIMESTAMP". |
Got it, thanks. Sorry for all the questions, just wanted to make sure I understood. I think we can sniff out when we are returning these types and convert them to the format that makes sense. Thanks for calling this out! |
Thanks, no problem ! |
Hey guys, any chance we can continue the old behavior by passing a special parameter? That is, what if I really just want the raw data? Can I ask for raw (un-schema-parsed) results? /cc @callmehiphop |
The raw data will still come through in the table.query('SELECT * FROM ...', function(err, rows, nextQuery, apiResponse) {
// apiResponse:
{
"schema": {
"fields": [
{
"name": "url",
"type": "STRING",
"mode": "NULLABLE"
}
]
},
"rows": [
{
"f": [
{
"v": "https://github.com/jfeaver/hireme"
}
]
}
]
}
}); |
OK cool :)
Where do we document the full apiResponse object? Do we link back to the
BigQuery page that defines the schema of that object?
|
It's a bit of a click-hunt, but if you get to the I'll open a new issue for making the |
Oh that's a great idea. Maybe all our apiResponse parameters could point to
the API page on cloud.google.com?
|
Yeah, I think that'd be awesome! Issue opened: #1007 |
…andwritten libraries (#990) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 429395631 Source-Link: googleapis/googleapis@84594b3 Source-Link: googleapis/googleapis-gen@ed74f97 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWQ3NGY5NzBmZDgyOTE0ODc0ZTZiMjdiMDQ3NjNjZmE2NmJhZmU5YiJ9
This is the result from the
time
field in the BigQuery dataset instead of some thing like thisIs there something I'm missing ?
The text was updated successfully, but these errors were encountered: