You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tidb-cloud/import-csv-files-serverless.md
+38-44Lines changed: 38 additions & 44 deletions
Original file line number
Diff line number
Diff line change
@@ -115,11 +115,11 @@ To import the CSV files to TiDB Cloud Serverless, take the following steps:
115
115
116
116
5. In the **Destination Mapping** section, specify how source files are mapped to target tables.
117
117
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.
119
119
120
120
>**Note:**
121
121
>
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, andTiDB 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.
123
123
124
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 andselect**CSV**as the data format.
125
125
@@ -166,28 +166,26 @@ To import the CSV files to TiDB Cloud Serverless, take the following steps:
166
166
167
167
5. In the **Destination Mapping** section, specify how source files are mapped to target tables.
168
168
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.
170
170
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.
175
174
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 andselect**CSV**as the data format.
177
176
178
-
> Only `*`and`?` wildcards are supported.
177
+
- To manually configure the mapping rules to associate your source CSV files with the target database andtable, unselect this option, and then fill in the following fields:
179
178
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.
181
180
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`.
183
183
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.
187
185
188
-
6. Click **Next**, the system will scan the source files accordingly..
186
+
6. Click **Next**. TiDB Cloud scans the source files accordingly.
189
187
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, checkthe data files found andcorresponding target tables, and then click **Start Import**.
191
189
192
190
8. When the import progress shows **Completed**, check the imported tables.
193
191
@@ -219,28 +217,26 @@ To import the CSV files to TiDB Cloud Serverless, take the following steps:
219
217
220
218
5. In the **Destination Mapping** section, specify how source files are mapped to target tables.
221
219
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.
223
221
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.
228
225
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 andselect**CSV**as the data format.
230
227
231
-
> Only `*`and`?` wildcards are supported.
228
+
- To manually configure the mapping rules to associate your source CSV files with the target database andtable, unselect this option, and then fill in the following fields:
232
229
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.
234
231
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`.
236
234
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.
240
236
241
-
6. Click **Next**, the system will scan the source files accordingly..
237
+
6. Click **Next**. TiDB Cloud scans the source files accordingly.
242
238
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, checkthe data files found andcorresponding target tables, and then click **Start Import**.
244
240
245
241
8. When the import progress shows **Completed**, check the imported tables.
246
242
@@ -272,28 +268,26 @@ To import the CSV files to TiDB Cloud Serverless, take the following steps:
272
268
273
269
5. In the **Destination Mapping** section, specify how source files are mapped to target tables.
274
270
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.
279
272
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.
281
276
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 andselect**CSV**as the data format.
283
278
284
-
> Only `*`and`?` wildcards are supported.
279
+
- To manually configure the mapping rules to associate your source CSV files with the target database andtable, unselect this option, and then fill in the following fields:
285
280
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.
287
282
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`.
289
285
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.
293
287
294
-
6. Click **Next**, the system will scan the source files accordingly..
288
+
6. Click **Next**. TiDB Cloud scans the source files accordingly.
295
289
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, checkthe data files found andcorresponding target tables, and then click **Start Import**.
297
291
298
292
8. When the import progress shows **Completed**, check the imported tables.
0 commit comments