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

Refresh Schedules don't work for Creating Tables/Views in Query #4376

Open
brad-natelborg opened this issue Nov 20, 2019 · 1 comment
Open

Comments

@brad-natelborg
Copy link

Issue Summary

I have several queries in Redash that only create new tables, nothing else. So they don't return any tables of data. That being said, when I try to set a schedule to refresh them, it does not work unless I have the query actually return some table of data.

To work around it currently, I have just a dummy query at the end that selects some data from the newly created table.

It would be nice if Redash didn't return an error when a query was only creating a table or view and allowed them to be scheduled to update automatically.

Steps to Reproduce

See above. Create a query that only creates a table, but doesn't return any data.

Technical details:

  • Redash Version: 7.0.0
  • Browser/OS: Chrome / Windows 10
  • How did you install Redash:
@arikfr
Copy link
Member

arikfr commented Nov 20, 2019

Yes, that's a known limitation. We used the error mechanism to signal to the UI that no results were returned. Obviously it's not a great solution 😬 Also this behavior depends on the data source you use.

When I think of it now, I'm not sure if there is anything that prevents us from returning an empty data object in case of such query + update the UI to show some friendlier message about no results being available.

It's not something we will address right now, but if someone wants to pick it up, happy to discuss details.

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