我使用以下代码使用RJDBC连接orientDB
library(RJDBC)
drv <- JDBC("com.orientechnologies.orient.jdbc.OrientJdbcDriver","/Users/sofiaapreleva/programs/orien tdb-jdbc-1.7-all.jar", "`")
conn <- dbConnect(drv, "jdbc:orient:local:GratefulDeadConcerts",'admin','admin')
res<-dbGetQuery(conn, "select * from V")
我可以看到表格:
dbListTables(conn)
[1] "followed_by" "V" "ORIDs" "OUser" "OFunction" "OTriggered" "ORestricted" "E"
[9] "OIdentity" "ORole" "OSchedule"
但是我在尝试获取查询命令时遇到错误:
> res<-dbGetQuery(conn, "select * from V")
Error in .valueClassTest(standardGeneric("fetch"), "data.frame", "fetch") :
invalid value from generic function ‘fetch’, class “NULL”, expected “data.frame”
关于我可能做错什么的任何建议......