SNOW-1005946: Make SQL text optional for the input to `StmtUtil.cancel`
Closed this issue · 0 comments
sfc-gh-pliu commented
What is the current behavior?
Currently, this low-level query-cancellation util will throw if the SQL text is not provided in the argument stmtInput
, as shown below.
Sometimes when we are cancelling query, the SQL text itself is not available. Can we make this field optional?
What is the desired behavior?
The util won't throw when no SQL text is provided.
How would this improve snowflake-jdbc
?
Allow stmtUtil.cancel
to be used in cases where the SQL text is not available.