-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #936 from OxalisCu/bulkinsert-support-csv
feat: importv2 support csv
- Loading branch information
Showing
5 changed files
with
53 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Config | ||
|
||
The configuration of the **CSV** format is a dict type, which includes two fields: **sep** and **nullkey**. | ||
|
||
## Fields | ||
|
||
**sep** (*string*) | ||
|
||
The delimiter of CSV file. | ||
|
||
The value must be a string of length 1, which defaults to ```","```. | ||
|
||
And the following strings are not allowed: ```"\0"```, ```"\n"```, ```"\r"```, ```"""```. | ||
|
||
- **nullkey** (*string*) | ||
|
||
Special string representing null value. | ||
|
||
The value defaults to empty string: ```""```. | ||
|
||
## Examples | ||
|
||
```python | ||
from pymilvus import LocalBulkWriter, BulkFileType | ||
|
||
local_writer = LocalBulkWriter( | ||
schema=schema, | ||
local_path=Path(OUTPUT_PATH).joinpath('csv'), | ||
segment_size=4*1024*1024, | ||
file_type=BulkFileType.CSV, | ||
# highlight-next | ||
config={ | ||
"sep": "\t", | ||
"nullkey": "NULL" | ||
} | ||
) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters