提交 8a509ba8 编写于 作者: A arvid 提交者: StephanEwen

Fixed incorrect handling of generic formats in data sink tasks

上级 f0d6dfa9
......@@ -120,7 +120,7 @@ public class DataSinkTask<IT> extends AbstractOutputTask
// work!
// special case the pact record / file variant
if (record.getClass() == PactRecord.class && format instanceof FileOutputFormat) {
if (record.getClass() == PactRecord.class && format instanceof eu.stratosphere.pact.common.io.FileOutputFormat) {
@SuppressWarnings("unchecked")
final MutableObjectIterator<PactRecord> pi = (MutableObjectIterator<PactRecord>) reader;
final PactRecord pr = (PactRecord) record;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册