-
Notifications
You must be signed in to change notification settings - Fork 151
Open
Labels
bugstatus-triage_doneInitial triage done, will be further handled by the driver teamInitial triage done, will be further handled by the driver team
Description
I've just seen this code and thought it odd that Blocked is considered an error, when it is actually still running? What I mean is that the Blocked status could change, which means it should be in the IsStillRunning?
internal static bool IsStillRunning(QueryStatus status)
{
switch (status)
{
case QueryStatus.Running:
case QueryStatus.ResumingWarehouse:
case QueryStatus.Queued:
case QueryStatus.QueuedReparingWarehouse:
case QueryStatus.NoData:
return true;
default:
return false;
}
}
internal static bool IsAnError(QueryStatus status)
{
switch (status)
{
case QueryStatus.Aborting:
case QueryStatus.FailedWithError:
case QueryStatus.Aborted:
case QueryStatus.FailedWithIncident:
case QueryStatus.Disconnected:
case QueryStatus.Blocked:
return true;
default:
return false;
}
}Metadata
Metadata
Assignees
Labels
bugstatus-triage_doneInitial triage done, will be further handled by the driver teamInitial triage done, will be further handled by the driver team