Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 通过tidb-lightning导入数据,无法匹配多个源数据文件

[TiDB Environment] Test/
[TiDB Version] v6.1.0
The data files exported by dumpling are as follows:
nsy_scm.stock.0000000000000.sql
nsy_scm.stock.0000000010000.sql
nsy_scm.stock.0000000020000.sql
nsy_scm.stock.0000000030000.sql
nsy_scm.stock.0000000040000.sql
nsy_scm.stock.0000000050000.sql
nsy_scm.stock_business.0000000000000.sql
The tidb-lightning configuration file is as follows:
[lightning]
#region-concurrency=
level=“info”
file=“tidb-lightning.log”
[tikv-importer]
backend=“local”
sorted-kv-dir=“/tmp”
[mydumper]
data-source-dir=“/home/tidb/dumpling/sql”
filter = [‘.’,‘!mysql.‘,’!sys.’,‘!INFORMATION_SCHEAM.‘,’!PERFORMANCE_SCHEMA.’,‘!METRICS_SCHEMA.‘,’!INSPECTION_SCHEMA.’]
[tidb]
host=“172.16.1.201”
port=4000
user=“root”
password=“123456”
status-port=10080
pd-addr=“172.16.1.202:2379”
Imported into TiDB using the following command:
tiup tidb-lightning -config tidb-lightning.toml
Found an issue:
The table and data for nsy_scm.stock_business.0000000000000.sql are present.
However, for the following files:
nsy_scm.stock.0000000000000.sql
nsy_scm.stock.0000000010000.sql
nsy_scm.stock.0000000020000.sql
nsy_scm.stock.0000000030000.sql
nsy_scm.stock.0000000040000.sql
nsy_scm.stock.0000000050000.sql
The corresponding tables are created, but the data is zero.
Do I need to configure a regular expression to match multiple files?