Skip to content

structural hashing truncates numbers to their integer part #517

@pedramamani

Description

@pedramamani

The new structural hashing coerces numbers (64-bit floats) into 32-bit integers in db-ivm/src/hashing/murmur.ts thus hashing 2.0 and 2.5 the same. In queries with distinct(), this prevents propagation of updates that change only the decimal part of a number.

Minimal repro: stackblitz.com/edit/tsdm

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