Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Added on September 27, 2023 2:43PM
Likes: 0
Replies: 1
Hi I am trying to execute a insert query from the dataikuapi client object. How do I get to know if the query is excecuted successfully or not?
import dataiku
client = dataiku.api_client()
query = "insert into table1 values('sample_string4','sample_string','sample_string','sample_string','sample_string','sample_string','Jan 1 2020')"
streamed_query = client.sql_query(query,connection="XXX",post_queries=['COMMIT'])
You need to call the verify() method, see this example:
streamed_query.verify()