Skip to content

[Bug]: type support issue : unrecognized dtype for key (WindwosPath、UUID) #2917

@frechi9

Description

@frechi9

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I'm encountering a type support issue when using Milvus to insert data with metadata fields that include WindowsPath (from pathlib.Path) and UUID (from Python's uuid.UUID). The error message reads:

type support issue: unrecognized dtype for key (WindowsPath, UUID)

These are common Python types used for file path handling and unique identifiers. I would like to request that Milvus support these types — either through automatic conversion to string (e.g., via str()) during metadata processing, or by allowing users to register custom type converters.

Supporting these native Python types would improve compatibility and streamline the development experience.

Is there a recommended way to handle this currently? Or is support for these types planned?

Expected Behavior

No response

Steps/Code To Reproduce behavior

Environment details

- Hardware/Softward conditions (OS, CPU, GPU, Memory):
- Method of installation (Docker, or from source):
- Milvus version (v0.3.1, or v0.4.0):
- Milvus configuration (Settings you made in `server_config.yaml`):

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions