adap / flower

Flower: A Friendly Federated Learning Framework
https://flower.ai
Apache License 2.0
4.92k stars 848 forks source link

refactor(framework) Migrate ID handling from sint64 to uint64 #4170

Closed mohammadnaseri closed 1 week ago

mohammadnaseri commented 2 weeks ago

This PR updates the ID generation to use uint64. To ensure compatibility with SQLite, which uses sint64, the IDs are converted as follows:

During Save: Convert uint64 IDs to sint64 before storing in SQLite. During Read: Convert sint64 IDs back to uint64 after retrieving from SQLite.