Skip to content

Commit c961f21

Browse files
committed
csv: update step 5 to step 8
1 parent 27eb027 commit c961f21

File tree

1 file changed

+38
-44
lines changed

1 file changed

+38
-44
lines changed

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

Lines changed: 38 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ 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.
118+
When a directory is specified in **Source Files URI**, the **Use [TiDB Dumpling file naming conventions](/tidb-cloud/naming-conventions-for-data-import.md) for automatic mapping** option is selected by default.
119119

120120
> **Note:**
121121
>
122-
> When importing a single file, you can only use the default mapping settings, and the **Source** field cannot be modified.
122+
> When a single file is specified in **Source Files URI**, the **Use [TiDB Dumpling file naming conventions](/tidb-cloud/naming-conventions-for-data-import.md) for automatic mapping** option is not displayed, and TiDB Cloud automatically populates the **Source** field with the file name. In this case, you only need to select the target database and table for data import.
123123

124124
- 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.
125125

@@ -166,28 +166,26 @@ To import the CSV files to TiDB Cloud Serverless, take the following steps:
166166

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

169-
* 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.
169+
When a directory is specified in **Source Files URI**, the **Use [TiDB Dumpling file naming conventions](/tidb-cloud/naming-conventions-for-data-import.md) for automatic mapping** option is selected by default.
170170

171-
* In **Source**, enter file names in the format `[file_name].csv`. For example: `TableName.01.csv`.
172-
* You can also use wildcards to match multiple files:
173-
174-
* `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`).
171+
> **Note:**
172+
>
173+
> When a single file is specified in **Source Files URI**, the **Use [TiDB Dumpling file naming conventions](/tidb-cloud/naming-conventions-for-data-import.md) for automatic mapping** option is not displayed, and TiDB Cloud automatically populates the **Source** field with the file name. In this case, you only need to select the target database and table for data import.
175174

176-
* `my-data*.csv`: Matches all CSV files that start with `my-data` (for example, `my-data-2023.csv`, `my-data-final.csv`).
175+
- 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.
177176

178-
> Only `*` and `?` wildcards are supported.
177+
- 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:
179178

180-
* If you **use** the naming conventions, all source files that conform to the format will be automatically mapped to their corresponding tables.
179+
- **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.
181180

182-
* Select **CSV** as the data format.
181+
- `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`.
182+
- `my-data*.csv`: matches all CSV files that start with `my-data`, such as `my-data-2023.csv` and `my-data-final.csv`.
183183

184-
> **Note:**
185-
>
186-
> When importing one file, you can only use mapping settings and the source file cannot be modified.
184+
- **Target Database** and **Target Table**: select the target database and table to import the data to.
187185

188-
6. Click **Next**, the system will scan the source files accordingly..
186+
6. Click **Next**. TiDB Cloud scans the source files accordingly.
189187

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

192190
8. When the import progress shows **Completed**, check the imported tables.
193191

@@ -219,28 +217,26 @@ To import the CSV files to TiDB Cloud Serverless, take the following steps:
219217

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

222-
* 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.
220+
When a directory is specified in **Source Files URI**, the **Use [TiDB Dumpling file naming conventions](/tidb-cloud/naming-conventions-for-data-import.md) for automatic mapping** option is selected by default.
223221

224-
* In **Source**, enter file names in the format `[file_name].csv`. For example: `TableName.01.csv`.
225-
* You can also use wildcards to match multiple files:
226-
227-
* `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`).
222+
> **Note:**
223+
>
224+
> When a single file is specified in **Source Files URI**, the **Use [TiDB Dumpling file naming conventions](/tidb-cloud/naming-conventions-for-data-import.md) for automatic mapping** option is not displayed, and TiDB Cloud automatically populates the **Source** field with the file name. In this case, you only need to select the target database and table for data import.
228225

229-
* `my-data*.csv`: Matches all CSV files that start with `my-data` (for example, `my-data-2023.csv`, `my-data-final.csv`).
226+
- 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.
230227

231-
> Only `*` and `?` wildcards are supported.
228+
- 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:
232229

233-
* If you **use** the naming conventions, all source files that conform to the format will be automatically mapped to their corresponding tables.
230+
- **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.
234231

235-
* Select **CSV** as the data format.
232+
- `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`.
233+
- `my-data*.csv`: matches all CSV files that start with `my-data`, such as `my-data-2023.csv` and `my-data-final.csv`.
236234

237-
> **Note:**
238-
>
239-
> When importing one file, you can only use mapping settings and the source file cannot be modified.
235+
- **Target Database** and **Target Table**: select the target database and table to import the data to.
240236

241-
6. Click **Next**, the system will scan the source files accordingly..
237+
6. Click **Next**. TiDB Cloud scans the source files accordingly.
242238

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

245241
8. When the import progress shows **Completed**, check the imported tables.
246242

@@ -272,28 +268,26 @@ To import the CSV files to TiDB Cloud Serverless, take the following steps:
272268

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

275-
* 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.
276-
277-
* In **Source**, enter file names in the format `[file_name].csv`. For example: `TableName.01.csv`.
278-
* You can also use wildcards to match multiple files:
271+
When a directory is specified in **Source Files URI**, the **Use [TiDB Dumpling file naming conventions](/tidb-cloud/naming-conventions-for-data-import.md) for automatic mapping** option is selected by default.
279272

280-
* `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`).
273+
> **Note:**
274+
>
275+
> When a single file is specified in **Source Files URI**, the **Use [TiDB Dumpling file naming conventions](/tidb-cloud/naming-conventions-for-data-import.md) for automatic mapping** option is not displayed, and TiDB Cloud automatically populates the **Source** field with the file name. In this case, you only need to select the target database and table for data import.
281276

282-
* `my-data*.csv`: Matches all CSV files that start with `my-data` (for example, `my-data-2023.csv`, `my-data-final.csv`).
277+
- 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.
283278

284-
> Only `*` and `?` wildcards are supported.
279+
- 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:
285280

286-
* If you **use** the naming conventions, all source files that conform to the format will be automatically mapped to their corresponding tables.
281+
- **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.
287282

288-
* Select **CSV** as the data format.
283+
- `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`.
284+
- `my-data*.csv`: matches all CSV files that start with `my-data`, such as `my-data-2023.csv` and `my-data-final.csv`.
289285

290-
> **Note:**
291-
>
292-
> When importing one file, you can only use mapping settings and the source file cannot be modified.
286+
- **Target Database** and **Target Table**: select the target database and table to import the data to.
293287

294-
6. Click **Next**, the system will scan the source files accordingly..
288+
6. Click **Next**. TiDB Cloud scans the source files accordingly.
295289

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

298292
8. When the import progress shows **Completed**, check the imported tables.
299293

0 commit comments

Comments
 (0)