You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/10/14 23:43:14 UTC

[GitHub] [incubator-superset] dolorez opened a new issue #10098: Filter on bool column not working properly in SQL Lab -> Explore

dolorez opened a new issue #10098:
URL: https://github.com/apache/incubator-superset/issues/10098


   When a query in SQL Lab is executed and a filter is applied to a boolean column, it errors out on datatype comparison (boolean vs string). 
   Note - the behavior
   ### Expected results
   The filter should work - the generated query should not enclose the field value in single quotes. 
   
   ### Actual results
   The query generated encloses the filter value in single quotes so the where clause generated looks (some_bool_flag = 'true') and this that in turn generates type mismatch
   
   #### How to reproduce the bug
   
   1. Go to SQL Lab -> SQL Editor
   2. Write a query that returns a boolean column
   3. Execute the query
   4. Click on Explore
   5. Scroll down to filters
   6. Add a filter on a boolean column and make sure you stay in Simple (not Custom SQL)
   7. Use equals and set filter value to "true" (without double quotes)
   8. Execute the query to see the error messge
   9. Click on menu -> View query to inspect that the filter value was enclosed in single quotes
   
   ### Environment
   
   (please complete the following information):
   
   - superset version: `superset version
   0.34.1
   - python version: `python --version`
   Python 3.6.9
   - node.js version: `node -v`
   v12.18.0
   - npm version: `npm -v`
   6.14.4
   ### Checklist
   
   Make sure these boxes are checked before submitting your issue - thank you!
   
   - [x] I have checked the superset logs for python stacktraces and included it here as text if there are any.
   - [ ] I have reproduced the issue with at least the latest released version of superset.
   I have no control over the environment :(
   - [x] I have checked the issue tracker for the same issue and I haven't found one similar.
   
   ### Additional context
   
   When the filter is entered using the Custom SQL instead of Simple, it works fine
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] eugeniamz commented on issue #10098: Filter on bool column not working properly in SQL Lab -> Explore

Posted by GitBox <gi...@apache.org>.
eugeniamz commented on issue #10098:
URL: https://github.com/apache/incubator-superset/issues/10098#issuecomment-718237413


   I see the same issue with Vertica DB. It does not show the option but if you choose the second one you have a TRUE but the first is empty. I work around by going to CUSTOM SQL but this should be resolved. 
   ![2020-10-28_18-07-06 (1)](https://user-images.githubusercontent.com/58375897/97501996-a4e8ec00-1948-11eb-9367-aa4c0fd33032.gif)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] issue-label-bot[bot] commented on issue #10098: Filter not working properly in SQL Lab -> Explore

Posted by GitBox <gi...@apache.org>.
issue-label-bot[bot] commented on issue #10098:
URL: https://github.com/apache/incubator-superset/issues/10098#issuecomment-645943424


   Issue-Label Bot is automatically applying the label `#bug` to this issue, with a confidence of 0.95. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback! 
   
    Links: [app homepage](https://github.com/marketplace/issue-label-bot), [dashboard](https://mlbot.net/data/apache/incubator-superset) and [code](https://github.com/hamelsmu/MLapp) for this bot.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] bkyryliuk commented on issue #10098: Filter on bool column not working properly in SQL Lab -> Explore

Posted by GitBox <gi...@apache.org>.
bkyryliuk commented on issue #10098:
URL: https://github.com/apache/incubator-superset/issues/10098#issuecomment-708718441


   issue still persists on presto database. It's not possible to replicate for mysql as mysql interpret boolean as tinyint.
   
   Selector looks like this:
   ![image](https://user-images.githubusercontent.com/5727938/96056939-b0162500-0e3c-11eb-99d8-b9349343cc21.png)
   
   Clicking on it results in: 
   ![image](https://user-images.githubusercontent.com/5727938/96056973-bf956e00-0e3c-11eb-917e-167f4c515297.png)
   
   
   @etr2460, @john-bodley  - curious if you have similar issue @ airbnb.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] stale[bot] commented on issue #10098: Filter on bool column not working properly in SQL Lab -> Explore

Posted by GitBox <gi...@apache.org>.
stale[bot] commented on issue #10098:
URL: https://github.com/apache/incubator-superset/issues/10098#issuecomment-678677921


   This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue `.pinned` to prevent stale bot from closing the issue.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] stale[bot] closed issue #10098: Filter on bool column not working properly in SQL Lab -> Explore

Posted by GitBox <gi...@apache.org>.
stale[bot] closed issue #10098:
URL: https://github.com/apache/incubator-superset/issues/10098


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] mistercrunch commented on issue #10098: Filter on bool column not working properly in SQL Lab -> Explore

Posted by GitBox <gi...@apache.org>.
mistercrunch commented on issue #10098:
URL: https://github.com/apache/incubator-superset/issues/10098#issuecomment-718384377


   Maybe we need conditional operators based on data type. `BOOLEAN` should only offer `IS NULL` `IS TRUE` and  `IS FALSE`


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] rumbin commented on issue #10098: Filter on bool column not working properly in SQL Lab -> Explore

Posted by GitBox <gi...@apache.org>.
rumbin commented on issue #10098:
URL: https://github.com/apache/incubator-superset/issues/10098#issuecomment-647075420


   Could you add the type of database, please?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] bkyryliuk edited a comment on issue #10098: Filter on bool column not working properly in SQL Lab -> Explore

Posted by GitBox <gi...@apache.org>.
bkyryliuk edited a comment on issue #10098:
URL: https://github.com/apache/incubator-superset/issues/10098#issuecomment-708718441


   issue still persists on presto database. It's not possible to replicate for mysql as mysql interpret boolean as tinyint.
   
   Selector looks like this:
   ![image](https://user-images.githubusercontent.com/5727938/96056939-b0162500-0e3c-11eb-99d8-b9349343cc21.png)
   
   Clicking on it results in: 
   ![image](https://user-images.githubusercontent.com/5727938/96056973-bf956e00-0e3c-11eb-917e-167f4c515297.png)
   
   Sqllab correctly sees the type of the column:
   ![image](https://user-images.githubusercontent.com/5727938/96057098-05523680-0e3d-11eb-8c00-a9f1eee768d3.png)
   
   
   @etr2460, @john-bodley  - curious if you have similar issue @ airbnb.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] dolorez commented on issue #10098: Filter on bool column not working properly in SQL Lab -> Explore

Posted by GitBox <gi...@apache.org>.
dolorez commented on issue #10098:
URL: https://github.com/apache/incubator-superset/issues/10098#issuecomment-647088827


   It's presto and that particular query goes to hive


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org