skytable / skytable

Skytable is a modern scalable NoSQL database with BlueQL, designed for performance, scalability and flexibility. Skytable gives you spaces, models, data types, complex collections and more to build powerful experiences

Home Page:https://skytable.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Server: The SQL query resulted in unexpected data when the table primary key is of type `uint64`.

jkcs opened this issue · comments

Description of bug

The SQL query resulted in unexpected data when the table primary key is of type uint64.

Steps to reproduce

CREATE SPACE IF NOT EXISTS myspace
CREATE MODEL IF NOT EXISTS myspace.testmodel(id: uint64, name: string, email: string)
INSERT INTO myspace.testmodel(11111111111111, 'test', 'test')
INSERT INTO myspace.testmodel(22222222222222, 'test', 'test')
INSERT INTO myspace.testmodel(1, 'test1', 'test1')
SELECT * FROM myspace.testmodel WHERE id = 1
SELECT * FROM myspace.testmodel WHERE id = 11

image

Expected behavior

Meta

  • Release tag:
  • Branch:
  • Commit ID:
  • Operating system:

Additional context

This looks interesting. Are you able to reproduce this with the driver or does it only happen with the REPL?

We can then isolate the issue.

@jkcs I've fixed this bug. While this would generally be treated as a security bug, since it was released with a beta version a patch was released that fixes this issue. Can you please try one of the latest binaries and let me know if things look alright?

@ohsayan I just tried it out, and now is working fine 🎉