Skip to content

Joining collections by small Uint8Array's checks by reference rather than content #896

@Tomaszal

Description

@Tomaszal
  • I've validated the bug against the latest version of DB packages

Describe the bug
Collections joined by small Uint8Array comparisons are checked using reference, when they should be checked by content

To Reproduce
https://stackblitz.com/edit/vitejs-vite-jwhabpic

If data initialization on lines 10-12 is moved up to the root, references will be consistent across both collections, and join operation will work correctly. However, it should also work in the initial arrangement if Uint8Array's are compared by content

Expected behavior
Using the provided reproduction, "Joined by ID" and "Joined by name" should result in the same output

Additional context
Related to #779

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions