Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

Support the new BigQuery types in charts #68

Merged
merged 3 commits into from Oct 5, 2016

Conversation

ojarjur
Copy link
Contributor

@ojarjur ojarjur commented Sep 23, 2016

BigQuery's new Standard SQL support adds additional data types that might occur in the schema field of results.

These new types meant that we would get key errors when looking up the corresponding type to use for charting the data.

Some of those new types correspond to the set of types supported by Google Charts and some do not.

For the new types that have a correspondence we add that mapping to the code. For any other types, we simply map them to 'string' (to avoid a key error).

BigQuery's new Standard SQL support adds additional data
[types](https://cloud.google.com/bigquery/sql-reference/data-types)
that might occur in the schema field of results.

These new types meant that we would get key errors when looking up
the corresponding type to use for charting the data.

Some of those new types correspond to the set of types supported by
[Google Charts](https://developers.google.com/chart/interactive/docs/reference#DataTable_addColumn)
and some do not.

For the new types that have a correspondence we add that mapping to
the code. For any other types, we simply map them to 'string' (to
avoid a key error).
@ojarjur ojarjur merged commit 1ca8ee4 into googledatalab:master Oct 5, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants