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
For example, you should not be checking the status field to find out if you need to wait longer for a query. As the Presto owners suggest:
The status field is only for displaying to humans as a hint about the query's state on the server. It is not in sync in the query state from the client's perspective and must not be used to determine whether the query is finished.
Instead, the code should be checking for a 503.
The text was updated successfully, but these errors were encountered:
thedillonb
changed the title
Code does not follow Presto HTTP Best Practicies
Code does not follow Presto HTTP Best Practices
May 12, 2016
Your code doesn't look like it follows what the Presto owners have dictated as the best way to interact with it via HTTP:
https://github.com/prestodb/presto/wiki/HTTP-Protocol
For example, you should not be checking the
status
field to find out if you need to wait longer for a query. As the Presto owners suggest:Instead, the code should be checking for a 503.
The text was updated successfully, but these errors were encountered: