Skip to content

Commit 27eb027

Browse files
committed
csv: update the steps for mapping source files
1 parent 24360c0 commit 27eb027

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

tidb-cloud/import-csv-files-serverless.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -115,28 +115,26 @@ To import the CSV files to TiDB Cloud Serverless, take the following steps:
115115

116116
5. In the **Destination Mapping** section, specify how source files are mapped to target tables.
117117

118-
* The **Use [TiDB Dumpling file naming conventions](/tidb-cloud/naming-conventions-for-data-import.md) for automatic mapping** option is selected by default. If you unselect it, you need to manually configure the mapping rules to associate your source CSV files with the target database and table.
118+
The **Use [TiDB Dumpling file naming conventions](/tidb-cloud/naming-conventions-for-data-import.md) for automatic mapping** option is selected by default.
119119

120-
* In **Source**, enter file names in the format `[file_name].csv`. For example: `TableName.01.csv`.
121-
* You can also use wildcards to match multiple files:
120+
> **Note:**
121+
>
122+
> When importing a single file, you can only use the default mapping settings, and the **Source** field cannot be modified.
122123

123-
* `my-data?.csv`: Matches all CSV files that start with `my-data` followed by a single character (for example, `my-data1.csv`, `my-data2.csv`).
124+
- To let TiDB Cloud automatically map all source files that follow the [TiDB Dumpling file naming conventions](/tidb-cloud/naming-conventions-for-data-import.md) to their corresponding tables, keep this option selected and select **CSV** as the data format.
124125

125-
* `my-data*.csv`: Matches all CSV files that start with `my-data` (for example, `my-data-2023.csv`, `my-data-final.csv`).
126+
- To manually configure the mapping rules to associate your source CSV files with the target database and table, unselect this option, and then fill in the following fields:
126127

127-
> Only `*` and `?` wildcards are supported.
128+
- **Source**: enter the file name pattern in the `[file_name].csv` format. For example: `TableName.01.csv`. You can also use wildcards to match multiple files. Only `*` and `?` wildcards are supported.
128129

129-
* If you **use** the naming conventions, all source files that conform to the format will be automatically mapped to their corresponding tables.
130+
- `my-data?.csv`: matches all CSV files that start with `my-data` followed by a single character, such as `my-data1.csv` and `my-data2.csv`.
131+
- `my-data*.csv`: matches all CSV files that start with `my-data`, such as `my-data-2023.csv` and `my-data-final.csv`.
130132

131-
* Select **CSV** as the data format.
133+
- **Target Database** and **Target Table**: select the target database and table to import the data to.
132134

133-
> **Note:**
134-
>
135-
> When importing one file, you can only use mapping settings and the source file cannot be modified.
136-
137-
6. Click **Next**, the system will scan the source files accordingly.
135+
6. Click **Next**. TiDB Cloud scans the source files accordingly.
138136

139-
7. Review the scan result, check data files found and target tables to import, and then click **Start Import**.
137+
7. Review the scan results, check the data files found and corresponding target tables, and then click **Start Import**.
140138

141139
8. When the import progress shows **Completed**, check the imported tables.
142140

0 commit comments

Comments
 (0)