-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
See also: #2067 Signed-off-by: yangxuan <[email protected]>
- Loading branch information
1 parent
9fd084f
commit af202c5
Showing
4 changed files
with
41 additions
and
28 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,28 @@ | ||
from importlib.util import find_spec | ||
|
||
expected_pkgs = ["minio", "azure", "requests", "pyarrow"] | ||
|
||
missing = [pkg for pkg in expected_pkgs if find_spec(pkg) is None] | ||
|
||
if len(missing) > 0: | ||
msg = f"Missing packages: {missing}. Please install bulk_writer by pip install pymilvus[bulk_writer] first" | ||
raise ModuleNotFoundError(msg) | ||
|
||
|
||
from .bulk_import import ( | ||
bulk_import, | ||
get_import_progress, | ||
list_import_jobs, | ||
) | ||
from .constants import BulkFileType | ||
from .local_bulk_writer import LocalBulkWriter | ||
from .remote_bulk_writer import RemoteBulkWriter | ||
|
||
__all__ = [ | ||
"BulkFileType", | ||
"LocalBulkWriter", | ||
"RemoteBulkWriter", | ||
"bulk_import", | ||
"get_import_progress", | ||
"list_import_jobs", | ||
] |
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