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 int/float values in guess_type #3913

Merged
merged 1 commit into from
Jun 20, 2019
Merged

Add support for int/float values in guess_type #3913

merged 1 commit into from
Jun 20, 2019

Conversation

arikfr
Copy link
Member

@arikfr arikfr commented Jun 19, 2019

What type of PR is this? (check all applicable)

  • Refactor
  • Bug Fix

Description

Some data sources, like Query Results, use the guess_type function to set the column type. But guess_type wasn't working properly with non strings:

int(3.5) #  3
int("3.5") #  raises Exception

This changes the guess_type function to first handle non string values and only after switch to string based detection.

Related Tickets & Documents

#3820

@cypress
Copy link

cypress bot commented Jun 19, 2019



Test summary

63 0 0 0


Run details

Commit fd7da6f
Started Jun 19, 2019 7:02 AM UTC
Ended Jun 19, 2019 7:10 AM UTC
Duration 07:35 💡
OS linux Debian - 8.10
Browser Electron 61.0.3163.100

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of your project's GitHub integration settings. You can manage this integration in your project's settings in the Cypress Dashboard

@arikfr arikfr merged commit 27259b5 into master Jun 20, 2019
@arikfr arikfr deleted the qr-float branch June 20, 2019 05:55
harveyrendell pushed a commit to pushpay/redash that referenced this pull request Nov 14, 2019
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.

1 participant