Options
Load JSON file into Vertica
I heard data in JSON file can be directly loaded into Vertica. Can you please shed a light on how to do? Thanks
0
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?