Skip to content

Commit

Permalink
Merge #135963
Browse files Browse the repository at this point in the history
135963: revert "roachtest/sqlsmith: print a setup query as integers" r=yuzefovich a=yuzefovich

This reverts commit e06a0bc.

We no longer need it since the problem we were trying to find the reproduction of has been fixed in 8210e06.

Epic: None
Release note: None

Co-authored-by: Yahor Yuzefovich <[email protected]>
  • Loading branch information
craig[bot] and yuzefovich committed Dec 9, 2024
2 parents c651d65 + f59355b commit 128c952
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions pkg/cmd/roachtest/tests/sqlsmith.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,19 +121,6 @@ WITH into_db = 'defaultdb', unsafe_restore_incompatible_version;
for _, stmt := range setup {
logStmt(stmt)
if _, err := conn.Exec(stmt); err != nil {
if strings.Contains(err.Error(), "does not exist") {
// This is likely to be an elusive 'pq: column
// "crdb_internal_idx_expr" does not exist' error that we
// cannot reproduce. The current hypothesis is that the
// CREATE TABLE statement contains some non-visible
// characters that get lost when printing as a string, so we
// will log this statement as a sequence of integers so that
// later we can reconstruct the stmt precisely.
for _, char := range stmt {
fmt.Fprintf(smithLog, "%d ", char)
}
fmt.Fprint(smithLog, "\n\n")
}
t.Fatalf("error: %s\nstatement: %s", err.Error(), stmt)
}
}
Expand Down

0 comments on commit 128c952

Please sign in to comment.