Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add db_name parameter at bulk_import #2446

Merged
merged 1 commit into from
Dec 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pymilvus/bulk_writer/bulk_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def _get_request(
def bulk_import(
url: str,
collection_name: str,
db_name: str = "default",
files: Optional[List[List[str]]] = None,
object_url: str = "",
cluster_id: str = "",
Expand All @@ -91,6 +92,7 @@ def bulk_import(
Args:
url (str): url of the server
collection_name (str): name of the target collection
db_name (str): name of target database
partition_name (str): name of the target partition
files (list of list of str): The files that contain the data to import.
A sub-list contains a single JSON or Parquet file, or a set of Numpy files.
Expand All @@ -110,6 +112,7 @@ def bulk_import(
partition_name = kwargs.pop("partition_name", "")
params = {
"collectionName": collection_name,
"dbName": db_name,
"partitionName": partition_name,
"files": files,
"objectUrl": object_url,
Expand Down