Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Fix primary key inference #388

Merged
merged 2 commits into from
Oct 12, 2021
Merged

Fix primary key inference #388

merged 2 commits into from
Oct 12, 2021

Conversation

MarinPostma
Copy link
Contributor

The primary key is was infered from a hashtable index of the field. For this reason the order in which the fields were interated upon was not deterministic, and the primary key was chosed ffrom the first field containing "id".

This fix sorts the the index by field_id when infering the primary key.

@MarinPostma MarinPostma force-pushed the fix-primary-key-inference branch from 2f2d73d to 69d4dbf Compare October 12, 2021 09:11
@MarinPostma MarinPostma force-pushed the fix-primary-key-inference branch 2 times, most recently from 9ba5075 to 86ead92 Compare October 12, 2021 09:16
@MarinPostma
Copy link
Contributor Author

bors merge

@curquiza curquiza changed the title fix primary key inference Fix primary key inference Oct 12, 2021
@bors
Copy link
Contributor

bors bot commented Oct 12, 2021

@bors bors bot merged commit 6e3b869 into main Oct 12, 2021
@bors bors bot deleted the fix-primary-key-inference branch October 12, 2021 09:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants