Skip to content

Commit

Permalink
roachtest: fix SHOW RANGES queries in mvcc_gc test
Browse files Browse the repository at this point in the history
Epic: none
Release note: None
  • Loading branch information
erikgrinaker committed Jan 2, 2023
1 parent 0725273 commit f8b5e51
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 f8b5e51

Please sign in to comment.