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

Query Results returns to true when 'False' String #4263

Closed
ayumu838 opened this issue Oct 18, 2019 · 2 comments
Closed

Query Results returns to true when 'False' String #4263

ayumu838 opened this issue Oct 18, 2019 · 2 comments

Comments

@ayumu838
Copy link

ayumu838 commented Oct 18, 2019

Issue Summary

Query Results returns to true when 'False' String

Steps to Reproduce

  1. Select Datasorce to Query Results
  2. Input SELECT 'FALSE' AS Foo
  3. Query result is true

Technical details:

  • Redash Version: v7.0.0+b18042
  • Browser/OS: macOS Mojave v10.14.5 / macOS Mojave v10.14.5
  • How did you install Redash:
@kravets-levko
Copy link
Collaborator

Hi @ayumu838! It happens because SQLite (which is used as an engine for Query Results) does not return data types for columns, so Redash tries to infer that types. Strings false and true will infer to TYPE_BOOLEAN, therefore you see this result.

But detected data types don't change actual data, just the way the app will interpret them by default. Open Table visualization editor and change "Display As" to "Text".

@support
Copy link

support bot commented Oct 18, 2019

👋 @ayumu838, we use the issue tracker exclusively for bug reports and planned work. However, this issue appears to be a support request. Please use our forum to get help.

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