When lightning is less capabile than downstream, USE <database>
may miss so failed with "no database selected" #51800
Closed
Description
The source schema files may contain some unsupported feature, like unsupported chatset. When lightning failed to rewrite the statement, it directly uses the source file content. However, USE <database>
is missing
tidb/br/pkg/lightning/importer/import.go
Lines 625 to 638 in c1e3dae