Source source = From.textFile(filePaths);
return pipeline.read(source);
} else {
// FIXME drop support for this stuff? (doesn't seem to work with spark)
// TODO: intentionally restrict to only allow org.apache.hadoop.mapreduce.lib.input.TextInputFormat ?
TableSource source = new FileTableSourceImpl(
filePaths,
WritableTypeFamily.getInstance().tableOf(Writables.longs(), Writables.strings()),
//AvroTypeFamily.getInstance().tableOf(Avros.nulls(), Avros.nulls()),
//AvroTypeFamily.getInstance().tableOf(Avros.longs(), Avros.generics(opts.inputFileSchema)),
opts.inputFileFormat);