Skip to content

test(e2e/mst): DESCRIBE QUERY is now allowed in transactions#836

Merged
vikrantpuppala merged 1 commit into
mainfrom
fix/mst-describe-query-allowed
Jun 5, 2026
Merged

test(e2e/mst): DESCRIBE QUERY is now allowed in transactions#836
vikrantpuppala merged 1 commit into
mainfrom
fix/mst-describe-query-allowed

Conversation

@vikrantpuppala
Copy link
Copy Markdown
Contributor

Summary

The e2e test TestMstBlockedSql::test_describe_query_blocked started failing in CI with Failed: DID NOT RAISE <class 'Exception'>. This is a server-side behavior change, not a connector regression: the server's MSTCheckRule allowlist has been broadened to include DESCRIBE QUERY (DescribeQueryCommand), so it no longer throws inside an active multi-statement transaction.

This mirrors the earlier SHOW COLUMNS change (#778), where a previously-blocked introspection statement became allowed and the test was flipped accordingly.

Changes

  • Rename test_describe_query_blocked -> test_describe_query_not_blocked and switch it from _assert_blocked_and_txn_aborted to _assert_not_blocked (which verifies the statement succeeds and returns >0 rows inside the txn).
  • Update the TestMstBlockedSql docstring: move DESCRIBE QUERY from the Blocked list to the Allowed list.

Testing

Verified against a live DBSQL warehouse:

  • test_describe_query_not_blocked - PASS (DESCRIBE QUERY succeeds in MST, returns rows)
  • Full TestMstBlockedSql class (9 tests) - all PASS

The server's MSTCheckRule allowlist has broadened to include DESCRIBE
QUERY (DescribeQueryCommand), mirroring the earlier SHOW COLUMNS change.
It no longer throws inside an active transaction, so the prior
test_describe_query_blocked assertion (DID NOT RAISE) was stale.

Flip it to test_describe_query_not_blocked using _assert_not_blocked
(verifies it succeeds and returns >0 rows) and move DESCRIBE QUERY from
the Blocked to the Allowed list in the class docstring.

Verified against a live DBSQL warehouse: the full TestMstBlockedSql
class (9 tests) passes.

Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
@vikrantpuppala vikrantpuppala force-pushed the fix/mst-describe-query-allowed branch from efbe647 to 0fe9ad9 Compare June 5, 2026 08:42
@vikrantpuppala vikrantpuppala enabled auto-merge June 5, 2026 08:42
@vikrantpuppala vikrantpuppala added this pull request to the merge queue Jun 5, 2026
Merged via the queue into main with commit 015ee47 Jun 5, 2026
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants