From kislenok.roman at gmail.com Mon Apr 13 07:36:13 2015 From: kislenok.roman at gmail.com (=?UTF-8?B?0KDQvtC80LDQvSDQmtC40YHQu9C10L3QvtC6?=) Date: Mon, 13 Apr 2015 15:36:13 +1000 Subject: [MonetDB.R] MONTH_INTERVAL Message-ID: Got an error from MonetDB.R on select: You can get this just by doing: dbGetQuery(conn, "select cast('2015-03-02' as date) - cast('2015-03-01' as date)") May be it should be integer number: dbGetQuery(conn, "select cast(cast('2015-03-02' as date) - cast('2015-03-01' as date) as integer)") -- Roman Kislenok -------------- next part -------------- An HTML attachment was scrubbed... URL: From Hannes.Muehleisen at cwi.nl Mon Apr 13 19:24:28 2015 From: Hannes.Muehleisen at cwi.nl (=?utf-8?Q?Hannes_M=C3=BChleisen?=) Date: Mon, 13 Apr 2015 19:24:28 +0200 Subject: [MonetDB.R] MONTH_INTERVAL In-Reply-To: References: Message-ID: Hi Roman, > On 13 Apr 2015, at 07:36, ????? ???????? wrote: > > Got an error from MonetDB.R on select: > > > You can get this just by doing: > dbGetQuery(conn, "select cast('2015-03-02' as date) - cast('2015-03-01' as date)") > > May be it should be integer number: > dbGetQuery(conn, "select cast(cast('2015-03-02' as date) - cast('2015-03-01' as date) as integer)") You are correct, this is not supported yet. But it should be, this is why I have added it to the connector just now. Let me know how it goes Here is the corresponding NEWS entry: - Added support for esoteric data types such as MONTH_INTERVAL (Thanks, Roman) - Cleaned up SQL to R type mapping (we had this twice) - Now creating actual R integers if SQL data fits You can download the 0.9.8 pre-release there: http://homepages.cwi.nl/~hannes/R/MonetDB.R_0.9.8-0427ba916f4a.tar.gz Best, Hannes -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4154 bytes Desc: not available URL: