Skip to content

Internal ref ids start at 10000 - #320

Merged
bovlb merged 1 commit into
developfrom
fix-csv-ref-bug
Oct 19, 2023
Merged

bovlb merged 1 commit into
developfrom
fix-csv-ref-bug

Conversation

@bovlb

@bovlb bovlb commented Oct 18, 2023

Copy link
Copy Markdown
Contributor

The aperturedb API permits refs to be in the range [1,100000), and uses higher numbers for internal purposes. Because of a recent change in the aperturedb API, we are now enforcing this restriction, whereas previously violations were quietly ignored. The CSV loader wants to avoid ref collision when batching, so assigns refs serially, modulo a limit. Because these refs are sometimes assigned in pairs, we were going over this limit. This change ensures we stay under the limit.

Note that there is still an outstanding problem because the CSV loader is merely hoping that this modulo trick is sufficient to ensure that batches are semantically coherent. A better approach might be to have the batching process itself remap ref numbers on the fly.

@bovlb
bovlb requested a review from gsaluja9 October 18, 2023 19:42

@gsaluja9 gsaluja9 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I ran into this very recently :)

@bovlb
bovlb merged commit 92c5ca5 into develop Oct 19, 2023
@bovlb
bovlb deleted the fix-csv-ref-bug branch October 19, 2023 17:06
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

Successfully merging this pull request may close these issues.

2 participants