my use case is to query a set of data for bunch of table and insert it into one table. so my nifi processor basically is like this:
executeSql(query set of dataset) >>> convertAvrotoJson >>>> convetJSONtoSQL(convert to insert statement) >>>> putSQL (insert statement) >>> executeSQL(delete a row associated with first processor query in set of table)
the problem is in the last executeSQL processor, when its not executing my sql, instead it keep trying to run putSQL query.
i replace my delete query with just a normal select for the sake of testing (this is in the executeSQL) :
and this is the data provenance for executeSQL, we can clearly see its still trying to execute the insert statement coming from putSQL even i already specified to just do a query:
and this is the error, the error clearly say i didnt provide parameter when im clearly dont want it to execute an insert statement:
how to execute a delete statement on table B after i successfully insert a record in Table A? please help as im stuck at this. please dont get confuse with the image, as im just testing it with normal select to ensure that nifi can execute my query correctly. im using mysql 5.7