From faf16bfed0ee679f3b1dc2bf759789262ad3dd7c Mon Sep 17 00:00:00 2001 From: Lilian Lee Date: Wed, 30 Oct 2024 15:17:58 +0800 Subject: [PATCH 1/3] Add temp.md --- temp.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 temp.md diff --git a/temp.md b/temp.md new file mode 100644 index 0000000000000..af27ff4986a7b --- /dev/null +++ b/temp.md @@ -0,0 +1 @@ +This is a test file. \ No newline at end of file From 66d90d2b46520c305bd7bde52c5d6a288f759b77 Mon Sep 17 00:00:00 2001 From: Lilian Lee Date: Wed, 30 Oct 2024 15:18:04 +0800 Subject: [PATCH 2/3] Delete temp.md --- temp.md | 1 - 1 file changed, 1 deletion(-) delete mode 100644 temp.md diff --git a/temp.md b/temp.md deleted file mode 100644 index af27ff4986a7b..0000000000000 --- a/temp.md +++ /dev/null @@ -1 +0,0 @@ -This is a test file. \ No newline at end of file From 07d701a7f1c2750aeade915de21d1474466658b4 Mon Sep 17 00:00:00 2001 From: lilin90 Date: Wed, 30 Oct 2024 15:20:17 +0800 Subject: [PATCH 3/3] Update migrate-from-csv-files-to-tidb.md --- migrate-from-csv-files-to-tidb.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/migrate-from-csv-files-to-tidb.md b/migrate-from-csv-files-to-tidb.md index 7cfdfdfee140f..73552e7d8ba98 100644 --- a/migrate-from-csv-files-to-tidb.md +++ b/migrate-from-csv-files-to-tidb.md @@ -22,6 +22,8 @@ Put all the CSV files in the same directory. If you need TiDB Lightning to recog - If a CSV file contains the data for an entire table, name the file `${db_name}.${table_name}.csv`. - If the data of one table is separated into multiple CSV files, append a numeric suffix to these CSV files. For example, `${db_name}.${table_name}.003.csv`. The numeric suffixes can be inconsecutive but must be in ascending order. You also need to add extra zeros before the number to ensure all the suffixes are in the same length. +TiDB Lightning recursively searches for all `.csv` files in this directory and its subdirectories. + ## Step 2. Create the target table schema Because CSV files do not contain schema information, before importing data from CSV files into TiDB, you need to create the target table schema. You can create the target table schema by either of the following two methods: