[
https://issues.apache.org/jira/browse/NIFI-1201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16492887#comment-16492887
]
Scott Wilburn commented on NIFI-1201:
-------------------------------------
Much of the time, users are not permitted to update source database tables to
put information like this. I vote it should be kept in NiFi.
> Allow ExecuteSQL to run queries with that use a variable timestamp or
> sequence id
> ---------------------------------------------------------------------------------
>
> Key: NIFI-1201
> URL: https://issues.apache.org/jira/browse/NIFI-1201
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Extensions
> Reporter: Randy Gelhausen
> Priority: Minor
>
> Users are employing ExecuteSQL as a means to schedule periodic queries
> against remote databases. Other tools that do this type of task include the
> ability to maintain and automatically increment a sequence or timestamp used
> in query predicates.
> For example:
> select * from src_table where created_at > "2015-11-19 12:00:00"
> Then a minute later:
> select * from src_table where created_at > "2015-11-19 12:01:00"
> Or:
> insert into my_table values (${prev_id}+1, ${now()})
> Today users can implement the same logic with a series of processors, but
> much work could be saved by allowing ExecuteSQL to maintain these bits of
> state.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)