Skip to content

BigInt unexpectedly negative #278

@adespawn

Description

@adespawn

When testing on one of the machines, the integration tests consistently fail with the following error:

  1) Client @SERVER_API
       #execute(query, params, {prepare: 0}, callback)
         should return rows that are serializable to json:

      Uncaught AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
actual expected

'{"id":"ed18edbc-a582-4e36-b9fb-fbfbe344211a","timeuuid_sample":"3f496380-ab46-11f0-96d4-dc98511ed482","inet_sample":"::2233:0:0:bb","bigint_sample":"-100","decimal_sample":"0.1"}'

      + expected - actual

      -{"id":"ed18edbc-a582-4e36-b9fb-fbfbe344211a","timeuuid_sample":"3f496380-ab46-11f0-96d4-dc98511ed482","inet_sample":"::2233:0:0:bb","bigint_sample":"100","decimal_sample":"0.1"}
      +{"id":"ed18edbc-a582-4e36-b9fb-fbfbe344211a","timeuuid_sample":"3f496380-ab46-11f0-96d4-dc98511ed482","inet_sample":"::2233:0:0:bb","bigint_sample":"-100","decimal_sample":"0.1"}
      
      at /wd/scylladb-javascript-driver/test/integration/supported/client-execute-tests.js:869:36
      at /wd/scylladb-javascript-driver/lib/promise-utils.js:147:44
      at process.processTicksAndRejections (node:internal/process/task_queues:85:11)

Node version: v22.14.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions