@@ -31,9 +31,6 @@ import (
3131// triggered by statements that run in implicit transactions. It verifies that the job
3232// starts correctly, that errors or timeouts propagate to the user, and that
3333// client-visible semantics (like statement timeout or job failure) behave as expected.
34- //
35- // Note: This test currently uses SCRUB to trigger a job, but is not testing SCRUB
36- // itself. The goal is to verify general execution semantics for async job statements.
3734func TestInspectJobImplicitTxnSemantics (t * testing.T ) {
3835 defer leaktest .AfterTest (t )()
3936 defer log .Scope (t ).Close (t )
@@ -71,7 +68,7 @@ func TestInspectJobImplicitTxnSemantics(t *testing.T) {
7168
7269 runner .Exec (t , `
7370 CREATE DATABASE db;
74- SET enable_scrub_job = true;
71+ SET enable_inspect_command = true;
7572 CREATE TABLE db.t (
7673 id INT PRIMARY KEY,
7774 val INT
@@ -115,7 +112,7 @@ func TestInspectJobImplicitTxnSemantics(t *testing.T) {
115112 onInspectErrorToReturn .Store (& tc .onStartError )
116113 defer func () { onInspectErrorToReturn .Store (nil ) }()
117114 }
118- _ , err := db .Exec ("EXPERIMENTAL SCRUB TABLE db.t AS OF SYSTEM TIME '-1us'" )
115+ _ , err := db .Exec ("INSPECT TABLE db.t AS OF SYSTEM TIME '-1us'" )
119116 pauseJobStart .Store (false )
120117 if tc .expectedErrRegex != "" {
121118 require .Error (t , err )
@@ -202,7 +199,7 @@ func TestInspectJobProtectedTimestamp(t *testing.T) {
202199 runner := sqlutils .MakeSQLRunner (db )
203200 runner .Exec (t , `
204201 CREATE DATABASE db;
205- SET enable_scrub_job = true;
202+ SET enable_inspect_command = true;
206203 CREATE TABLE db.t (
207204 id INT PRIMARY KEY,
208205 val INT
@@ -216,7 +213,7 @@ func TestInspectJobProtectedTimestamp(t *testing.T) {
216213 // Start INSPECT job with AS OF timestamp in a goroutine
217214 errCh := make (chan error , 1 )
218215 go func () {
219- _ , err := db .Exec ("EXPERIMENTAL SCRUB TABLE db.t AS OF SYSTEM TIME '-1us'" )
216+ _ , err := db .Exec ("INSPECT TABLE db.t AS OF SYSTEM TIME '-1us'" )
220217 errCh <- err
221218 }()
222219
@@ -368,12 +365,11 @@ func TestInspectProgressWithMultiRangeTable(t *testing.T) {
368365 })
369366
370367 // Start the INSPECT job.
371- // TODO(148365): Run INSPECT instead of SCRUB.
372368 t .Logf ("Starting INSPECT job on table with %d ranges distributed across %d nodes" , rangeCount , nodeCount )
373369 _ , err := db .Exec (`
374- SET enable_scrub_job = true;
370+ SET enable_inspect_command = true;
375371 COMMIT;
376- EXPERIMENTAL SCRUB TABLE multi_range_table` )
372+ INSPECT TABLE multi_range_table` )
377373 require .NoError (t , err )
378374
379375 var jobID int64
0 commit comments