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

static limit for native filters recoreds #20521

Closed
3 tasks done
moathOSA opened this issue Jun 28, 2022 · 10 comments
Closed
3 tasks done

static limit for native filters recoreds #20521

moathOSA opened this issue Jun 28, 2022 · 10 comments
Labels
#bug Bug report

Comments

@moathOSA
Copy link

moathOSA commented Jun 28, 2022

i'm using a native filters in my dashboard and i have a filter with more than 1000 record
i noticed that there is now way to increase this filter limit ?
any key or config i missed ?

superset v1.5.0

=============================================================================

  • 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 checked the issue tracker for the same issue and I haven't found one similar.
@moathOSA moathOSA added the #bug Bug report label Jun 28, 2022
@mlmaverick
Copy link

@moathOSA any solution for this? Thanks!

@stasDomb
Copy link

I saw the old issue. And looks the solution wasn't merged:
#7971
But there are FilterBox, and the native filters are more actual now.
So, I don't know how I can resolve this issue

@rodmax
Copy link

rodmax commented Sep 6, 2022

Hi there.

looking through the code i found a couple of things

1️⃣ appropriate parameter from config:

FILTER_SELECT_ROW_LIMIT = 10000

already set to 10000 but it does not affect native filters behavior

2️⃣ As i can see from front-end code the row_limit value just hard-coded
(I'm not sure, maybe somewhere further in the code this parameter is overridden)

It seems to me, native filter should use FILTER_SELECT_ROW_LIMIT or its own config parameter

@julizet
Copy link

julizet commented May 3, 2023

@rodmax I am currently working on a Superset project and ran into the same project.

I set FILTER_SELECT_ROW_LIMIT = 10000 without any effect. If I trigger the query in the GUI I can see that the SQL statement still comes with LIMIT 1000.

Did you find any solution to increase the maximum rows that are returned by the native filters?
Appreciate any help.

@rodmax
Copy link

rodmax commented May 3, 2023

@julizet unfortunately no.
Native filters have too many limitations, so
We implemented our own filter as superset chart plugin, and now use it

@cleslie
Copy link
Contributor

cleslie commented May 5, 2023

We're also having the same issue and can't use dynamic filtering due to limitations of our database.

After some digging, as mentioned above, changing this value changes the default filter row limit:

Some potential options to improve this could be:

  • Make this limit configurable via superset config file (not familiar enough with the project to understand if this is easy/acceptable since it is on the frontend)
  • Implement new feature to allow users to set default row limit per filter via the UI (likely a much bigger change)

Keen to hear any other thoughts/suggestions.

@cleslie
Copy link
Contributor

cleslie commented May 12, 2023

Have raised a draft PR with a way to customise this via a config value, any comments or feedback welcome: #24043

@rusackas
Copy link
Member

PR merged!

@vivek-kandhvar
Copy link

@julizet unfortunately no. Native filters have too many limitations, so We implemented our own filter as superset chart plugin, and now use it

@rodmax Do you mind sharing the code if you have forked? Even I am exploring in implementing our own filters.

@mayanklalwani
Copy link

did the changes in this PR work fine for anybody?

I am using superset version 2.0 and made changes in my code base in the 3 files mentioned in this PR, but they seem to have no effect for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#bug Bug report
Projects
None yet
Development

No branches or pull requests

9 participants