snowflakedb/snowflake-jdbc

SNOW-1005946: Make SQL text optional for the input to `StmtUtil.cancel`

Closed this issue · 0 comments

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.

AssertUtil.assertTrue(stmtInput.sql != null, "Missing sql for statement execution");

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.

References, Other Background

What is your Snowflake account identifier, if any?