@@ -97,8 +97,6 @@ func TestConverterFlushesBatches(t *testing.T) {
97
97
98
98
tests := []testSpec {
99
99
newTestSpec (ctx , t , csvFormat (), "testdata/csv/data-0" ),
100
- newTestSpec (ctx , t , mysqlDumpFormat (), "testdata/mysqldump/simple.sql" ),
101
- newTestSpec (ctx , t , pgDumpFormat (), "testdata/pgdump/simple.sql" ),
102
100
newTestSpec (ctx , t , avroFormat (t , roachpb .AvroOptions_OCF ), "testdata/avro/simple.ocf" ),
103
101
}
104
102
@@ -272,16 +270,6 @@ func TestImportIgnoresProcessedFiles(t *testing.T) {
272
270
newTestSpec (ctx , t , csvFormat (), "testdata/csv/data-0" ),
273
271
[]int64 {0 },
274
272
},
275
- {
276
- "mysql-one-invalid" ,
277
- newTestSpec (ctx , t , mysqlDumpFormat (), "testdata/mysqldump/simple.sql" , "/_/missing/_" ),
278
- []int64 {0 , eofOffset },
279
- },
280
- {
281
- "pgdump-one-input" ,
282
- newTestSpec (ctx , t , pgDumpFormat (), "testdata/pgdump/simple.sql" ),
283
- []int64 {0 },
284
- },
285
273
{
286
274
"avro-one-invalid" ,
287
275
newTestSpec (ctx , t , avroFormat (t , roachpb .AvroOptions_OCF ), "__invalid__" , "testdata/avro/simple.ocf" ),
@@ -387,10 +375,8 @@ func TestImportHonorsResumePosition(t *testing.T) {
387
375
// contain sufficient number of rows.
388
376
testSpecs := []testSpec {
389
377
newTestSpec (ctx , t , csvFormat (), "testdata/csv/data-0" ),
390
- newTestSpec (ctx , t , mysqlDumpFormat (), "testdata/mysqldump/simple.sql" ),
391
378
newTestSpec (ctx , t , mysqlOutFormat (), "testdata/mysqlout/csv-ish/simple.txt" ),
392
379
newTestSpec (ctx , t , pgCopyFormat (), "testdata/pgcopy/default/test.txt" ),
393
- newTestSpec (ctx , t , pgDumpFormat (), "testdata/pgdump/simple.sql" ),
394
380
newTestSpec (ctx , t , avroFormat (t , roachpb .AvroOptions_JSON_RECORDS ), "testdata/avro/simple-sorted.json" ),
395
381
}
396
382
@@ -515,10 +501,8 @@ func TestImportHandlesDuplicateKVs(t *testing.T) {
515
501
// All imports produce a DuplicateKeyError, which we expect to be propagated.
516
502
testSpecs := []testSpec {
517
503
newTestSpec (ctx , t , csvFormat (), "testdata/csv/data-0" ),
518
- newTestSpec (ctx , t , mysqlDumpFormat (), "testdata/mysqldump/simple.sql" ),
519
504
newTestSpec (ctx , t , mysqlOutFormat (), "testdata/mysqlout/csv-ish/simple.txt" ),
520
505
newTestSpec (ctx , t , pgCopyFormat (), "testdata/pgcopy/default/test.txt" ),
521
- newTestSpec (ctx , t , pgDumpFormat (), "testdata/pgdump/simple.sql" ),
522
506
newTestSpec (ctx , t , avroFormat (t , roachpb .AvroOptions_JSON_RECORDS ), "testdata/avro/simple-sorted.json" ),
523
507
}
524
508
@@ -942,9 +926,7 @@ func newTestSpec(
942
926
descr = descForTable (ctx , t ,
943
927
"CREATE TABLE simple (i INT PRIMARY KEY, s text )" , 100 , 150 , 200 , NoFKs )
944
928
case
945
- roachpb .IOFileFormat_Mysqldump ,
946
929
roachpb .IOFileFormat_MysqlOutfile ,
947
- roachpb .IOFileFormat_PgDump ,
948
930
roachpb .IOFileFormat_PgCopy ,
949
931
roachpb .IOFileFormat_Avro :
950
932
descr = descForTable (ctx , t ,
@@ -963,12 +945,8 @@ func newTestSpec(
963
945
}
964
946
assert .True (t , numCols > 0 )
965
947
966
- fullTableName := "simple"
967
- if format .Format == roachpb .IOFileFormat_PgDump {
968
- fullTableName = "public.simple"
969
- }
970
948
spec .tables = map [string ]* execinfrapb.ReadImportDataSpec_ImportTable {
971
- fullTableName : {Desc : descr .TableDesc (), TargetCols : targetCols [0 :numCols ]},
949
+ "simple" : {Desc : descr .TableDesc (), TargetCols : targetCols [0 :numCols ]},
972
950
}
973
951
974
952
for id , path := range inputs {
@@ -978,16 +956,6 @@ func newTestSpec(
978
956
return spec
979
957
}
980
958
981
- func pgDumpFormat () roachpb.IOFileFormat {
982
- return roachpb.IOFileFormat {
983
- Format : roachpb .IOFileFormat_PgDump ,
984
- PgDump : roachpb.PgDumpOptions {
985
- MaxRowSize : 64 * 1024 ,
986
- IgnoreUnsupported : true ,
987
- },
988
- }
989
- }
990
-
991
959
func pgCopyFormat () roachpb.IOFileFormat {
992
960
return roachpb.IOFileFormat {
993
961
Format : roachpb .IOFileFormat_PgCopy ,
@@ -999,12 +967,6 @@ func pgCopyFormat() roachpb.IOFileFormat {
999
967
}
1000
968
}
1001
969
1002
- func mysqlDumpFormat () roachpb.IOFileFormat {
1003
- return roachpb.IOFileFormat {
1004
- Format : roachpb .IOFileFormat_Mysqldump ,
1005
- }
1006
- }
1007
-
1008
970
func mysqlOutFormat () roachpb.IOFileFormat {
1009
971
return roachpb.IOFileFormat {
1010
972
Format : roachpb .IOFileFormat_MysqlOutfile ,
0 commit comments