superset icon indicating copy to clipboard operation
superset copied to clipboard

[sql lab] add ability to schedule queries

Open masterlittle opened this issue 9 years ago • 16 comments

Make sure these boxes are checked before submitting your issue - thank you!

  • [ ] I have checked the superset logs for python stacktraces and included it here as text if 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

Superset version

Expected results

Actual results

Steps to reproduce

masterlittle avatar Jul 04 '17 14:07 masterlittle

Could you please be more verbose about your use case?

xrmx avatar Jul 11 '17 20:07 xrmx

So, I was thinking that maybe we could schedule the queries at regular intervals so that whenever I see the result of these queries after some time it is always updated. i.e- I don't have to manually run my queries every time that I want to see the result of the query. Espaecially for regular rerunning queries.

masterlittle avatar Jul 12 '17 05:07 masterlittle

Hi, we are also interested in this feature. Any updates on this?

manishkhorgade avatar Mar 14 '18 15:03 manishkhorgade

It looks like this feature may make it into Lyft's Q2 roadmap. It's likely that the approach is going to focus on collecting scheduling requirement metadata from users leveraging FAB's CRUD, and exposing that to an orchestrator (in our case Apache Airflow) through a JSON endpoint.

Information gathered from user:

  • saved query code
  • schedule interval / cron statement
  • dependencies (partitioned tables we should wait for, if any, other scheduled queries)
  • scheduled until (we not allow users to set that too far in the future, forcing them to push a button to re-schedule their query, trying to prevent abuse / accumulation of useless compute)
  • ...

mistercrunch avatar Mar 14 '18 23:03 mistercrunch

@mistercrunch: Is there PR for this? Any updates on this?

mmuru avatar Apr 24 '18 12:04 mmuru

This should be done this quarter

mistercrunch avatar Apr 24 '18 15:04 mistercrunch

This is great! Does 'this quarter' mean by the end of June? We are working on a feature and would love to have this by end f June.

manishkhorgade avatar Apr 25 '18 15:04 manishkhorgade

Yes this quarter currently means end of june

mistercrunch avatar Apr 25 '18 21:04 mistercrunch

Thanks, @mistercrunch.

manishkhorgade avatar Apr 26 '18 04:04 manishkhorgade

Any updates on this?

manishkhorgade avatar Jul 05 '18 04:07 manishkhorgade

It's still on the roadmap, haven't made progress at this point in time.

mistercrunch avatar Jul 06 '18 14:07 mistercrunch

@mistercrunch Can we expect this feature anytime soon

sivaprakashkollana avatar Oct 11 '18 08:10 sivaprakashkollana

👍 would love it

CoryChaplin avatar Oct 26 '18 07:10 CoryChaplin

Still on the roadmap, lots going on...

mistercrunch avatar Oct 26 '18 15:10 mistercrunch

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.

stale[bot] avatar Apr 29 '19 08:04 stale[bot]

+1 Another use case for this feature is, for query engines that make use of Hive and leveraging data partitioning, MSCK REPAIR TABLE needs to be executed on a scheduled basis to ask Hive to import new data.

For example, AWS Athena: https://docs.aws.amazon.com/athena/latest/ug/msck-repair-table.html

Andrew-Tan avatar May 06 '19 19:05 Andrew-Tan