Cannot issue data manipulation statements with executeQuery()
![UserBird](https://us.v-cdn.net/6038231/uploads/Dataiku/nAvatar12.png)
UserBird
Dataiker, Alpha Tester Posts: 535 Dataiker
It's good now, I can work on Dataiku.
But when I would create a new dataset by creating the table with SQL query, it has an error:
Connection OK, but query failed: Cannot issue data manipulation statements with executeQuery()
But when I would create a new dataset by creating the table with SQL query, it has an error:
Connection OK, but query failed: Cannot issue data manipulation statements with executeQuery()
Answers
-
Hi Thu,
In a "SQL Query" recipe, you should enter a SELECT query, not an INSERT. DSS will take care on its own to actually transform the SELECT to an INSERT if the output is SQL, or to stream the results if it is not.
You might want to check:
http://doc.dataiku.com/dss/latest//code_recipes/sql.html
Best regards