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

Add support for types in BigQuery #232

Merged
merged 2 commits into from
Jun 27, 2014

Conversation

jeremi
Copy link
Contributor

@jeremi jeremi commented Jun 25, 2014

No description provided.


elif field['type'] == 'BOOLEAN':
cell_value = cell_value in ('True', 'true', 'TRUE')

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to add support for date/time fields too, otherwise you will have issues with charts.

@arikfr
Copy link
Member

arikfr commented Jun 25, 2014

Thanks for this, @jeremi! See my other 2 comments, and let me know if you plan to implement the extra changes or you prefer me to merge this already.

@jeremi
Copy link
Contributor Author

jeremi commented Jun 26, 2014

Yes, I will.
There is no date format on bigquery, only : STRING, INTEGER, FLOAT, BOOLEAN, TIMESTAMP
To which format the timestamp should be converted ?

Jeremi

@arikfr
Copy link
Member

arikfr commented Jun 26, 2014

I think for now the easiest thing to do will be to conver the TIMESTAMP to datetime object (datetime.datetime.from_timestamp iirc).

Fix the type field
@jeremi
Copy link
Contributor Author

jeremi commented Jun 27, 2014

That should fix the 2 issues mentioned earlier.

arikfr added a commit that referenced this pull request Jun 27, 2014
@arikfr arikfr merged commit 85ea906 into getredash:master Jun 27, 2014
@yosit
Copy link
Contributor

yosit commented Jun 27, 2014

+1

washort pushed a commit to washort/redash that referenced this pull request Dec 13, 2017
washort pushed a commit to washort/redash that referenced this pull request Jan 8, 2018
washort pushed a commit to washort/redash that referenced this pull request Jan 9, 2018
washort pushed a commit to washort/redash that referenced this pull request Apr 30, 2018
washort pushed a commit to washort/redash that referenced this pull request May 31, 2018
washort pushed a commit to washort/redash that referenced this pull request Aug 11, 2018
alison985 pushed a commit to StantonVentures/redash that referenced this pull request Aug 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants