I did MongoDB <-> Vertica connector, that can extract/import tables to file or directly to MongoDB (from MongoDB to Vertica - it's very hard, because MongoDB is schema-less). When community will regulate agreement of marketplace I will upload it to market.
With the R-UDF written this way, I went on to create a library and a transform function. But when I invoke the UDF, I get this error message -
ERROR 3399: Failure in UDx RPC call InvokeGetReturnType(): Error calling getReturnType() in User Defined Object [rjson] at [/scratch_a/release/vbuild/vertica/UDxFence/vertica-udx-R.cpp:289], error code: 0, message: Error happened in getReturnType : Datatype must be specified for return and parameter types
I am a novice. Could you point me in the right direction?
Comments
When community will regulate agreement of marketplace I will upload it to market.
rjson <- function(x) { library(RJSONIO) library(plyr) jsonfile<-fromJSON(x,nullValue = NULL) json_table<-do.call("rbind.fill", lapply(jsonfile, as.data.frame)) json_table } rjsonFactory<-function() { list(name=rjson, udxtype=c("transform"),intype=c("any"),outtype=c("any"),outtypecallback= rjsonReturnType) } rjsonReturnType <- function(x) { ret = data.frame(datatype = rep(NA,1), length = rep(NA,1),scale = rep(NA,1), name = rep(NA,1)) ret }With the R-UDF written this way, I went on to create a library and a transform function. But when I invoke the UDF, I get this error message - I am a novice. Could you point me in the right direction?