[
https://issues.apache.org/jira/browse/NIFI-15024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18023151#comment-18023151
]
Kevin Doran commented on NIFI-15024:
------------------------------------
It looks like we log the query (at debug level), so it's readily available in
code:
[AbstractExecuteSQL.java#L322|https://github.com/apache/nifi/blob/60330769f668abf963f8a32202841cafa10f1885/nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/AbstractExecuteSQL.java#L322C17-L322C65]
Based on this, I don't see any technical reason we couldn't also set the query
string as an outbound attribute.
> ExecuteSQL Processors should set Executed query and response information as
> Attributes
> --------------------------------------------------------------------------------------
>
> Key: NIFI-15024
> URL: https://issues.apache.org/jira/browse/NIFI-15024
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Core Framework
> Reporter: Daniel Chaffelson
> Priority: Minor
>
> For the family of ExecuteSQL processors, it would be helpful to users if the
> actual query executed once Parameters and Attributes are resolved, and the
> response metadata, is optionally stored as Attributes alongside execution
> time and other metadata.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)