From kislenok.roman at gmail.com Tue Jun 16 07:11:49 2015 From: kislenok.roman at gmail.com (=?UTF-8?B?0KDQvtC80LDQvSDQmtC40YHQu9C10L3QvtC6?=) Date: Tue, 16 Jun 2015 15:11:49 +1000 Subject: [MonetDB.R] Call functions using MonetDB.R Message-ID: Hello, Is there a way to call MonetDB functions using MonetDB.R? I want to execute this SQL: call sys.reuse('sys', 'my_way_too_large_table'); When I try to: dbSendUpdate(conn, "call sys.reuse('sys', 'my_way_too_large_table')") I get an error: Exception in .mapiParseResponse(mresp) : Invalid response from server. Try re-connecting. In mapi.R we have: if (length(lines) < 1) { stop("Invalid response from server. Try re-connecting.") } But this "call" does not provide any output. May be there is some additional function that violates response parse? -- Roman Kislenok -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajdamico at gmail.com Tue Jun 16 08:29:14 2015 From: ajdamico at gmail.com (Anthony Damico) Date: Tue, 16 Jun 2015 02:29:14 -0400 Subject: [MonetDB.R] Call functions using MonetDB.R In-Reply-To: References: Message-ID: hi Roman, does dbSendQuery solve the problem? like https://stackoverflow.com/questions/30390920/how-to-pass-a-system-function-to-monetdb-through-r/30390939#30390939 On Tue, Jun 16, 2015 at 1:11 AM, ????? ???????? wrote: > Hello, > > Is there a way to call MonetDB functions using MonetDB.R? > I want to execute this SQL: > call sys.reuse('sys', 'my_way_too_large_table'); > > When I try to: > dbSendUpdate(conn, "call sys.reuse('sys', 'my_way_too_large_table')") > I get an error: > Exception in .mapiParseResponse(mresp) : > Invalid response from server. Try re-connecting. > > In mapi.R we have: > if (length(lines) < 1) { > stop("Invalid response from server. Try re-connecting.") > } > But this "call" does not provide any output. May be there is some > additional function that violates response parse? > > -- > Roman Kislenok > > _______________________________________________ > Monetr-users mailing list > Monetr-users at lists.r-forge.r-project.org > http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/monetr-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Hannes.Muehleisen at cwi.nl Tue Jun 16 09:02:58 2015 From: Hannes.Muehleisen at cwi.nl (=?utf-8?Q?Hannes_M=C3=BChleisen?=) Date: Tue, 16 Jun 2015 09:02:58 +0200 Subject: [MonetDB.R] Fwd: Call functions using MonetDB.R References: <524C8380-557F-49D3-9949-3542821500BD@cwi.nl> Message-ID: <323116BC-13DC-4990-A487-1156CE7F327B@cwi.nl> Sorry, forgot to CC list. It will be fixed. > Begin forwarded message: > > From: Hannes M?hleisen > Subject: Re: [MonetDB.R] Call functions using MonetDB.R > Date: 16 Jun 2015 08:06:14 CEST > To: ????? ???????? > > Hi Roman, > >> On 16.06.2015, at 07:11, ????? ???????? wrote: >> >> Is there a way to call MonetDB functions using MonetDB.R? >> I want to execute this SQL: >> call sys.reuse('sys', 'my_way_too_large_table'); >> >> When I try to: >> dbSendUpdate(conn, "call sys.reuse('sys', 'my_way_too_large_table')") >> I get an error: >> Exception in .mapiParseResponse(mresp) : >> Invalid response from server. Try re-connecting. >> >> In mapi.R we have: >> if (length(lines) < 1) { >> stop("Invalid response from server. Try re-connecting.") >> } >> But this "call" does not provide any output. May be there is some additional function that violates response parse? > > > Correct, this fails at the moment. You can ignore the error though by wrapping the call in tryCatch. Will fix this in the next version. Thanks for reporting! > > Best, > > Hannes > -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4154 bytes Desc: not available URL: From kislenok.roman at gmail.com Fri Jun 19 02:09:05 2015 From: kislenok.roman at gmail.com (=?UTF-8?B?0KDQvtC80LDQvSDQmtC40YHQu9C10L3QvtC6?=) Date: Fri, 19 Jun 2015 10:09:05 +1000 Subject: [MonetDB.R] TIMESTAMPTZ Message-ID: Hello, Today I've met another "new" types in MonetDB: dbGetQuery(conn, "select now()") Exception in monetdbRtype(info$types[i]) : Unknown DB type TIMESTAMPTZ dbGetQuery(conn, "select CURRENT_TIME") Exception in monetdbRtype(info$types[i]) : Unknown DB type TIMETZ -- Roman Kislenok -------------- next part -------------- An HTML attachment was scrubbed... URL: From Hannes.Muehleisen at cwi.nl Fri Jun 19 09:31:39 2015 From: Hannes.Muehleisen at cwi.nl (=?utf-8?Q?Hannes_M=C3=BChleisen?=) Date: Fri, 19 Jun 2015 09:31:39 +0200 Subject: [MonetDB.R] TIMESTAMPTZ In-Reply-To: References: Message-ID: <4CFEA4B0-CE88-40E0-AD92-413579C72B8B@cwi.nl> Hi Roman, > > Today I've met another "new" types in MonetDB: > dbGetQuery(conn, "select now()") > Exception in monetdbRtype(info$types[i]) : Unknown DB type TIMESTAMPTZ I believe this was fixed in MonetDB.R 0.9.8, > dbGetQuery(c, "select now()") current_timestamp 1 2015-06-19 07:30:15.000000+00:00 > dbGetQuery(c, "select CURRENT_TIME") current_time 1 07:31:02.000000+00:00 > > dbGetQuery(conn, "select CURRENT_TIME") > Exception in monetdbRtype(info$types[i]) : Unknown DB type TIMETZ Please let me know if it persists after updating R, MonetDB and MonetDB.R Hannes -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4154 bytes Desc: not available URL: From Hannes.Muehleisen at cwi.nl Mon Jun 29 14:41:31 2015 From: Hannes.Muehleisen at cwi.nl (=?utf-8?Q?Hannes_M=C3=BChleisen?=) Date: Mon, 29 Jun 2015 14:41:31 +0200 Subject: [MonetDB.R] MonetDB.R 0.9.8 Preview Message-ID: Hello MonetDB.R users, I have created a new preview version of the upcoming MonetDB.R 0.9.8. You can download the source and a Windows build at http://homepages.cwi.nl/~hannes/R/ Changes: - 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 data fits - dbWriteTable now quotes table/column names if necessary, and outputs warnings if it did - New dbApply function to automatically create embedded R functions in MonetDB (not on Windows for now, sorry) - Fixes for dplyr backend (Thanks, Anthony) Please test this new version if you have time, I would like to release this soon (two weeks or so). Of course, this has absolutely nothing to do with my upcoming useR talk :) Hannes -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4154 bytes Desc: not available URL: