You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Matt Burgess (Jira)" <ji...@apache.org> on 2019/09/13 18:27:00 UTC

[jira] [Commented] (NIFI-6670) Create a RecordReader that reads lines of text into single-field records

    [ https://issues.apache.org/jira/browse/NIFI-6670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16929438#comment-16929438 ] 

Matt Burgess commented on NIFI-6670:
------------------------------------

This might also be possible with GrokReader, but you have to supply the nominal schema rather than just specifying the field name. TextLineReader would be much more straightforward. One of the use cases is to take a file full of SQL statements and execute them as a transaction using PutDatabaseRecord. That avoids the need for splitting and using PutSQL, and results in a more efficient flow.

> Create a RecordReader that reads lines of text into single-field records
> ------------------------------------------------------------------------
>
>                 Key: NIFI-6670
>                 URL: https://issues.apache.org/jira/browse/NIFI-6670
>             Project: Apache NiFi
>          Issue Type: New Feature
>          Components: Extensions
>            Reporter: Matt Burgess
>            Priority: Major
>
> It would be nice to have a reader that can take any textual input and treat each "line" as a single-field record. This is like CSVReader but there wouldn't be a field delimiter; rather, a property to specify the name of the field, and each line becomes a value for that field in the record.
> Additional capabilities could be added as well, such as skipping header lines, grouping lines together as a single field value, ignoring empty lines, etc.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)