Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL ULongLong should be treated as integer #664

Open
skbly7 opened this issue Jul 13, 2024 · 0 comments
Open

MySQL ULongLong should be treated as integer #664

skbly7 opened this issue Jul 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@skbly7
Copy link

skbly7 commented Jul 13, 2024

What language are you using?

Python

What version are you using?

0.3.3

What database are you using?

MySQL

What dataframe are you using?

Arrow

Can you describe your bug?

MySQL ULongLong is treated as Float in conversion instead of LongLong.

This seem to be coming from here:
https://github.com/sfu-db/connector-x/blob/main/connectorx/src/transports/mysql_arrow.rs#L48-L53

        { LongLong[i64]              => Int64[i64]              | conversion auto }
        { UTiny[u8]                  => Int64[i64]              | conversion auto }
        { UShort[u16]                => Int64[i64]              | conversion auto }
        { ULong[u32]                 => Int64[i64]              | conversion auto }
        { UInt24[u32]                => Int64[i64]              | conversion none }
        { ULongLong[u64]             => Float64[f64]            | conversion auto }  <--- 

Note: LongLong is already treated as Int64.

@skbly7 skbly7 added the bug Something isn't working label Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant