Skip to content

Commit

Permalink
importccl: fix test for duplicate collated string primary keys
Browse files Browse the repository at this point in the history
Previously the test for duplicate collated string primary keys had an
incorrectly formed CSV as the test data. This change fixes the test data by
adding the collation to all of the rows in the CSV.

Release note: None
  • Loading branch information
Rui Hu committed Sep 20, 2021
1 parent 43f0d27 commit 8d9b397
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions pkg/ccl/importccl/import_stmt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,13 @@ ORDER BY table_name
s string collate en_u_ks_level1 primary key
`,
typ: "CSV",
data: `a
B
c
D
d
data: `'a' collate en_u_ks_level1
'B' collate en_u_ks_level1
'c' collate en_u_ks_level1
'D' collate en_u_ks_level1
'd' collate en_u_ks_level1
`,
err: "duplicate key",
skipIssue: 53956,
err: "duplicate key",
},
{
name: "duplicate PK at sst boundary",
Expand Down

0 comments on commit 8d9b397

Please sign in to comment.