Skip to content

Commit b6f53f9

Browse files
authored
add: Uploading a Directory with PUT Command
1 parent 63f8b37 commit b6f53f9

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/en/guides/40-load-data/00-stage/02-stage-files.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,25 @@ Result:
276276
</TabItem>
277277
</Tabs>
278278
279+
### Uploading a Directory with PUT Command
280+
281+
You can also upload multiple files from a directory using the PUT command with wildcards. This is useful when you need to stage a large number of files at once.
282+
283+
```sql
284+
PUT fs:///home/ubuntu/datas/event_data/*.parquet @your_stage;
285+
```
286+
287+
Result:
288+
```
289+
┌───────────────────────────────────────────────────────┐
290+
│ file │status │
291+
├─────────────────────────────────────────────┼─────────┤
292+
│ /home/ubuntu/datas/event_data/file1.parquet │ SUCCESS │
293+
│ /home/ubuntu/datas/event_data/file2.parquet │ SUCCESS │
294+
│ /home/ubuntu/datas/event_data/file3.parquet │ SUCCESS │
295+
└───────────────────────────────────────────────────────┘
296+
```
297+
279298
### Downloading with GET Command
280299
281300
The following examples demonstrate how to use BendSQL to download a sample file ([books.parquet](https://datafuse-1253727613.cos.ap-hongkong.myqcloud.com/data/books.parquet)) from the user stage, an internal stage, and an external stage with the GET command.

0 commit comments

Comments
 (0)