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
We are using Snowflake-jdbc to get the result of queries.
val resultSet = connection.unwrap(SnowflakeConnection::class.java).createResultSet(queryId)
val queryStatus = resultSet.unwrap(SnowflakeResultSet::class.java).status
var result:Stringif (queryStatus ==QueryStatus.SUCCESS) {
result ="success"
} elseif (QueryStatus.isStillRunning(queryStatus)) {
result ="running"
} elseif (QueryStatus.isAnError(queryStatus)) {
result ="failed"
} else {
result ="unknown"
}
The RESTARTED status is "unknown" because isStillRunning returns false and isAnError returns false, but I guess it "is still running". Should isStillRunning return true?
The BLOCKED status is "running" because isStillRunning returns true. However, isAnError also returns true. I think isAnError should return false for any status that isStillRunning returns true because, well, is still running. So isAnError should return false for BLOCKED?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
We are using Snowflake-jdbc to get the result of queries.
RESTARTED
status is "unknown" because isStillRunning returns false and isAnError returns false, but I guess it "is still running". Should isStillRunning return true?BLOCKED
status is "running" because isStillRunning returns true. However, isAnError also returns true. I thinkisAnError
should return false for any status that isStillRunning returns true because, well, is still running. So isAnError should return false forBLOCKED
?https://github.com/snowflakedb/snowflake-jdbc/blob/v3.13.32/src/main/java/net/snowflake/client/core/QueryStatus.java
Thank you,
Hiroyuki
Beta Was this translation helpful? Give feedback.
All reactions