Skip to content
Discussion options

You must be logged in to vote

Looks like this was a macro parsing bug around combining arrow_schema with auto_increment = false.

Since it was fixed in 6b3edde, I’d try updating SeaORM / sea-orm-macros to a version that includes that commit.

I would not remove auto_increment = false for a UUID primary key. For UUID ids it’s still better to keep it explicit:

#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,

So the expected fix is probably:

  • update to the latest SeaORM version / git revision
  • keep auto_increment = false
  • rerun the derive

If it still fails on latest, then it’s worth opening a small repro with arrow_schema + Uuid primary key.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by sagoez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants