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

[Bug]: AutoID field, unable to set default start value? #742

Open
1 task done
vultj opened this issue Apr 30, 2024 · 1 comment
Open
1 task done

[Bug]: AutoID field, unable to set default start value? #742

vultj opened this issue Apr 30, 2024 · 1 comment

Comments

@vultj
Copy link

vultj commented Apr 30, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Current behavior appears that auto id fields start at an arbitrary number? For example a few entries:

[{'id': 4491....482}, {'id': 4491....484}

Expected Behavior

Would like to be able to set the starting value for this field, such as 0 so that its more predictable to search over.

Steps To Reproduce

schema := entity.Schema{
  CollectionName: "test",
  AutoID: true,
  Fields: []*entity.Field{
    Name: "id",
    DataType: entity.FieldTypeInt64,
    PrimaryKey: true
    AutoID: true
  },
}


Insert some data, then `query` with milvus-cli

Environment

No response

Anything else?

No response

@vultj
Copy link
Author

vultj commented Apr 30, 2024

I also want to add that the auto_id values are so high that unmarshalling them to JSON can result in the same ID being shown for multiple records golang/go#5562

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant