I saw a similar question in Stackoverflow, but it was not answered. Please let me know if this question is already answered elsewhere. Sorry for the noise. If not, here is my question.
I'm connected to Vertica from R through RJDBC. I have no problem in querying and getting results like select * <tablename>
. But I tried to create a table using the command
dbSendQuery(vertica, "create table schema.tablename(
ID INTEGER,
PRODUCT VARCHAR(100))
ORDER BY ID
UNSEGMENTED ALL NODES;")
I get this error
Error in .verify.JDBC.result(r, "Unable to retrieve JDBC result set for ", : Unable to retrieve JDBC result set for create table schema.tablename( ID INTEGER, PRODUCT VARCHAR(100) ORDER BY ID UNSEGMENTED ALL NODES; ([Vertica]JDBC A ResultSet was expected but not generated from query "create table schema.tablename(
I wonder, how I should create a table in vertica through R using RJDBC.
Thanks.