Skip to content

Singlestore BIGINT UNSIGNED columns returned incorrectly #890

Description

@dron-dronych

What language are you using?

Python 3.10.

What version are you using?

connectorx 0.4.5

What database are you using?

Singlestore 5.7.32

What dataframe are you using?

Pandas

Can you describe your bug?

Having a BIGINT UNSIGNED column with big values are returned incorrectly. I have noticed the last four digits are different from the actual values.

What are the steps to reproduce the behavior?

Example query / code
create table test
(id bigint unsigned not null);

insert into test
(id) values
(10), (20), (1), (2087271583674132669);

df = cx.read_sql('singlestoredb://root:root@localhost:3306/testdb', 'select id from test;')

df['id'].astype(int)

What is the error?

2087271583674132736 instead of 2087271583674132669. Note how I have to manually cast the values to int while they should automatically be returned as ints instead. Thats possibly where the issues lies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions