Skip to content
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 FLOAT type is being converted to String. #571

Open
Justus-M opened this issue Oct 3, 2023 · 1 comment
Open

BigQuery FLOAT type is being converted to String. #571

Justus-M opened this issue Oct 3, 2023 · 1 comment

Comments

@Justus-M
Copy link

Justus-M commented Oct 3, 2023

When running a query in BigQuery using googleapis/bigquery/v2, FLOAT types in query results are returned as strings in dart.

These should be returned as "double" dart types instead.

@kevmoo
Copy link
Collaborator

kevmoo commented Oct 3, 2023

I get your point. The problem is that the range of double in JSON is different than float. For all cases, numbers are encoded as String.

It's weird, I know...but it's the recommended handling for float values.

I think a nice suggestion would be to offer double helpers in this case...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants