[
https://issues.apache.org/jira/browse/FLINK-9193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16442405#comment-16442405
]
Aljoscha Krettek commented on FLINK-9193:
-----------------------------------------
I think these methods are not helpful because they don't produce correct
results in real-world use cases and therefore people shouldn't get into the
habit of using them.
Deprecating them now will give people some time to adapt and we can come up
with a better solution for 1.6, for example, once we have a BucketingSink that
uses our FileSystem abstraction we might think about promoting that to
DataStream, if we are sure we want users to have such a simple method there.
> Deprecate non-well-defined output methods on DataStream
> -------------------------------------------------------
>
> Key: FLINK-9193
> URL: https://issues.apache.org/jira/browse/FLINK-9193
> Project: Flink
> Issue Type: Improvement
> Components: DataStream API
> Reporter: Aljoscha Krettek
> Assignee: Aljoscha Krettek
> Priority: Major
> Fix For: 1.5.0
>
>
> Some output methods on {{DataStream}} that write text to files are not safe
> to use in a streaming program as they have no consistency guarantees. They
> are:
> - {{writeAsText()}}
> - {{writeAsCsv()}}
> - {{writeToSocket()}}
> - {{writeUsingOutputFormat()}}
> Along with those we should also deprecate the {{SinkFunctions}} that they use.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)