![]() This happens because the numeric integer is automatically converted to a floating point numeric, which loses precision with big numbers.Īlso unfortunately, it has returned dates and booleans as strings, which is incorrect, but we can work around that. Well, that didn't go as expected, right? If you look closely, the table has the number 9223372036854775807, but the query has returned 9223372036854775808 ?. SuppressPackageStartupMessages(library(RJDBC)) ![]() This is the “official” way to use Amazon Redshift with R, using the JDBC driver on SQL Workbench/J is the official way to connect to it according to the documentation, and this driver can be loaded like this: # Save the driver into a directoryĭownload.file('','~/.redshiftTools/redshift-driver.jar') ![]() ![]() For all of the connections, we’ll define these variables for connecting: dbname="dbname" Unfortunately, the status of the drivers compatibility is a little more shaky, but there is a way to make it work very nicely with R!įirst of all, let’s go through the 3 options we have for connecting to Amazon Redshift. Amazon Redshift is one of the hottest databases for Data Warehousing right now, it’s one of the most cost-effective solutions available, and allows for integration with many popular BI tools.
0 Comments
Leave a Reply. |