diff --git a/pkg/lightning/config/config.go b/pkg/lightning/config/config.go index 991535c6543ad..405f5ed7e8b16 100644 --- a/pkg/lightning/config/config.go +++ b/pkg/lightning/config/config.go @@ -884,10 +884,6 @@ func (m *MydumperRuntime) adjust() error { if err := m.CSV.adjust(); err != nil { return err } - if m.StrictFormat && len(m.CSV.Terminator) == 0 { - return common.ErrInvalidConfig.GenWithStack( - `mydumper.strict-format can not be used with empty mydumper.csv.terminator. Please set mydumper.csv.terminator to a non-empty value like "\r\n"`) - } for _, rule := range m.FileRouters { if filepath.IsAbs(rule.Path) {