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

Martijn Visser commented on FLINK-29346:
----------------------------------------

[~djkooks] I'm expecting that the filenames play a role in the exactly-once 
guarantees of the FileSink, so I don't think it will be possible to change the 
full file name yourself 
https://nightlies.apache.org/flink/flink-docs-release-1.15/api/java/org/apache/flink/connector/file/sink/FileSink.html

I would expect that using the OutputFileConfig you should be able to make the 
prefix and postfix depend on your input data 
https://nightlies.apache.org/flink/flink-docs-release-1.15/api/java/org/apache/flink/streaming/api/functions/sink/filesystem/OutputFileConfig.html

> File naming configuration for filesink output
> ---------------------------------------------
>
>                 Key: FLINK-29346
>                 URL: https://issues.apache.org/jira/browse/FLINK-29346
>             Project: Flink
>          Issue Type: Improvement
>          Components: Connectors / FileSystem
>    Affects Versions: 1.13.6
>            Reporter: Kwang-in (Dennis) JUNG
>            Priority: Not a Priority
>
> Hello,
> I've made some research about file sink, but I couldn't find configuration 
> about file naming (based on elements at stream).
> https://nightlies.apache.org/flink/flink-docs-release-1.13/docs/connectors/datastream/file_sink/
> Are there some reason about this? Because I need naming option of outputs, 
> based on data in stream.
> Thanks.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to