title: StreamingFileSink forBulkFormat vs forRowFormat with avro encoder
body: <p>I have the Flink of 4 version and want to update it to 11. I try to use <code>StreamingFileSink</code> instead of the deprecated <code>BucketingSink</code>. My code is looks like:</p>
  <pre><code>val sink = StreamingFileSink
    .forBulkFormat(new Path(s&quot;${conf.output}/$path&quot;) , AvroWriters.forReflectRecord[T](clazz) )
    .withBucketCheckInterval(toMillis(config.inactiveBucketThreshold))
    .withBucketAssigner(bucketAssigner)
    .build()
  </code></pre>
  <p>But I have a problem with writing to fs in tests.</p>
  <p>Which advantages are there to use <code>StreamingFileSink.forBulkFormat</code> instead of  <code>StreamingFileSink.forRowFormat</code> with avro encoder?</p>
  <p>Could you help to write an example of usage second way?</p>