Hi Expert,
I have some issue while I am using presto database at SQL lab on superset. My sql failed very often. It usually goes offline in about 20 seconds and eventually return below pink message. Here is a SQL example I tried. This query can run pass at presto terminal, but failed at SQL lab.
return message:
<!DOCTYPE html> <html lang="en"> <meta charset="utf-8"> <title>Wikimedia Error</title> <style> * { margin: 0; padding: 0; } body { background: #fff; font: 15px/1.6 sans-serif; color: #333; } .content { margin: 7% auto 0; padding: 2em 1em 1em; max-width: 640px; } .footer { clear: both; margin-top: 14%; border-top: 1px solid #e5e5e5; background: #f9f9f9; padding: 2em 0; font-size: 0.8em; text-align: center; } img { float: left; margin: 0 2em 2em 0; } a img { border: 0; } h1 { margin-top: 1em; font-size: 1.2em; } .content-text { overflow: hidden; overflow-wrap: break-word; word-wrap: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; -ms-hyphens: auto; hyphens: auto; } p { margin: 0.7em 0 1em 0; } a { color: #0645ad; text-decoration: none; } a:hover { text-decoration: underline; } code { font-family: sans-serif; } .text-muted { color: #777; } </style> <div class="content" role="main"> <a href="https://www.wikimedia.org"><img src="https://www.wikimedia.org/static/images/wmf-logo.png" srcset="https://www.wikimedia.org/static/images/wmf-logo-2x.png 2x" alt="Wikimedia" width="135" height="101"> </a> <h1>Error</h1> <div class="content-text"> <p>Our servers are currently under maintenance or experiencing a technical problem. Please <a href="" title="Reload this page" onclick="window.location.reload(false); return false">try again</a> in a few minutes.</p> <p>See the error message at the bottom of this page for more information.</p> </div> </div> <div class="footer"><p>If you report this error to the Wikimedia System Administrators, please include the details below.</p><p class="text-muted"><code>Request from 71.204.128.245 via cp4031 frontend, Varnish XID 687742109<br>Error: 503, Backend fetch failed at Thu, 07 May 2020 23:33:57 GMT</code></p> </div> </html>
my SQL
SELECT substr(log_timestamp,1,6) AS month_time, COUNT(1) AS blocks
FROM wmf_raw.mediawiki_logging WHERE snapshot ='2020-03' AND log_type IN ('block’)
AND substr(log_timestamp,1,6) >= '202001' AND substr(log_timestamp,1,6) <= '202004’
GROUP BY substr(log_timestamp,1,6)