[ https://issues.apache.org/jira/browse/FLINK-11053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16714861#comment-16714861 ]
Igal Shilman commented on FLINK-11053: -------------------------------------- Hello [~avilevi], thank you for reporting this issue. The first example was recently fixed, would you be interested in submitting a PR to fix the second example? Here is an explanation of how to contribute documentation, in case you are interested: https://flink.apache.org/how-to-contribute.html#contribute-documentation > Examples in documentation not compiling > --------------------------------------- > > Key: FLINK-11053 > URL: https://issues.apache.org/jira/browse/FLINK-11053 > Project: Flink > Issue Type: Bug > Components: Documentation > Affects Versions: 1.7.0 > Reporter: Avi Levi > Priority: Major > > The example for `scala` for [ stramingFileSink - Using row encoded output > formatshttps://ci.apache.org/projects/flink/flink-docs-stable/dev/connectors/streamfile_sink.html#using-row-encoded-output-formats] > - is not written in scala (e.g in scala you do not define the type before > the variable name) and it doesn't compile > another example is the > [BulkingSink|https://ci.apache.org/projects/flink/flink-docs-stable/dev/connectors/filesystem_sink.html#bucketing-file-sink] > - the scala example doesn't compile due to type mismatch > {code:java} > val sink = new BucketingSink[String]("/base/path") > sink.setBucketer(new DateTimeBucketer[String]("yyyy-MM-dd--HHmm", > ZoneId.of("America/Los_Angeles"))) sink.setWriter(new > SequenceFileWriter[IntWritable, Text]()) sink.setBatchSize(1024 * 1024 * 400) > // this is 400 MB, sink.setBatchRolloverInterval(20 * 60 * 1000); // this is > 20 mins{code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)