Reputation: 113
I am trying to use QueryDatabase processor using Apache NiFi Is there any way I can limit the records something like : “select * from table limit 100”
Any other processor in NiFi which supports this operation?
Upvotes: 2
Views: 1185
Reputation: 31490
Use ExecuteSQL processor for this case.
Configure/Enable DBCP connection pool
In SQL select query
property value keep your select query
Now processor runs the configured sql select query and outputs the results of the query as a flowfile in AVRO
format
Upvotes: 5