Hi all,

Following up on the DISCUSS thread Alankrit Verma started on Oct 11th, I'd
like to call a vote on SIP-180 [1], optional pre-run query cost warnings in
SQL Lab:
https://github.com/apache/superset/issues/34384

DISCUSS thread [2]:
https://lists.apache.org/thread/2fb76w39qqp40ghw3s899ps6y8dbsz26

In short, when you hit Run in SQL Lab, Superset can check the query's
estimate against a per-connection threshold first, and if it's over, ask
you to confirm before running it. It's off by default (behind a new
SQLLAB_QUERY_COST_WARNINGS flag), each connection has to opt in with its
own threshold, and it's purely advisory, so it doesn't enforce any limits
or change anyone's permissions. The first pass covers BigQuery (dry-run
bytes) and PostgreSQL (EXPLAIN planner cost), with room for other engines
to plug in.

The implementation is up for review [3] at
https://github.com/apache/superset/pull/45313 if you want to see it in
action. Feedback on the code itself is welcome there, but it's separate
from this vote on the proposal.

The vote will be open for at least one week. Please vote accordingly:

[ ] +1 approve
[ ] +0 no opinion
[ ] -1 disapprove (with the reason)

Thanks,
Evan

[1] https://github.com/apache/superset/issues/34384
[2] https://lists.apache.org/thread/2fb76w39qqp40ghw3s899ps6y8dbsz26
[3] https://github.com/apache/superset/pull/45313

Reply via email to