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

Documentation of differences between RMariaDB and RMySQL regarding data types? #340

Open
florian-speer opened this issue Jul 17, 2024 · 2 comments

Comments

@florian-speer
Copy link

florian-speer commented Jul 17, 2024

Hi, my team is currently trying to migrate from RMySQL to RMariaDB. For the biggest part it's working well, but we do have some trouble regarding the differences both packages have regarding the translation of MySQL data types to R data types. For example, MySQL DATETIME is loaded by RMySQL as character and by RMariaDB as POSIXct. These changes are totally reasonable, but currently our only way of noticing them is when errors are thrown on downstream function calls. I tried to find some documentation that covers these differences but couldn't find anything. Does something like this exists or would it be possible to create it?

@krlmlr
Copy link
Member

krlmlr commented Jul 17, 2024

Thanks. I'm not aware of a list of differences.

There are only so many data types to consider, and I'd expect most to be unchanged. What would you expect this document to look like?

A good data source for testing/exploring is perhaps https://relational-data.org/, it's a publicly accessible MariaDB database with a lot of real and synthetic data.

@florian-speer
Copy link
Author

I think a list of the following form would be great to have:

MySQL    | RMySQL    | RMariaDB
DATETIME | character | POSIXct
BIGINT   | numeric   | integer64 

Thanks for the database hint, maybe I can use it for testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants