-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
[SIP-124] Add a text filter working as "like" to allow user to filter as dashboard_filter (generic solution) or as table_filter (specific solution) #27666
Comments
could be a great plus also support wildcards for example (abc, abc, abc) and (-abc -def) for exclude words |
same functionality could be usefull in filterbox in dashboard filters |
There's a much older and discarded SIP that relates to this here: #8452 Historically, when a "LIKE" filter idea comes up, the subject of performance (particularly with large tables) usually ensues. That older SIP had an interesting idea of adding a few options (perhaps a select dropdown) which could let you pick the matching criteria, e.g.:
|
This sip needs to be moved forward to a DISCUSSION thread on the mailing list if it is to be considered. |
Hi @rusackas can you let me know how to do this? |
First step is to subscribe to the Superset Dev mailing list, by sending an email to [email protected]. Once you're verified/subscribed, you can send an email to [email protected] with the [DISCUSS] subject and a link to this thread here. Here's a recent example, available on the web-hosted mirror of the mailing |
Oh, and once that's done and the discussion settles out, we can bring it up for a VOTE thread to make it official. |
Found a workaround for me which I did not know: For me currently it works - still it might be a good point to in general think about an idea how to solve this. (would have add pictures - GIT does not let me add pictures currently, "file type not supported") |
[SIP-124] Proposal for add a text filter working as "like" to allow user to filter as dashboard_filter (generic solution) or as table_filter (specific solution)
Motivation
If you have a bigger raw table in superset including a text value there is no good option available to search for a dedicated value in this table.
Constructed example (maybe bad as example, only for demonstrate the motivation):
There are values in the text value in table in column MY_COL:
ex:
and you want to filter in the table as example to (* as placeholder for "any" value)
There is no good way to filter in this way in the table.
Other example:
lets say you have a list of trackingids which are TEXT
some persons enter there userid as prefix (ex: USER1, concreate example USER1XYZTESTWHATEVER)
USER1 wants to filter in the table to his values so he wants a filter for %USER1% (also possible USER1%)
Proposed Change
a) add a filter for dashboard
let the user add a textfield which works like he can enter a "value"
the table can filter in the way for
in the table to reduce the table rows
b) add a "table only" filter possibility to let the user enter some values in the table headers to filter (=no dashboard filter, more a chart filter) like he can click on a column (to be defined: how to separate between "order" and "enter value, might be "on text = order", "right_to_text=box appears") to enter a "value"
a small textbox would appear where he can "click" to enter a text which filters the dedicated column like
// hint to the value
in SQL syntax would mean to work in a way as "like %value%" (search for ANY match in the string)
If we allow the "%" and the "_" also (or * as replacement) as a search keyword it might be also possible to search for all combinations like
New or Changed Public Interfaces
VAR a) new "text filter" on dashboard level
VAR b) change to table to add a text filter only there
Hint: in principle there might be also reasons to have also a global filter for other reasons than only a raw table, similar to a KIBANA to search for a dedicated value to reduce multiple dashboards
ex:
New dependencies
unknown
Migration Plan and Compatibility
unknown
Rejected Alternatives
no support to explicit search for some values
The text was updated successfully, but these errors were encountered: