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

check float if scale > 0 in snowflake query result #3876

Merged
merged 1 commit into from
Aug 11, 2019

Conversation

wudi-ayuan
Copy link
Contributor

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

  • Bug Fix

Description

The simple select 2.5 will return result 3 when the datasourc is snowflake. Redahs directly use the inferred datatype given by datasource, but it's not totally accurate. However, snowflake also provide precision and scale of query result. If the data is numerical, we check whether scale is greater than 0 to determine Float or Integer.

Related Tickets & Documents

#3820
This rounding issues appeared in snowflake data source as well.

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

@arikfr arikfr merged commit aa2bd00 into getredash:master Aug 11, 2019
@arikfr
Copy link
Member

arikfr commented Aug 11, 2019

Thanks!

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.

2 participants