You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Emit friendly errors for QueryInterruptedException and any other cases that QueryResource emits friendly errors. This can be tested by setting a really low timeout and confirming you get a friendly JSON error rather than unfriendly HTML. Fixed in SQL: Better error handling for HTTP API. #4053
Implement query cancellation, maybe by giving an "umbrella query ID" to all Druid native queries that underlie a SQL query, and returning that in the header of SqlResource's response, or maybe by assigning the same Druid query ID to all native queries (I think this would technically work although it would be a little strange).
Return query IDs on SQL queries so users can correlate it to metrics stores.
I think a lot of this could be accomplished by sharing code between QueryResource and SqlResource. Some of it (like a query/sql/time metric) would be unique to SqlResource.
SqlResource should be up to the standards of QueryResource:
query/sql/timeto differentiate it fromquery/time.Emit metrics likeFixed in Add metrics to the native queries underpinning SQL. #4561query/timefor the Druid native queries that underlie a SQL query. There might be more than one of these per SQL query.Emit request logs for the Druid native queries that underlie a SQL query.Fixed in Add metrics to the native queries underpinning SQL. #4561Emit friendly errors for QueryInterruptedException and any other cases that QueryResource emits friendly errors. This can be tested by setting a really low timeout and confirming you get a friendly JSON error rather than unfriendly HTML.Fixed in SQL: Better error handling for HTTP API. #4053I think a lot of this could be accomplished by sharing code between QueryResource and SqlResource. Some of it (like a
query/sql/timemetric) would be unique to SqlResource.