-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
SQL Lab UI does not populate results - query/updated_since endpoint unexpectedly returns empty array #24487
Comments
Our current understanding is this value for Date.parse("2023-06-22T21:52:29.488110")
1687495949488 // in ISO format: 2023-06-23T04:52:29.488000 This appears to be the source of the bug. My estimation is that either the parsing method in javascript or format of data returned by the Adding the Zulu time specifier seems to do the correct thing: Date.parse("2023-06-22T21:52:29.488110Z")
1687470749488 // in ISO format: 2023-06-22T21:52:29.488000 |
@spyoungtech thanks for the detailed analysis. Please take a look at #24513 which should resolve the issue. cc: @yousoph @hughhhh |
@spyoungtech it would be very much appreciated if you can give the latest master branch cut a test ride and report back your findings! |
@villebro Confirmed -- the issue is resolved on the latest build including this change. Thanks for the speedy fix. 🎉 |
SQL Lab utilizes the
/api/v1/query/updated_since
endpoint to retrieve updated queries in order to ultimately display results. We are experiencing a problem where results are not populating in the SQL Lab UI. Upon our own investigation, this appears to be caused by this endpoint unexpectedly returning an empty array.How to reproduce the bug
/api/v1/query/updated_since
returned a non-empty array containing the relevant query result key/api/v1/query/updated_since
returned an empty arrayExpected results
It is expected that whenever a query is run in the SQL Lab that results will populate in the UI and will not show the message "Run a query to display results" -- or perhaps specifically that the
/api/v1/query/updated_since
does not return an empty arrayActual results
No updated queries are returned by the call to
/api/v1/query/updated_since
and hence the UI never populates any result data, despite the fact the query indeed runs and has resultsScreenshots
Here are a couple videos showing the problem as described
full video
vid2.mov
short video
vid1.mov
Environment
(please complete the following information):
apache/superset:45901dafbb1258f57dd314a03e211fd81b258a58
)Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
We have tried manually editing and resending the request to the
api/v1/query/updated_since
endpoint with modified values forlast_updated_ms
(less than and greater than the original value by varying amounts between5000
and50000
) but still received the same empty array.Additional investigation has revealed the following relevant information:
last_updated_ms
-- that is, the value is a timestamp in the distant future.In one example, the database record for the relevant query has
start_time
as1687470749474.695000
which reflects the accurate date/time the query was requested -- meanwhile thelast_updated_ms
value in the javascript-generated request was1687490271194
-- quite some time in the future.The text was updated successfully, but these errors were encountered: