Skip to content

[IDEA] File Writer - Add setting to write header on file creation #303

@joshmc82

Description

@joshmc82

Is your feature request related to a problem? Please describe.
When using a File Writer destination, there are some scenarios where I need to output a header, but ONLY when the file is newly created.

Describe your use case
For asynchronous processes, where I'm just reading from a path somewhere (SFTP, S3, etc), and creating an output file, I can't always dynamically add a header row.

Describe the solution you'd like
Since the writer destination can already detect when a file exists or not (since it has an option to error, overwrite, or append), it would be ideal to have the ability to output a header row on file creation. Make it a setting on the data types pop-out screen, similar to where you set your header columns on a FileReader.

Describe alternatives you've considered
At this time, my options are: manually set some kind of global channel map flag then keep up with it, use a javascript writer destination and write all the File output logic myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions