Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
94588: roachtest: fix `SHOW RANGES` queries in `mvcc_gc` test r=erikgrinaker a=erikgrinaker

Resolves cockroachdb#94410.

Epic: none
Release note: None

Co-authored-by: Erik Grinaker <[email protected]>
  • Loading branch information
craig[bot] and erikgrinaker committed Jan 2, 2023
2 parents 34dbb59 + f8b5e51 commit 1d7bd69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/roachtest/tests/mvcc_gc.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func collectTableMVCCStatsOrFatal(
t.Helper()
rows, err := conn.Query(fmt.Sprintf(`
SELECT range_id, raw_start_key, crdb_internal.range_stats(raw_start_key)
FROM [SHOW RANGES FROM %s.%s WITH KEYS]
FROM [SHOW RANGES FROM TABLE %s.%s WITH KEYS]
ORDER BY r.start_key`,
tree.NameString(m.databaseName), tree.NameString(m.tableName)))
if err != nil {
Expand Down Expand Up @@ -399,7 +399,7 @@ func visitTableRanges(
) error {
t.Helper()
rows, err := conn.QueryContext(
ctx, fmt.Sprintf(`SELECT range_id FROM [ SHOW RANGES FROM %s.%s ]`, m.databaseName, m.tableName),
ctx, fmt.Sprintf(`SELECT range_id FROM [ SHOW RANGES FROM TABLE %s.%s ]`, m.databaseName, m.tableName),
)
if err != nil {
t.Fatalf("failed to run consistency check query on table: %s", err)
Expand Down

0 comments on commit 1d7bd69

Please sign in to comment.